Redirect after form submission

John209
Giga Expert

I'm creating a custom application where a user can create a request. Currently, they have access to a "create a new record" module where they can fill out pertinent information and submit the request. However, this redirects them to the open requests list module they should not be able to view. I want to redirect the user to a "target" or default module after they submit the form. So far, I've seen some specifics on producer.redirect for Service Catalog and Incident creation but was wondering if they was something I could explicitly script into Business Rules or something similar to it.

1 ACCEPTED SOLUTION

Hi John,



Open up the submit button & then do insert & stay. Then change the table as required & add script.


This would suffice what is expected.


View solution in original post

4 REPLIES 4

Jaspal Singh
Mega Patron
Mega Patron

Hi John,



Since you say you are being redirected I guess you are using UI Action (Submit button) if so, then you can add script


current.doRedirect = true;


action.setRedirectURL(current);


I'm using the default "Submit" button on the form. This redirects to the list view of the records for that particular table. I'm trying to steer away from editing the global "Submit" UI Action and and trying Client Side Script, reloading this current URL or loading a particular URL.


Hi John,



Open up the submit button & then do insert & stay. Then change the table as required & add script.


This would suffice what is expected.


I followed your advice, but changed the action name to match the global "Submit" button to override it instead of editing it. Thank you!