Leave a comment at the end of this page or email contact@krishagni.com
Configure Anticipated/Pending Visits based on Participant Field
The anticipated/pending visits from the visit table are configurable based on specific values selected in one or more fields. These fields can be static or custom fields at the participant level.
Add the below-mentioned code block in the “visitsTab” section.
Note:
The “rule” specifies the participant criteria: In this case, “cpr.participant.gender “ is the field and “Female” is the value of that field. So, based on gender, visits are hidden and shown in the visit table.
The “events” specifies the list of events (codes) to be displayed.
Every time, the first matching rule is used. When no rules match, all the events are displayed.
If the event code is not specified, it will always be displayed in the anticipated visit table.
For Multi-select Custom fields
Below code can be used to set up the show/hide events based on multi-select field.
Leave a comment at the end of this page or email contact@krishagni.com