[EN] USE379D3 - Complex expression in field events
1. In the left side menu of the home screen, click Structure
2. In the submenu, click Types
3. In the Types list, open the category you want to set up
4. In the category panel, click the Fields card
5. In the fields table, open the field's Actions menu and click Update
6. In the field panel, click the Field Events tab
7. Click + Add event
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
9. In Field, type the technical reference of the field that will receive the values, with no braces and no data.
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
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.
12. Click Save to store the event in the field
13. In an item form, select several related records and check the field filled in by itself