Restrict tagpicker field for single tag selection | Community
Skip to main content
ashisht85509954
Level 2
July 24, 2021
Solved

Restrict tagpicker field for single tag selection

  • July 24, 2021
  • 2 replies
  • 2176 views

As we know tag picker field in AEM is multiselect, is there a way we can restrict a tag picker field for single tag selection only.

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

Hi @ashisht85509954 ,

 

Please try 

selectionCount  (stringel) = single

The count of item to be selected:

single   ---- Only maximum single selection allowed

multiple ----- Zero or more selection allowed

You can also check below documentation-

 

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/picker/index.html

 

Hope this helps!!

Thanks

 

2 replies

Kiran_Vedantam
Community Advisor
Community Advisor
July 25, 2021

Hi @ashisht85509954,

 

Please use selectionCount property on the dialog node of the tag picker for your use case

 

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/picker/index.html

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

BimmiSoAdobe EmployeeAccepted solution
Adobe Employee
July 26, 2021

Hi @ashisht85509954 ,

 

Please try 

selectionCount  (stringel) = single

The count of item to be selected:

single   ---- Only maximum single selection allowed

multiple ----- Zero or more selection allowed

You can also check below documentation-

 

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/picker/index.html

 

Hope this helps!!

Thanks