Link dropdown choice to autofill other fields
Hello I'm creating a form which gives two options on a dropdown list: Citizenship and Permanent Resident. There are two fields must autofill: ID1 and ID2
When you click on:
Citizenship he fields will show the next on ID1: Copy of Canadian Passport Information Page and on ID2: Copy of Canadian Citizenship certificate or Canadian birth certificate
Permanent Resident, the fields will show the next on ID1: Copy of Passport Information Page and on ID2: Copy of Permanent Resident Card (both sides)
I found a JavaScript for this kind of autofill fields, but I'm doing something wrong, It sends me the next error.
Someone can help me? I'm not a developer... I'll appreciate if someone can help me with this issue.
Thanks

