Form Validation not working for Dialog Box fields

I am using jquery validation plugin to validate for my fields. It works fine for normal form fields but it fails to validate for Dialog2 form fields.


    jQuery(document).ready(function() {



<div class="aui-dialog2-content">

    <form class="aui actorform" action="#" name="jiraform" id="actorform" method="post">

        <div class="content">
            <div class="field-group">
                <label for="summary">Actor<span class="aui-icon icon-required">Required</span></label>
                <input type="text" value="" name="actor" id="actor" class="text long-field" data-aui-validation-field data-aui-validation-required="required" required>


1 answer

1 accepted

It'd be useful to know the version of AUI you are using (you can check with `AJS.version` in the console)

If you are using AUI <= 5.8, you will need to call `require([aui/form-validaiton])` to have the validation work correctly.

The tags indicate you're looking at version 5.9.0 of the docs, here is a demo of form validation working on that version:,js,output

Hi Joshua, I followed your jsbin code it works fine when you just use enter button but the moment I add a footer inside the dialog box with submit button it do not validates the field.

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

83 views 2 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot