1. "Fabrik 4" helpers needed!

    You are invited to join other community members active in coding, maintaining and improving Fabrik. Please visit https://fabrik.help for more information!
    Dismiss Notice

Display text element

May 18, 2021
Display text element
  • The Display element is used to display (normally) fixed text. It. It simply displays the element label (if set to show) and the "Default" text without any associated input field.

    Settings (top)


    Tip: If you need HTML formatted text in the label then go to Fabrik "Options" -> Forms and select 'yes' for the 'Use WYSIWYG editor for element labels' option (Attention: this will enable a WYSIWYG editor field for the labels of ALL elements).

    • Default - The text to populate the element with. If the eval option is selected then this should contain a PHP statement. It's shown in new and in existing records (never pulled from the database).

      Caution: If the display field is part of a repeating group, placeholders will not work as expected in evals. The placeholder will return an array with the values of all rows and not just the value of the current row.
      As an alternative the calc element may be used.
    • Eval - evaluate the default value as a PHP function. Element default examples
    • Show label - Should the form show the label as well as the display text

    Making the text translatable(top)

    To make text that appears in the Display element translatable:
    • enter your translation string into the DEFAULT box
    • Set EVAL to NO
    • enter your translation string and text into the Joomla language overrides area
  • Loading...