This guide will show you how to display conditional HTML Repeat headers based on specific status values.
- Initial Setup:
- Drag and drop an âHTMLâ field, two âTextâ fields, an âEmailâ field, a âHiddenâ field, a âSelectâ field, and a âField Update Workflowâ field inside a âRepeatâ field on your form. Rename these fields as needed.
- Configuring The âSelectâ Field:
- Click the pencil icon of the âSelectâ field.
- Update the âSelect Optionsâ as shown below.
- Configuring The âField Update Workflowâ Field:
- Click the pencil icon of the âField Update Workflowâ field.
- Set âRule Criteriaâ to âStatus (Select field) || not equal to || Openâ.
- Set âField Updates Successâ to âStatus Color CSS (Hidden field) || value || dangerâ.
- Set âField Updates Failâ to âStatus Color CSS (Hidden field) || value || primaryâ.
- Configuring The âHTMLâ Field:
- Click the pencil icon of the âHTMLâ field.
- Paste the code provided.
- Use this code.
- â8b8d-c720-2332â is the field ID of the âStatus Color CSSâ Hidden field.
- âd582-380d-0a29â is the field ID of the âFirst Nameâ Text field.
- âd4c6-ee4d-1fa0â is the field ID of the âLast Nameâ Text field.
- âf88f-9789-486eâ is the field ID of the âEmailâ field.
<span class="label label-{{8b8d-c720-2332}}">{{d582-380d-0a29}} {{d4c6-ee4d-1fa0}}</span>
<small>{{f88f-9789-486e}}</small>
- Set yes to the âEnable the Reload On Merge Field Changeâ option.
- Set yes to the âEnable Advances Templatingâ option.
- Configuring The âRepeatâ Field:
- Click the pencil icon of the âRepeatâ field.
- Set âCustom Repeat Header HTMLâ as the âRepeat Entry Header Fieldsâ.
- Save the changes.
- Test The Form:
- The Repeat entry header will display based on the "Status" value.
For any questions, please contact us - [email protected] or the Formyoula in-app chat. đ