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!
Community moderators have prevented the ability to post new answers.
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.
I'm trying to make a required field select as follows: data-aui-validation-required="required" this does not work thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.