Sorry this question may be ambiguously phrased. Essentially I have a COVID vulnerability questionnaire that adds a participants "Actual" age to a set of scored health conditions and churns out a combined age which then determines if a person should or shouldn't return to work.
My issue is the recent medical guidelines have changed from a generic "if you have mild asthma add 2 years to your age" to "if you have mild asthma and you are 20 add 23 years, 21 add 23 years- 75 add 1 year". The scoring is not linear or simple as it was when I first generated the survey. So I have edited the survey to include display logic for each health condition, and a drop down age selection box if they select yes to that condition. Each age drop down is scored according to the medical guidelines. The problem is for each medical condition participants say they have, they then need to select their age. Is there a way I can autofill the drop down from their actual age (which is set up as embedded data) so if they select yes I have this condition, their age is already selected and they click continue.
I've tried setting this up with Carry forward choices but this doesn't work. Presumably I can set this up using Javascript, but I have no idea how to script it? Can anyone help?
Question
Is it possible to pull embedded data into a drop down selection to autofill the choice?

Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.