If we stick with the current "select" widget, could you clarify, how it pulls the content for the select box? How do I customize the label of the option title of the select box items? They dont seem to take into account, the getTitle() of the table, ie:
- Code: Select all
people table
ID
salutation
name
...
organisation table
ID
orgname
...
organisationpeople table
peopleID
orgID
in a many to many relationship, in the organisation relationship file I have
- Code: Select all
[people]
people.ID = organisationspeople.peopleID
organisationspeople.organisationsID = "$ID"
in the people.php file in the people table folder I have:
- Code: Select all
function getTitle(&$record){
if($record->val('email'))
$showemail = " (" . $record->val('email') . ")";
return $record->val('firstname'). " " . $record->val('surname') . $showemail ;
}
But it still fills the select box with the first text entry it finds in the people table which is salutation, not getTitle output as I would like it.