what does related_fields means?
what does related_fields means?
From this page from the wiki:
Relate The Relate field combines a blend of a text field with code to allow quicksearch. The quicksearch code is generated for EditViews (see include/TemplateHandler/TemplateHandler.php). There are also buttons to invoke popups and a button to clear the value. For DetailViews, the Relate field creates a hyperlink that will bring up a DetailView request for the field's value.
Within the metadata file, the Relate field can be rendered with the snippet:
array (
array('name'=>'account_name',
'type'=>'relate',
'displayParams'=>array('allowNewValue'=>true)
),
),
This will create a relate field that allows the user to input a value not found in the quicksearch list.
name
Standard name definition when Metadata definition is defined as an Array
displayParams
- required (optional) - Marks the field as required and applies clients side validation to ensure value is present when save operation is invoked from EditView.
- readOnly (optional for editviewdefs.php file only) - Makes the text field input area readonly so that you have to just use the popup selection.
- popupData - This field is generated for you by default. See include/SugarFields/Fields/SugarFieldRelate.php for more information. You should not need to override this setting.
- allowNewValue (optional for editviewdefs.php file only) - This setting allows the user to specify a value that is not found from the quicksearch list of results.
What do you think the cookie monster eats ?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks