Leave a comment at the end of this page or email contact@krishagni.com
Configure Consents in Participant overview page
Using JSON, the consent fields can be displayed as read-only fields on the participant overview page. The code block should be added in the dictionary section of the JSON. There are 2 ways in which the consent data can be displayed on the UI:
Method 1 – Display consent as along with the other participant fields
Below-mentioned code block will display the consent statement and its response on the participant overview page as displayed in the screenshot
{
"name": "consents.witness",
"caption": "Witness",
"type": "user",
"optional": true
},
{
"name": "consents.consentSignatureDate",
"caption": "Consent Date",
"type": "date",
"optional": true
},
{
"name": "consents.C1", // C1 is consent statement code
"caption": "Question 1", // Customised consent statement for display on overview page
"type": "text",
"optional": true
},
{
"name": "consents.C2", // C2 is consent statement code
"caption": "Question 2", // Customised consent statement for display on overview page
"type": "text",
"optional": true
}
Method 2 – Display consent in a tabular format
Users can also display the consent statement and responses in a tabular format using the code block mentioned below as displayed in the screenshot
{
"name": "consents.responses", // Collection of all consent responses
"caption": "Consent Responses",
"type": "collection", // display in tabular format
"fields": [ // with following columns
{
"name": "statement", // statement as first column
"caption": "Statement",
"type": "text",
"optional": true
},
{
"name": "response", // response as second column
"caption": "Response",
"type": "text",
"optional": true
}
]
}
Leave a comment at the end of this page or email contact@krishagni.com