XF 2.2 Possible to limit the amount of items selected in an autocomplete

Grant

Well-known member
Hello

I'm using the code used for finding tags, elsewhere on the site:

HTML:
<xf:tokeninputrow name="tags" value="{$tags}" href="{{ link('misc/tag-auto-complete') }}"
                label="{{ phrase('tags') }}" />

At the moment it allows you to select a seemingly infinite amount of tags:

Screenshot 2021-08-06 at 16.23.19.webp

Is there away of limiting it to one

I've tried ac="single", which I've seen elsewhere.

Thanks in advance
 
Top Bottom