Dinamically Dropdown field

I would like to select country in dropdown and display a code and flag of country dynamically. How can I create it in JS?

Thanks for the Help

Hello @Yerlan,

Welcome to Plumsail Community!

Please learn how to work with a dropdown field using JavaScript here:

Thanks mnikitina!
I read it early but js code in js editor no access to field of form and don't work dinamically with fields. I did it as writed in examples, but no reaction.


//sets the field's title
fd.field('DropDown2').title = 'Country'

fd.field('DropDown2').placeholder = "Select country";


The code is commented out and is not executed.

Add the code outside of comments like this: