Skip to main content
Level 2
May 23, 2022 8:28 AM UTC
Solved

Prepopulate By Country

Hi all,

 

We want to create a form that will mark a specific checkbox field according to the value of the the Country Field.

For example:

If a user arrives to the form

 

and chooses from the values "United States"

the checkbox field will be Checked automatically,

 

Is there a way to check it according to his response in the Country field or any other way by tracking "Inferred Country"?

 

Thank you.

 

Darshil_Shah1
Darshil_Shah1Accepted solution
Adobe Champion, Community Advisor, UG Leader
May 23, 2022 9:50 AM UTC

You should refer Sandy's MktoForms2 :: Auto-cascade select → checkbox codepen. It'll populate the targetField check-box based on the values you define for the sourceField in the rules variable. Let us know if you've any questions!

 

1 reply

Darshil_Shah1
Adobe Champion, Community Advisor, UG Leader
Darshil_Shah1Adobe Champion, Community Advisor, UG LeaderAccepted solution
Adobe Champion, Community Advisor, UG Leader
May 23, 2022 9:50 AM UTC

You should refer Sandy's MktoForms2 :: Auto-cascade select → checkbox codepen. It'll populate the targetField check-box based on the values you define for the sourceField in the rules variable. Let us know if you've any questions!

 

Translate