Default values of hidden select elements ignored
anton-kachurin opened this issue · comments
Anton Kachurin commented
Currently, the form template represents any hidden
field as a hidden html input and gives it the value of $field->hidden_value
.
This shouldn't be done for select elements because it doesn't have hidden_value
. It has default
value instead.
Also, we need to make sure that the select's option that has ID equal to the default value of the field is getting the selected
attribute.