I use an onLoad-Script to change some default-values in a form.
assigning a string works perfectly:
$formModel->data['ww3fab_form01___textvalue']='example';
but how do I change the default-value for a dropdown-field?
I tried to set the raw-Value...but this doesn't work:
$formModel->data['ww3fab_form01___Country_raw'] = 'AT';
Any helpwould be great. Thanks!
assigning a string works perfectly:
$formModel->data['ww3fab_form01___textvalue']='example';
but how do I change the default-value for a dropdown-field?
I tried to set the raw-Value...but this doesn't work:
$formModel->data['ww3fab_form01___Country_raw'] = 'AT';
Any helpwould be great. Thanks!