1
0
-1

Hi,

I have a form where among other fields there is a custom html field that contains html for a dropdown box . The dropdown box has a list of countries of the world. I did not use the joget select box because did not want to write one by one the country names.

But i need to make this field mandatory. I wrote below code in custom html to make it mandatory. But if user does not choose a country from the dropdown box and submits the form, the process hangs(just show Please wait....).

<select id="country" name="country" required >


Please help what can I do in this case?

Thanks

    CommentAdd your comment...

    1 answer

    1.  
      3
      2
      1

      It would be easier to create a database table for countries and get the free list of country .csv data from https://developers.google.com/public-data/docs/canonical/countries_csv to populate your table. Then use select box to read / lookup from this country table.

        CommentAdd your comment...