[EN] USE379D3 - Complex expression in field events

  1. 1. In the left side menu of the home screen, click Structure

    In the left side menu of the home screen, click Structure
  2. 2. In the submenu, click Types

    In the submenu, click Types
  3. 3. In the Types list, open the category you want to set up

    In the Types list, open the category you want to set up
  4. 4. In the category panel, click the Fields card

    In the category panel, click the Fields card
  5. 5. In the fields table, open the field's Actions menu and click Update

    In the fields table, open the field's Actions menu and click Update
  6. 6. In the field panel, click the Field Events tab

    In the field panel, click the Field Events tab
  7. 7. Click + Add event

    Click + Add event
  8. 8. Set up the event trigger: leave Field is on Edited, so the event runs when the field changes, and Action Type on Edit Fields; then click Add

    Set up the event trigger: leave Field is on Edited, so the event runs when the field changes, and Action Type on Edit Fields; then click Add
  9. 9. In Field, type the technical reference of the field that will receive the values, with no braces and no data.

    In Field, type the technical reference of the field that will receive the values, with no braces and no data.
  10. 10. Turn on the toggle in the Complex Expression column: it is what lets the event go through the list of a Multiple Relationship, something that was already possible with the Relationship type and that does not work without it

    Turn on the toggle in the Complex Expression column: it is what lets the event go through the list of a Multiple Relationship, something that was already possible with the Relationship type and that does not work without it
  11. 11. In Value, always start with the {{~v2}} prefix: it tells the system to read the content as a Handlebars expression. Without it everything is plain text and no helper works. With the prefix, {{#each}}, {{#if}}, {{#with}} and the others work; here we use {{#each}} as an example.

    In Value, always start with the {{~v2}} prefix: it tells the system to read the content as a Handlebars expression. Without it everything is plain text and no helper works. With the prefix, {{#each}}, {{#if}}, {{#with}} and the others work; here we u
  12. 12. Click Save to store the event in the field

    Click Save to store the event in the field
  13. 13. In an item form, select several related records and check the field filled in by itself

    In an item form, select several related records and check the field filled in by itself