- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Custom javascript file upload for form field validation
Hi,
I'm preparing multiple complex custom forms having more than 15 custom fields and they required a interrelated validation between each other (also some functions can be reused like date validation and all). The possible way out to work on those complex validation is using java script block.But that have following limitations -
1. You can't write more than 500 characters in that field (restricting you not to create complex logic)
2. You can't reuse any function which can be reused by other form.
Now can I create a js file with all the custom java script methods and upload in Aveksa and access those js functions from any form possibly by mentioning validation URI ?
Any clue will be appreciated.
Thanks, Amit
- Tags:
- Community Thread
- Discussion
- form field
- Forum Thread
- Identity G&L
- Identity Governance & Lifecycle
- IG&L
- IGL
- java_script
- RSA Identity
- RSA Identity G&L
- RSA Identity Governance & Lifecycle
- RSA Identity Governance and Lifecycle
- RSA IGL
- validation_uri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Absolute silence here . Could anyone help me with this please ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I suggest the community search option. Here are some of the results for searching "uri"
Validation URI usage - check for existing collected value
What does the "validation URI" box do on a register user form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
If anyone still looking for a solution to this in 2019 , I was able to achieve as below:
1. In the form, create a Static text field (Control type: Static Text)
2. In the static text : Add <script src="<PathOfYourJavascript>/Example.js" defer></script>
And your sample JS file will contain usual javscript code like below
avform.registerExprSub(null, "${avform.CurrentLMFirstname}${avform.CurrentLMLastname}", function() {
var tempval=avform.CurrentLMFirstname+" "+avform.CurrentLMLastname;
avform.setValue('CurrentLineManager',tempval);
});
avform.registerExprSub(null,"${avform.Segment} ${avform.Segment_Ref} ${avform.Segment_JML_Ref}", function(value) {
if (typeof value != "undefined"){
var arrSeg = value.split(' ');
var SegmentChange = DidSegmentChange();
}
});
This js file can be deployed as a customApp.war under /home/oracle/wildfly/standalone/deployments/ path
