Hi,
I've got this code for a dynamic optionsetfield:
if(Dataobject::get("myFourthStep")){
$people = Dataobject::get("myFourth");
$map = $people->toDropDownMap();
$fields->push( new OptionsetField(
$name = "PersonSelectedID",
$title = "Select person",
$source = $map,
));
}
return $fields;
}
}
I want to use a column in the database to populate the form label, otherwise I just get an automated one which retrieves the ID of the dataobject.
Any ideas on how I can achieve this?
Thanks