I have created a form which asks some questions of the user. For aesthetic and usability reasons I have used a button which, onClick, affects the value of a hidden dropdown.
$w("#dropdown1").value = "Yes";
When submitting the form, the dropdown value does not write to the dataset and field to which it is connected.
If I unhide the dropdown, then I can see the value is being affected by the button as intended.
If I unhide the dropdow and select the value directly in the dropdown box then the issue disappears and the value writes to the dataset.
Can anyone shed any light on this?