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!
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:
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:
require('aui/form-validation')
- Daz
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.