How to redirect to same page when click on Approve button

Rama Rao
Tera Contributor

Hello,

 

I want to be redirected to the same page when click on E- signature approve button. Is that possible?

 

note: currently it redirects to previous update page

 

Thanks in advance.

11 REPLIES 11

Robbie
Kilo Patron
Kilo Patron

Hi @Rama Rao,

 

Is the 'E-signature approve button' a UI action? Assume so....

You'll be pleased to hear this is a common question and situation. It can be simply solved by using the following syntax in the UI Action:

 

action.setRedirectURL(current);

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.

 

Thanks, Robbie

Rama Rao
Tera Contributor

Hello @Robbie ,

We tried but not working

Hi @Rama Rao,

 

Thanks for sharing the code. Can you share the lower half please where you call the update for example. The redirect syntax I provided should be placed after the server action such as the update.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.

 

Thanks, Robbie

Maddysunil
Kilo Sage

@Rama Rao 

Please try with 

top.location.href = 'url';

 

  

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks