How to redirect to same page when click on Approve button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 01:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 01:39 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 01:41 AM
Hello @Robbie ,
We tried but not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 02:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 01:56 AM
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