UI action

maheshchokkara
Tera Contributor

There is a UI action called assign to me whenever I click the button on a form state changes to assigned and it takes me to the list view of a table, but I want to remain on a form after clicking the UI action.

3 REPLIES 3

Sonam_Tiwari
Kilo Sage

Add this to the UI action

 

action.setRedirectURL(current);

 

 

Consider indicating the response as helpful and marking it as correct if it meets your needs.

_Gaurav
Kilo Sage

HI @maheshchokkara 
Wherever you have written the update method after that please add action.setRedirectURL(current); to keep in the same page.

Please mark helpful if this resolves your query.
Thanks!

Sohail Khilji
Kilo Patron

Hi @maheshchokkara ,

 

Generally, any update on the form usually navigate back to the list view of the table. This is ootb behaviour..

 

inorder to avoid this and to keep the control in the same page you can simply add the below line to the end of the UI Action to navigate back to the same page after the UI action click

action.setRedirectURL(current); // returns back to current page...

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect