tomaszromanski

Re: Nintex forms custom button submit AND redirect

Hi Jim,

ok the save-button was found, then you've probably only mistyped. Please check again the settings in the form.

1.

2.Control Settings- Button (SAVE)

3. Control Settings - Button (ADD)

4. Settings - Form

My Form is attached. The host list is a simple custom list without any changes.

Reply
Not applicable

Re: Nintex forms custom button submit AND redirect

Thanks Tomasz!

I found the issue was that I had the "save" button (#1 in your list) set as "hidden" and when it is hidden it won't fire at all.. Once I set it as visible "yes" it worked just fine.

Thanks again for all the help!

Jim~

Reply
tomaszromanski

Re: Nintex forms custom button submit AND redirect

I'm really pleased.It is often the small things that make the big difference.

0 Kudos
Reply
racnod
Novice

Re: Nintex forms custom button submit AND redirect

Hi Everyone, I wanted to share what I learned about redirects on Nintex forms. So to redirect on Submit/Save, it's pretty straightforward. You just go to the general form Settings and find the Redirect URL field under the Advanced heading:

This will take care of the redirect on Submit. However, if you are working with a Nintex approval flexi-task, you also have to consider your Cancel and Reject buttons as well. To redirect on Cancel, you have to use some custom Javascript. To do this, go into general form Settings and add a function in the Custom Javascript field. There are different ways to do this. Two scripts I have successfully used are:

function doRedirect(){

history.go(-1);

}

 

This function will take the user back one page in their browser history, which should return them to the page from which they launched the form. This can get weird, however, if your form is launched in a dialog, so I tend to avoid it. The more specific one is this:

function goHome(){

 window.location.replace("https://portal.geha.com/co/SitePages/home2.aspx");

}

 This one directs the user to a specific location. Enter the URL in quotation marks and parens. And you'll want to use this one especially if your redirect target is on another site.

After entering the script into the form Settings, you then need to configure the Cancel button as follows:

Button action: JavaScript

Button label: Cancel (Or whatever you want. If you don't specify this, it will say "Custom")

Advanced > Client click > doRedirect();       {or goHome(); -- whatever the name of your function is}

Back to my approval task, I now need to redirect on REJECT as well. You do NOT want to use custom Javascript to redirect on the Reject button. If you do this, the redirect will work, but the 'submit' part will not work and your approval workflow will hang in In Progress status. The workflow will not continue or complete. So you need to make sure that the Reject button is configured to be a Save and Submit action:

No Javascript. No Client Click setting. This will redirect the user as indicated in the general form Settings and also allow the workflow to continue. 

Hope this helps!

0 Kudos
Reply
voicer
Scout

Re: Nintex forms custom button submit AND redirect

HI

This is all great information.  However, I have the situation whereby when the user clicks on the name of an item (rather than clicking on New and Edit), the Display form appears.  This only displays the Close button and not other buttons that I add onto the form.  How do I access the Nintex Display form?

Thanks again.

0 Kudos
Reply