AnsweredAssumed Answered

Using the form's default on a Form 2.0 embedded form

Question asked by Robb Barrett Expert on Apr 12, 2016
Latest reply on Apr 13, 2016 by Sanford Whiteman

Curious how I'd do this:


Let's say I have a form with a hidden field of Country, which on the form defaults to United States.  The code to embed and run the form is on my LP template.  The correct form is chosen by a token so I don't know whether or not I'll be asking the Country question.


If the lead is known and has a lead.Country value, I'd like to defaul to that value. If the lead is unknown, I'd like to default to United States.  How do I modify my form.vals() in the code to choose the default option on the form itself? Some forms using this template might be Canadian and I may want to default them there instead of United States.