Adding custom expressions

You can directly bind to an expression without binding into a data source.

  1. Create or edit a widget.
    • If you are creating a new widget, perform the steps on New Page.
    • If you are updating an existing widget, perform the steps on Edit Page.
  2. In the Elements section, select a widget element.
  3. In Data Properties > Expression, click Custom Expression.
  4. In the Expression Editor > Add item menu, select an item.
    • If you select Static Text, in the Add Static Text dialog box, specify the static string value.
    • If you select Translation, in the Add Translation String dialog box, search and select a translated string.
    • If you select Variable, in the Add Variable dialog box, search and select a variable.
    • If you select Current date, in the Add Date dialog box, select the date format and the number of adjustment days.

      See Date format.

    • If you select Component, in the Add Component Binding dialog box, search and select a component.
  5. Click Add.
  6. Click Save.
  7. In the widget preview, check the rendered value.