Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Potential bug? DropdownField

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 307 Views
  • Schippie
    Community Member
    32 Posts

    Potential bug? DropdownField Link to this post

    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;

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.