Expand my Community achievements bar.

SOLVED

Restrict tagpicker field for single tag selection

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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...

 

Hope this helps!!

Thanks

 

View solution in original post

2 Replies

Avatar

Community Advisor

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...

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

Avatar

Correct answer by
Employee Advisor

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...

 

Hope this helps!!

Thanks