<p>Not directly. You could have a dropdown of all the global set handles (use <a href="https://github.com/lewisjenkins/craft-lj-dynamicfields/" rel="noreferrer">Dynamic Fields Plugin</a> if you don't want to maintain this dropdown manually), and then in your template fetch the global set from its handle with <a href="http://buildwithcraft.com/docs/templating/craft.globals#getSetByHandle" rel="noreferrer">getSetByHandle</a>:</p>

<pre><code>{% set globalSet = craft.globals.getSetByHandle(entry.globalSetHandle.value) %}
{% if globalSet %} {# could conceivably be null #}
  ... {{ globalSet.someField }} ...
{% endif %}
</code></pre>

CC BY-SA 3.0
2015-06-29T18:28:21.410Z
ZOMG, that is absolutely beautiful. Thanks Marion!!
John
CC BY-SA 3.0
2015-06-29T17:20:26.350Z
2015-06-29T17:20:26.350Z
Marion Newlevant
<p>Is there any way to link to a global using a field in a entry form, much like you would use the "Entries" fieldtype to link to entries?</p>

<fieldtypes><globals>
Link to Global Fields like you can with the entries fieldtype
# Link to Global Fields like you can with the entries fieldtype

(Asked by: username_0 on 2015-06-29)

Is there any way to link to a global using a field in a entry form, much like you would use the "Entries" fieldtype to link to entries?

**Tags:** fieldtypes, globals

---

## 1 answers

### Answer by username_1 on 2015-06-29. Score: 5 | Accepted answer

Not directly. You could have a dropdown of all the global set handles (use Dynamic Fields Plugin if you don't want to maintain this dropdown manually), and then in your template fetch the global set from its handle with getSetByHandle:
{% set globalSet = craft.globals.getSetByHandle(entry.globalSetHandle.value) %}
{% if globalSet %} {# could conceivably be null #}
  ... {{ globalSet.someField }} ...
{% endif %}

> **Comments:**
> **username_0**: ZOMG, that is absolutely beautiful. Thanks Marion!!  

---

