• A new version of Full Calendar is now available.

    See the details here

Element default examples

  • Views Views: 23,147
  • Last updated Last updated:

Navigation

      Access element (+)
      Birthday element
      Button element
      Calculation element
      Captcha element
      Checkbox element
      Colour Picker element
      Count element (+)
      Database join element
      Date element
      Digg element
      Display text element
      Dropdown element
      Facebook Like element
      Field element
      File Upload element
      Folder element
      Google Map element
      Image element
         Image databese join
      Internal id element
      IP element
      J!Date element
      Kaltura element
      Link element
      Notes element
      OpenStreetMap element
      Picklist element
      Radio Button element
      Rating element
      Sequence element
      Slider element
      Tags element
      Textarea element
      Thumbs element
      Time element
      Timer element
      Timestamp element
      Total element
      User element
      User group element
      Video element
      View level element
      YesNo element
      Youtube element
      Akismet validation
      Is Email validation
      Is Not validation
      Is Numeric validation
      Not empty validation
      PHP validation
      Rsa id
  • 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';

    Using placeholders....
    PHP:

    return '{tablename___elementname}';

    Get a filter value
    PHP:

    return FabrikHelperElement::filterValue(81); //81 is the id of the filter element

    Insert a URL parameter (e.g. to set the default of a non-writable element, which can't be set for security reasons directly via URL)
    PHP:

    $myInput = JFactory::getApplication()->input;
    $myParam = $myInput->get('urlparam','');
    return $myParam;
Back
Top