It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Aui-form-validation is not working using web resource key

Hi,

I want my forms to be validate using aui-form-validation.But I am not able to get the resource using the web resource key 'com.atlassian.auiplugin:aui-form-validation'.

I added this code in my vm file  

  #requireResource("com.atlassian.auiplugin:aui-form-validation").

But no effect.Did I miss anything?

Thanks in advance!

2 answers

0 votes

I guess you need to include it as dependency in atlassian-plugin.xml under the web-resource tag. Something like this

<dependency>com.atlassian.auiplugin:aui-form-validation</dependency>

Hi @Alexey Matveev _cPrime_ 

Thanks for your fast reply.

I added the dependency as a new web resource and add it in my vm file using require resource.But it still not working..

0 votes
Daz Atlassian Team May 09, 2018

Hi @LijinR,

Did you end up finding a solution to your problem? I have some guesses as to what the problem might be, but I would need to know a few more things:

  • What product(s) are you building a plugin for?
  • Are you building a generic web-item, a web-panel, or a product-specific plugin point type?
  • What does the markup in your VM file look like -- can you provide a copy here?
  • What does your atlassian-plugin.xml file look like?

Once you have required the resource for form validation, depending on the version of AUI in use by the product, you may still need to initialise the feature by calling some javascript&colon;

require('aui/form-validation')

 - Daz

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Teamwork

Listening out loud: how Fabian Lopez works on distributed teams

The start of the COVID-19 pandemic served as a forcing function to re-evaluate the way teams worked together. In fact, many companies are re-learning how to collaborate with their teams. As some move...

58 views 2 1
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you