Skip to main content
Level 3
Dec 1, 2022 5:09 PM UTC

SELECT2 PLUGIN usage

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Mayank_Gandhi
Adobe Employee
Adobe Employee
Dec 6, 2022 3:28 AM UTC

@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

Translate
Sb2512Author
Level 3
Dec 7, 2022 6:36 PM UTC

Thanks for the inputs...

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

 

@mayank_gandhi 

 

 

Translate
Mayank_Gandhi
Adobe Employee
Adobe Employee
Dec 9, 2022 7:19 AM UTC

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

Translate