Skip to main content
Bryant_Chang
Level 3
May 3, 2017 7:55 PM UTC
Solved

Forms with initially selected values dependent on visibility rules

Trying to create an opt in field on a form, that has "initially selected" as true if country is US and not "initially selected" if country is Canada.

Is this possible with out of the box forms 2.0 or will we need custom scripting on the pages

I tried creating 2 separate values, one with "initially selected" for one of the values and added visibility rules to only show the initially selected if country is US and the other not initially selected if country is Canada.

But when I select Canada as my country, the value shows correctly but is pre-selected.

Anyone have ideas?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
May 18, 2017 6:13 AM UTC

Sanford Whiteman hope you had a great trip

It was okay.

I'm assuming the scripting will have to live on the lp template? not in form css?

It would never go in the CSS (being JS and all). It could potentially go in a Rich Text area but I prefer to keep it in an external file or in the template.

An example is here: MktoForms2 :: Dependent Checkbox

4 replies

SanfordWhiteman
User Group Leader
User Group Leader
May 4, 2017 12:43 AM UTC

Q should be moved to Products​ (remember, "Central" is for non-product-specific mktg topics).

A is this absolutely can be done but needs a tiny bit of scripting. I'll show you tomorrow but gotta pack for a trip right now...

Translate
Bryant_Chang
Level 3
May 17, 2017 5:30 PM UTC

@Sanford Whiteman hope you had a great trip

I'm assuming the scripting will have to live on the lp template? not in form css?

Translate
SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
May 18, 2017 6:13 AM UTC

Sanford Whiteman hope you had a great trip

It was okay.

I'm assuming the scripting will have to live on the lp template? not in form css?

It would never go in the CSS (being JS and all). It could potentially go in a Rich Text area but I prefer to keep it in an external file or in the template.

An example is here: MktoForms2 :: Dependent Checkbox

Translate