AUI SELECT How To valid required

Fernando del Río December 30, 2015

Hi Guys,

https://docs.atlassian.com/aui/latest/docs/auiselect2.html

I have the same problem. I need Validate select  component into form.

 

See you!

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2015

What "same" problem?

If you need to validate field entries, use a validator.  I'd say more, but I'm afraid there's too little information in the question to work out what we should be talking about.

Fernando del Río December 31, 2015

I'm trying to make a required field select as follows: data-aui-validation-required="required" this does not work thanks

0 votes
Milind Mehta January 3, 2016

if you want to make field as require you can use form Form validation

as you need to require in select2 drop down, please find below code.

<form class="aui">

                <div class="field-group">

                <label>Validate Select 2</label>

                <select id="select2-example" multiple="" data-aui-validation-field data-aui-validation-required="required">

        <option value="CONF">Confluence</option>

        <option value="JIRA">JIRA</option>

        <option value="BAM">Bamboo</option>

        <option value="JAG">JIRA Agile</option>

        <option value="CAP">JIRA Capture</option>

        <option value="AUI">AUI</option>

    </select>

                </div>

                  <label for="demo-message-length">Input

                        with validation</label>

                    <input id="demo-message-length" class="text" type="text" data-aui-validation-field minlength="10">

                </div>

              <div>

            </form>

Hope this may work for you.
Thanks,
Milind

 

 

TAGS
AUG Leaders

Atlassian Community Events