I try to limit an input to one prefix with:
But it seems, that this doenst work. I still can add more than one prefix to my form.
Any idea how to limit the form to one prefix, please?
Code:
<xf:if is="is_addon_active('SV/MultiPrefix')">
<xf:formrow label="{{ phrase('prefix') }}" rowtype="input">
<xf:macro template="public:sv_multiprefix_prefix_macros" name="select"
arg-type="resource"
arg-selected="{{ [$resource.sv_prefix_ids] }}"
arg-prefixes="{$resourcePrefixes}"
arg-name="prefix_id"
arg-href="{{ link('resources/prefixes', '', {'force_limit_prefix': 1}) }}"
arg-listenTo="#js-categoryList" />
</xf:formrow>
<xf:else />
But it seems, that this doenst work. I still can add more than one prefix to my form.
Any idea how to limit the form to one prefix, please?