This should be relatively simple. I know how to create a form and hide it and show it if a specific option
is selected
I want to have a Dropdown
populated with a specific DataObject
. That much is simple. But I need to add an option that says 'Add new' to this Dropdown
, which is in a form
I can handle the submission (like if the value is something like 'new' instead of an ID
), but I do not know how to add this option into the select
with Silverstripe
, or if it is even possible. Any help is appreciated!