cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Redirect based on condition

Jump to solution

Hi Team,

I would like to redirect to different page based on condition after submitting the form.

I tried using redirect url in advanced section of the form settings as below.

fn-if(item property value != "x", "/sites/sitename","sites/sitename/lists/listname")

But if is not getting resolved. I am getting navigated to below url

https://rootsite.com/sites/sitename/

fn-if(item property value != "x", "/sites/sitename","sites/sitename/lists/listname")

I dont understand what wrong i am doing. Please correct me.

Thanks & Regards

Usha

Tags (1)
0 Kudos
Reply
12 Replies
Workflow Hero

Re: Redirect based on condition

Jump to solution

is it NEW form?

if so, all the item properties are yet empty, so your condition is always true, hence you're always redirected to "/sites/sitename"

0 Kudos
Reply
Workflow Hero

Re: Redirect based on condition

Jump to solution

Hello Marian,

Yes it is a new form. Thats my problem.

There are actually 2 buttons on the form. When i click 1 button the form should be saved and redirect to 1 URL .

Is another button is clicked form should be saved and redirect to a different url.

I am trying by inserting value in a field in the form connected to list. But that value is returning empty.

can you please suggest how to identify which button is clicked and then redirect based on that?

Thanks & Regards,

Usha

0 Kudos
Reply
Workflow Hero

Re: Redirect based on condition

Jump to solution

you can configure different redirect URL per each button

Reply
Workflow Hero

Re: Redirect based on condition

Jump to solution

I am unable to see this Redirect URL for the button. So i need to do anything to make it visible?

0 Kudos
Reply
Workflow Hero

Re: Redirect based on condition

Jump to solution

what forms version are you on?

it was introduced in v2.10.0.0 in March 2017

see release notes -  

0 Kudos
Reply
Workflow Hero

Re: Redirect based on condition

Jump to solution

Its 2013 version which we are using

0 Kudos
Reply
Workflow Hero

Re: Redirect based on condition

Jump to solution

go to Form Designer >> Help >> About and you will see there exact version number

0 Kudos
Reply
Workflow Hero

Re: Redirect based on condition

Jump to solution

Version mention - About Nintex Forms 2.8.1.0

0 Kudos
Reply
Workflow Hero

Re: Redirect based on condition

Jump to solution

I even tried implementing the way mentioned at  

To implement button click in jquery function on click of javascript button.

It works sometimes. But sometimes it just redirects but doesnt save the form. 

0 Kudos
Reply