• Resolved STEVE

    (@solernet)


    This question is regarding the “Address” User Info Field. This field automatically generates all the common address fields. When someone selects the United States for country, the State field is automatically populated with US states. The problem is that the country field is placed after the State field. So logically, someone filling out the form would type in their State before they even get to the Country field. Is there a way to make the Country field automatically populate with United States, so when the user gets to the form, the states are already populated in the State field?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Contributor Form Maker Support

    (@formmakersupport)

    Dear Steve,

    Thanks for the screenshot.

    Please note that it was a problem with quotes (“). Please copy and paste the below mentioned code.

    function before_load() {
    
    jQuery("#wdform_10_country1").val("United States");
    
    jQuery("#wdform_10_country1").trigger("change");
    
    }
    Thread Starter STEVE

    (@solernet)

    That worked!

    Thank you!

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Automatically populate Country field’ is closed to new replies.