- Code: Select all
function getTitle(&$record){
return $record->val('Exterior');
}
Any ideas?
getTitle on an array
3 posts
• Page 1 of 1
getTitle on an arrayI have a field that is a multi-checkbox from a valuelists. This field also serves as the title field for this record. However, my function simply returns the word 'array'.
Any ideas?
Re: getTitle on an arrayMulti-checkbox fields are stored as an array. The val() method returns the contents of a field as they are stored (dates will also return arrays). If you want to ensure that you are getting the string version you should use either strval() or display()
3 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 26 guests |