Answers.Body: <p>I believe you're looking for something like the example posted here which goes into detail on several items necessary to create a working Asset Relations Field in a custom plugin:
  <a href="https://craftcms.stackexchange.com/a/456/115">https://craftcms.stackexchange.com/a/456/115</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-02-20T01:22:44.087Z
Answers.LastActivityDate: 2015-02-20T01:22:44.087Z
Answers.LastEditDate: 2017-04-13T12:51:00.303Z
Answers.UserDisplayName: Ben Parizek
Body: <p>I would like to create an elementSelect form field in my plugin, and can't find an example or description. Can someone help?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-23T08:06:48.090Z
Comments.Text: Do you already have a custom Element for your plugin set up and working?
Comments.UserDisplayName: Ben Parizek
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-23T08:18:14.857Z
Comments.Text: i have in my plugin folder templates/_fieldtypes/customers.html.
  
  insert file:
  
  {{ checkboxSelect({
      name: name,
      options: options,
      values: values,
  }) }}
Comments.UserDisplayName: florian
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-23T09:11:46.240Z
Comments.Text: @florian Can you please update your question with more info? What’s the context here, and what “elementSelect” are you referring to? What have you already tried?
Comments.UserDisplayName: Brandon Kelly
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-10-23T12:41:14.880Z
Comments.Text: i want select some pdfs and files in my plugin.
  
  The module looks like this:
  http://buildwithcraft.com/docs/assets-fields
Comments.UserDisplayName: florian
Tags: <templating><plugin-development><elementtype>
Title: How can I relate PDFs and Files using an Element Select field in my custom plugin?
ThreadText: # How can I relate PDFs and Files using an Element Select field in my custom plugin?
  
  (Asked by: username_0 on 2014-10-23)
  
  I would like to create an elementSelect form field in my plugin, and can't find an example or description. Can someone help?
  
  **Tags:** templating, plugin-development, elementtype
  
  > **Comments:**
  > **username_1**: Do you already have a custom Element for your plugin set up and working?  
  > **username_0**: i have in my plugin folder templates/_fieldtypes/customers.html.  insert file:  {{ checkboxSelect({     name: name,     options: options,     values: values, }) }}  
  > **username_2**: @username_0 Can you please update your question with more info? What’s the context here, and what “elementSelect” are you referring to? What have you already tried?  
  > **username_0**: i want select some pdfs and files in my plugin.  The module looks like this: http://buildwithcraft.com/docs/assets-fields  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-02-20. Score: 1
  
  I believe you're looking for something like the example posted here which goes into detail on several items necessary to create a working Asset Relations Field in a custom plugin:
  <https://craftcms.stackexchange.com/a/456/115>
  
  
  ---
  
  