Jump to:

1976 Posts in 1306 Topics by 607 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: 252 Views
  • Schippie
    Avatar
    Community Member
    23 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;

    252 Views
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.