-
"Fabrik 4" helpers needed!Dismiss Notice
You are invited to join other community members active in coding, maintaining and improving Fabrik. Please visit https://fabrik.help for more information!
Element default examples
-
Many elements have both a "default" option and an "eval" option.
When you turn on "eval", the text entered in the "default" option is treated as PHP.
The PHP expression is evaluated and the data 'returned' is used as the element's default value.
PHP:
return 'a string';
PHP:
return '{tablename___elementname}';
PHP:
return FabrikHelperElement::filterValue(81); //81 is the id of the filter element
PHP:
$myInput = JFactory::getApplication()->input;
$myParam = $myInput->get('urlparam','');
return $myParam;
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM