Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions

Potential bug? DropdownField




29 April 2013 at 10:50pm Community Member, 32 Posts

I was wondering if anybody else had faced a bug where the population of dropdownfields with data where a setEmptyString had been added caused the first field not to be properly shown? I am asking this since what happens with me is that if i select the highest option and save the form. Upon opening the form again it does not show this value but instead just opts to show the setEmptyString string again.

$dropDownData = explode(',',$properties['PropValues']);
$field = new DropdownField($name, $properties['PropName'], $dropDownData);
$field->setEmptyString('--- Selecteer ---');
return $field;