<p>You are speaking of the Element Selector Modal. It is javascript and available to use by third-party devs, but the code is specific to Craft Elements (Entries, Assets, Users, etc.). I don't think you'll get it to work with information polled from a third-party API. </p>

<p>There's a post about it in the Craft Dev Google+ group (invite only), but I'm not sure if the info exists anywhere else.</p>

CC BY-SA 3.0
2015-04-22T09:52:26.413Z
@aran Could you post the URL to the post on the Craft Dev Google+ group?
Magne
CC BY-SA 3.0
2015-04-23T15:03:11.960Z
@Magne are you apart of the Craft Dev Google+ group (invite only)? If so you can search for "Element Selector Modal" it would be the post with the most comments.
a-am
CC BY-SA 3.0
2015-04-24T07:56:49.687Z
@aran I'm afraid I'm not. I only found this: https://plus.google.com/communities/106505340287442511226/s/Element%20Selector%20Modal
Magne
CC BY-SA 3.0
2015-02-10T21:03:34.470Z
Thanks, I found the post on the Craft Dev Google+ group.  I guess I will need to create the same functionality and use Garnish for the modal.
a-am
CC BY-SA 3.0
2015-02-10T20:52:42.290Z
2015-02-10T20:52:42.290Z
Bryan Redeagle
<p>Is it possible to use the Entries FieldType widget in my plugin and populate the modal with data from a third party REST API? </p>

CC BY-SA 3.0
2015-02-10T19:15:21.013Z
Can you explain more what you're trying to achieve? Not following from your existing description.
Brad Bell
CC BY-SA 3.0
2015-02-10T19:36:18.803Z
I am wanting to use the Categories/Entries field type widget in my plugin with the model data originating from third party REST api. So when the user clicks the "Add a cateogory" button the modal will show the data from the third party api and because it is using that same fieldtype widget they can select multiple items.
a-am
CC BY-SA 4.0
2018-12-11T16:48:40.770Z
Have you found a solution to your problem? I have basically the same problem now in Craft3: https://craftcms.stackexchange.com/questions/28749/element-type-vs-field-type-or-element-type-without-database-storage If you have found a solution to your problem, I would be very glad to hear about it.
Luke
<plugin-development>
Use Entries fieldtype functionality in plugin populated by REST api data
# Use Entries fieldtype functionality in plugin populated by REST api data

(Asked by: username_0 on 2015-02-10)

Is it possible to use the Entries FieldType widget in my plugin and populate the modal with data from a third party REST API?

**Tags:** plugin-development

> **Comments:**
> **username_1**: Can you explain more what you're trying to achieve? Not following from your existing description.  
> **username_0**: I am wanting to use the Categories/Entries field type widget in my plugin with the model data originating from third party REST api. So when the user clicks the "Add a cateogory" button the modal will show the data from the third party api and because it is using that same fieldtype widget they can select multiple items.  
> **username_2**: Have you found a solution to your problem? I have basically the same problem now in Craft3: https://craftcms.stackexchange.com/questions/28749/element-type-vs-field-type-or-element-type-without-database-storage If you have found a solution to your problem, I would be very glad to hear about it.  

---

## 1 answers

### Answer by username_3 on 2015-02-10. Score: 3

You are speaking of the Element Selector Modal. It is javascript and available to use by third-party devs, but the code is specific to Craft Elements (Entries, Assets, Users, etc.). I don't think you'll get it to work with information polled from a third-party API.

There's a post about it in the Craft Dev Google+ group (invite only), but I'm not sure if the info exists anywhere else.

> **Comments:**
> **username_0**: Thanks, I found the post on the Craft Dev Google+ group.  I guess I will need to create the same functionality and use Garnish for the modal.  
> **username_4**: @aran Could you post the URL to the post on the Craft Dev Google+ group?  
> **username_0**: @username_4 are you apart of the Craft Dev Google+ group (invite only)? If so you can search for "Element Selector Modal" it would be the post with the most comments.  
> **username_4**: @aran I'm afraid I'm not. I only found this: https://plus.google.com/communities/106505340287442511226/s/Element%20Selector%20Modal  

---

