Silverstripe Version: 4.11
Question: Error :: Value not present in DropDown box
I have two dropdowns A and B. Dropdown B’s values are populated based on what is selected in A via JS.
Problem is once I submit the form I am getting an error saying “Please pick the values from the Dropdown list”. I know why I am getting this. The options in Dropdown B is populated by JS and they are initially not present when the page loads.
Wondering if there is a way for me to overcome this in Silverstripe?