SELECT2 PLUGIN usage | Community
Skip to main content
Level 3
December 1, 2022

SELECT2 PLUGIN usage

  • December 1, 2022
  • 1 reply
  • 959 views

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.

1 reply

Mayank_Gandhi
Adobe Employee
Adobe Employee
December 6, 2022

@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

Sb2512Author
Level 3
December 7, 2022

Thanks for the inputs...

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

 

@mayank_gandhi 

 

 

Mayank_Gandhi
Adobe Employee
Adobe Employee
December 9, 2022

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