stempb
Rookie

Redirect based on control value / run JavaScript only if form is valid?

I need to be able to redirect to a URL when a form is saved based off a value of a control.   For some reason Nintex cannot access a control value in the Redirect URL parameter on the form.

So I thought I could use the Client Click parameter of the button.    This works but the code is always executed even if the form is not valid.      Is there anyway to check if the form is valid then not execute the code if it is not valid?

0 Kudos
Reply
2 Replies
philipplucas
Scout

Re: Redirect based on control value / run JavaScript only if form is valid?

Hi Bruce,

this article explains how to add custom validation functions to your form:  

Should give a start to implement your requirement.

Cheers

Philipp

0 Kudos
Reply
stempb
Rookie

Re: Redirect based on control value / run JavaScript only if form is valid?

Yes I know about custom validation. I didn't want to custom validation as all of my validation is already done in rules.   The Redirect URL should be able to access controls but as usual Nintex does not go the extra mile.

0 Kudos
Reply