Leave a comment at the end of this page or email contact@krishagni.com
Set default custom field value based on another field value
You can configure custom fields to automatically display a default value based on the Event Label. This can be useful when the expected custom field value depends on the type of visit being collected.
This approach should be used only when the Event Label value exactly matches one of the configured values for the custom field. Otherwise, the field may not display the expected default value.
1. Set custom field values based on event label
Use the defaultValue property with a conditional expression to set different default values based on the visit's event label.
2. Set custom field value defaulted to event label value
When event label and visit custom field PV values are the same then you can set the custom field default value wrt to the visit.
Use case: When you collect the 'PMCT' visit the 'Art der Untersuchung' value should display default as 'PMCT'.