Home>Support>Modify input field

Modify input field

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!

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    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.

  2. 6 years, 9 months ago bianqui

    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.

  3. 6 years, 9 months ago Alex S
    Hi, I Work Here

    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.

  4. 6 years, 9 months ago bianqui

    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?

  5. 6 years, 9 months ago Alex S
    Hi, I Work Here

    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.

  6. 6 years, 9 months ago bianqui

    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.

  7. 6 years, 8 months ago Alex S
    Hi, I Work Here

    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.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More