I have a manual SELECT field with values “Basic” and “Advanced”.
“Advanced” displays more fields. “Basic” displays fewer fields.
The field is set to reload the form on value change.
In an onLoad event, I check which was selected, and display or hide fields with sc_display_field().
When I select “Advanced”, the form changes as expected, but the SELECT field shows that “Basic” is selected.
How can I force a manual SELECT field to display its actual value in an onLoad event?
$current_mode = {Mode};
…
{Mode} = $current_mode; // Does nothing. It always displays the first manual SELECT item.