I have a webform that we have people fill out two times - for a pre-test and a post-test and I am looking for a way to determine if a pre-test has been taken an if so, set a specific value on form element.
Currently we have people manually select whether they are taking the pre-test or post-test in a webform element, but they are not doing so very accurately. Given we have the data to know that, I am hoping to be able to determine that automatically in a webform field.
Here are some more details:
- We gather a unique participant id (c_ID)
- Based on that participant ID I am hoping to validate if a previous webform submission with that participant ID exists.
- If not: Provide a value of "pre-test"
- If so: Provide a value of "post-test"
Does anyone have any recommendations on how something like this could be done?