The userform module seems to have alot of what I need in form processing. However, I would need a dropdown list in my form to contain options from a pre-existing database table.
Does anyone have an example of this they could point me to?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
The userform module seems to have alot of what I need in form processing. However, I would need a dropdown list in my form to contain options from a pre-existing database table.
Does anyone have an example of this they could point me to?
Check out the member list field as an example - https://github.com/silverstripe/silverstripe-userforms/blob/master/code/editor/EditableMemberListField.php. You would need to create a new form field for your use case.
I'll look into that. Thanks for your reply!