For full functionality of this page it is necessary to <a href="http://www.enable-javascript.com/"enable> JavaScript.</a>
Javascript Dynamic Picklist Proof of Concept
HIDDEN
This form is linked from
a GitHub repo
demonstrating how to use this dynamic picklist trick.
Do not connect to production and do not delete.
Proof of Concept
This form is a simple proof of concept that a repeatable section could be used to fill a picklist, creating a "dynamic picklist."
Upon form load, it fills a repeating section with the names of all Accounts in the connected Salesforce sandbox. Then the custom javascript uses those to fill a picklist's choice values.
(There is also a line in the javascript to require that javascript be enabled.)
Toggle this if you want to see the repeatable section (that is meant to be hidden.)
Hide hidden
Reveal hidden
tfa_2 - Repeatable Section - Accounts
tfa_3 - Account Name
tfa_7 - Account Id
tfa_4 - Dynamically Filled Picklist
Please select...
No choices here.
Id of selected account name
Contact Information