NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.Dismiss Notice
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.
return 'a string';
return FabrikHelperElement::filterValue(81); //81 is the id of the filter element
$myInput = JFactory::getApplication()->input;
$myParam = $myInput->get('urlparam','');