Expand my Community achievements bar.

SELECT2 PLUGIN usage

Avatar

Level 4

Hi all,

We have a requirement where we want to use select2 plugin for our drop down requirement .

What is the correct approach to do that and handle such a scenario in aem forms with ootb fields

@Mayank_Gandhi Any help is appreciated

Thanks

3 Replies

Avatar

Employee Advisor

@Sb2512 anything specific that you are unable to achieve using OOTB select? Your options

1. Create a custom component just like site dropdown, and handle data in your own way(prefill, submit, data binding)

2. Overlay the OOTB one

3. Create a custom component and have a hidden field(OOTB) that is used to read selected dropdown data and map it further. -> My preferred way in case there is data logic

Avatar

Level 4

Thanks for the inputs...

We want to add a flag of the country in drop down field with country code....

 

@Mayank_Gandhi 

 

 

Avatar

Employee Advisor

@Sb2512 that should be ok, follow the above approaches I suggested