Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
7 subscribers
Views
2029 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi , I use this code to skip all the mandatory fields in the form .
sanghapriyab
over 12 years ago
Hi ,
I use this code to skip all the mandatory fields in the form .
function skipValidationFunc(field)
{
var componentDom = window.Build.util.getComponentContainer(field,window.FormDesigner.runtimeNamespace);
var configData = window.FormDesigner.getConfigData(componentDom.get(0));
configData.required = "false";
}
In the field we pass in the field id .
Now this code doesnt work if the validation is done using custom javascript . Is there a code to skip the validation for custom javascript validatons also .
Thanks
Sanghapriya Bose...
OriginalPostID-29298
OriginalPostID-29298
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 12 years ago
This doesn't work with custom JS validation because you are only setting the "required" flag to false. The custom validation property is different form the "required" one. You can use the approach I describe here:
forum.appian.com/.../5411
which is basically add the following to remove the custom JS validation and therefore make Appian skip it:
.....
configData.required = "false";
var customValidation = configData.customValidations[0].value;
configData.customValidations[0].value = null;
window.Build.rebuild(configData.namespace, configData.key, true);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 12 years ago
Notice how I basically nullify the custom validations property and rebuilt the component.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel