Hello @juniorjlk
Thank you very much for using our plugin.
The plugin includes two alternatives to add the dropdown choices in bulk:
* Use the DropDown DS fields, distributed with the Developer and Platinum versions, and reading the choices’ texts and values from a CSV file. This method has the advantage of using the same CSV file with multiple forms to update every form from only one place, the CSV file.
For example, assuming you send your products to a list of countries and allow the users to select the country for shipping through a DropDown field. If you want to add a new country to the list, you must edit every form separately. But using DropDown DS fields, you only need to add the country to the CSV file.
https://cff.dwbooster.com/blog/2019/02/14/ds
* The second alternative would be to populate the DropDown field by coding. For example, assuming you have the DropDown field fieldname123, and you want to add the following choices:
First choice:
Text: A
Value: 1
Second choice:
Text: B
Value: 2
Third choice:
Text: C
Value: 3
Insert an “HTML Content” field in the form and enter the following piece of code as its content:
<script>
fbuilderjQuery(document).one('showHideDepEvent', function(){
getField('fieldname123').setChoices({'texts' : ['A', 'B', 'C'], 'values': [1, 2, 3]});
});
</script>
Best regards.