Skip to main content

Hi

I have a form with URL link (form label) to open another form. The purpose is for the requestor to jump to another form and create a new master data, if they cannot find it in the current form.

I have used Redirect URL for “Save and Submit” button and use some custom Javascript for “Cancel” button to redirect to previous forms

 

function doRedirect(){

history.go(-1);

}

But the previous input value was deleted every time when users go back to the previous form.

Is there any better way to handle this request?

Thanks,

Emily

Hi,

did you try to use the submit button with the client click function doRedirect()? Within your client click function doRedirect() use setTimeout() so there is enough time for the form to save its input.

In your scenario, you are just closing the form without saving the changes.

Cheers!


Reply