Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-14T18:45:25.423Z
Answers.Text: Beautiful idea, mate. I'll give that a go, cheers!
Answers.UserDisplayName: Jay
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-14T12:33:14.237Z
Answers.Text: This worked a charm, by the way!
Answers.UserDisplayName: Jay
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-14T14:50:42.000Z
Answers.Text: @Jay Glad to help :-)
Answers.UserDisplayName: Jamie Wade
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-14T14:16:55.377Z
Answers.LastActivityDate: 2018-11-14T14:22:15.867Z
Answers.LastEditDate: 2018-11-14T14:22:15.867Z
Answers.UserDisplayName: Jamie Wade
Body: <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>
  
Tags: <entry><field><channels><default>
Title: Setting a default entry for the entry field
ThreadText: # 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,
  Jay
  
  **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 :-)  
  
  ---
  
  