I would like to create an elementSelect form field in my plugin, and can't find an example or description. Can someone help?

  • Do you already have a custom Element for your plugin set up and working? – Ben Parizek Oct 23 '14 at 8:06
  • i have in my plugin folder templates/_fieldtypes/customers.html. insert file: {{ checkboxSelect({ name: name, options: options, values: values, }) }} – florian Oct 23 '14 at 8:18
  • @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? – Brandon Kelly Oct 23 '14 at 9:11
  • i want select some pdfs and files in my plugin. The module looks like this: buildwithcraft.com/docs/assets-fields – florian Oct 23 '14 at 12:41

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.