1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    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)


    upload_2021-5-18_17-33-13.png

    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).

    Options:
    • 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
    More:
    • 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...