<p><em>Entry fields do not natively support setting a default entry, but you can use the <a href="https://docs.craftcms.com/v3/globals.html" rel="nofollow noreferrer"><strong>Globals</strong></a> section to achieve the same effect.</em></p>

<p>Create a 'Default Call to Action Entry' field in your globals, and set the default entry for all pages there. For extra functionality, I would then also have a 'Call to Action Entry' field on your entries.</p>

<p>With this set-up, a user can select a custom entry to use on that entry if they want, but by default it will fall-back to the entry selected in the Globals.</p>

<p>Your template would look something like this:</p>

<p><code>{% set ctaEntry = entry.callToActionEntry.one|default('globalHandle.defaultCallToActionEntry.one') %}</code></p>

<p>If you didn't want to build the ability to override the default entry on a per-page basis, you can just use the field in the Globals:</p>

<p><code>{% set ctaEntry = globalHandle.defaultCallToActionEntry.one %}</code></p>

CC BY-SA 4.0
2018-11-14T18:45:25.423Z
Beautiful idea, mate. I'll give that a go, cheers!
Jay
CC BY-SA 4.0
2018-12-14T12:33:14.237Z
This worked a charm, by the way!
Jay
CC BY-SA 4.0
2018-12-14T14:50:42.000Z
@Jay Glad to help :-)
Jamie Wade
CC BY-SA 4.0
2018-11-14T14:16:55.377Z
2018-11-14T14:22:15.867Z
2018-11-14T14:22:15.867Z
Jamie Wade
<p>I have an entry field that is a selector tool for the page call to action at the bottom.</p>

<p>I have a channel of four or five entries and I'd like one of them to be the default selection so it's one less thing to setup on a site full of pages.</p>

<p>I haven't seen any details or questions for this sort of request as of yet so I thought I'd ask the question.</p>

<p>Thanks,
Jay</p>

<entry><field><channels><default>
Setting a default entry for the entry field
# Setting a default entry for the entry field

(Asked by: username_0 on 2018-11-14)

I have an entry field that is a selector tool for the page call to action at the bottom.

I have a channel of four or five entries and I'd like one of them to be the default selection so it's one less thing to setup on a site full of pages.

I haven't seen any details or questions for this sort of request as of yet so I thought I'd ask the question.

Thanks,
username_0

**Tags:** entry, field, channels, default


---

## 1 answers

### Answer by username_1 on 2018-11-14. Score: 2 | Accepted answer

*Entry fields do not natively support setting a default entry, but you can use the [**Globals**](https://docs.craftcms.com/v3/globals.html) section to achieve the same effect.*

Create a 'Default Call to Action Entry' field in your globals, and set the default entry for all pages there. For extra functionality, I would then also have a 'Call to Action Entry' field on your entries.

With this set-up, a user can select a custom entry to use on that entry if they want, but by default it will fall-back to the entry selected in the Globals.

Your template would look something like this:

`{% set ctaEntry = entry.callToActionEntry.one|default('globalHandle.defaultCallToActionEntry.one') %}`

If you didn't want to build the ability to override the default entry on a per-page basis, you can just use the field in the Globals:

`{% set ctaEntry = globalHandle.defaultCallToActionEntry.one %}`

> **Comments:**
> **username_0**: Beautiful idea, mate. I'll give that a go, cheers!  
> **username_0**: This worked a charm, by the way!  
> **username_1**: @username_0 Glad to help :-)  

---

