tenants
Well-known member
So, it's quite useful to have autocomplete fields (drop downs that are searchable), they can reduce dom bloat
You can use them like this:
But if you hit an initial loading script error
You need to wrap it in a form (took many trial and errors to find this, gpts were little / no help)
You can use them like this:
Code:
<xf:textbox name="blabla"
value="{$bla}"
ac="single"
maxlength="100"
placeholder="Search for a bla..."
autocomplete="off"
data-acurl="{{ link('some/json') }}"
/>
But if you hit an initial loading script error
core.js?_v=6b67523b:397
No element passed in to event.on | @ | core.js?_v=6b67523b:397 |
You need to wrap it in a form (took many trial and errors to find this, gpts were little / no help)
Code:
<form>
<xf:textbox name="blabla"
value="{$bla}"
ac="single"
maxlength="100"
placeholder="Search for a bla..."
autocomplete="off"
data-acurl="{{ link('some/json') }}"
/>
</form>