You may have plans to create a form with 'Select' field and there you have a lot of possiblities to select i.e. "Choose your country". In this case, follow the steps below: 

  1. If your have a form on your landing page, open it's options by double click on it.

2. Then, add a new 'Select' field to your form.

3. Set the label and name attribute to 'country'.

4. "Save and close" changes and publish your landing page.

5. Next, add the following custom JavaScript code to your landing page (how to add JavaScript code find here):

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-formhelpers/2.3.0/js/bootstrap-formhelpers.min.js"></script>

<script type="text/javascript">

$(function() {

$('select[name="country"]').bfhcountries({country: 'US'});

});

</script>

6. You should see a new form field with a base of countries in 'Select' field.

If you have any questions in this case, reach us out via chat in the right bottom corner 😊


Did this answer your question?