Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi, is there a way to customize the select field? Because I like to add a library like “Select2” for the dropdown and I have to modify a coupple of things.
Best!
Hi, thanks for posting :) Technically, anything is possible. Unfortunately, this isn’t something we’ve looked into which means there aren’t developer docs ready for this topic. Sorry, wish I had better news for you.
I found the solution!!!.
It’s possible the set for one option to selected in the field autocomplete, because now allows to select multiple option.
I tried to pass a value like ‘multiple’ => ‘false’ in the widget but no luck.
Hi Bianqui,
Unfortunately, there’s currently no reliable way to alter how a form fields in that manner at this time. Your best bet would be to create a new form field with your desired setup.
Regarding the multiple option, multiple must be set to true to allow for multiple select.
Okay, but I have this code for example:
array( ‘type’ => ‘autocomplete’,
‘label’ => __(‘Taxonomies’, ‘so-widgets-bundle’),
‘source’ => ‘terms’,
‘description’ => __(‘Select’, ‘so-widgets-bundle’),
‘multiple’ => ‘false’),
And I want to select only 1 option, how can I do it?
Hi Bianqui,
Sorry, I thought you were still asking in regards to the select. My mistake!
Unfortunately, autocomplete doesn’t feature a way of disabling multiple select at this time – there isn’t a multiple option.
No problem, another topic outside of this, is possible to set a limit for the field repeater? I want to create a field repeater with a limit of 8 item elements.
Hi Bianqui,
Unfortunately, that’s not possible with the repeater field at this time. I’ve marked this thread as a feature request. We often look through these threads to get ideas for what to add in our future updates. Hopefully, we’ll be able to add this in a future update.