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

  • 15 December 2016
  • 2 replies
  • 9 views

Badge +8

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?


2 replies

Badge +11

Hi Bruce,

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

Should give a start to implement your requirement.

Cheers

Philipp

Badge +8

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.

Reply