Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.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','');