/
Set default custom field value based on event label
Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Set default custom field value based on event label

When event label and visit custom field PV values are the same then you can set the custom field default value wrt to visit.

Use case: When you collect the 'PMCT' visit the 'Art der Untersuchung' value should display default as 'PMCT'.

Add below code in JSON dictionary

{ "name" : "visit.extensionDetail.attrsMap.art_der_untersuchung", "caption" : "Art der Untersuchung", "type" : "radio", "optional" : true, "options" : [ "Klinische Angaben", "Sektion", "PMCT", "PM Ultraschall" ], "defaultValue": "field: visit.eventLabel" }

Using the above code when you collect the visit the default value will be set.

image-20241011-084955.png

 

Related content

Initialise values based on other fields
Initialise values based on other fields
More like this
Hide/Set default value to specimen fields
Hide/Set default value to specimen fields
More like this
Set default value for child based on value of parent/primary specimen
Set default value for child based on value of parent/primary specimen
Read with this
Configure Anticipated/Pending Visits based on Participant Field
Configure Anticipated/Pending Visits based on Participant Field
More like this
Attribute Types Examples
Attribute Types Examples
Read with this
Configuring Field Values per CP
Configuring Field Values per CP
More like this
Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com