You need to sign in to do that
Don't have an account?
Luciano Roberto
Trigger to redirect page
Hello guys,
I need to create a redirection through a trigger when updating a record. Can someone help me with some code to meet this need?
I have a visual force page that creates a record and already opens it in edit mode, but when saving it, it redirects to the visualforce page, what I need is to be redirected to the newly created (updated).
Thanks
I need to create a redirection through a trigger when updating a record. Can someone help me with some code to meet this need?
I have a visual force page that creates a record and already opens it in edit mode, but when saving it, it redirects to the visualforce page, what I need is to be redirected to the newly created (updated).
Thanks
I think you are using Visualforce page to send the agreement and there you want to redirect the page.
So you can use following code in your class to redirect on another page.
OR
You can do same redirection on Visualforce page using JavaScript with OnComplete attribute of Visualforce Component.
Your JavaScript code will be like This.
And call this method from onComplete attribute. for example.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
All Answers
I think you are using Visualforce page to send the agreement and there you want to redirect the page.
So you can use following code in your class to redirect on another page.
OR
You can do same redirection on Visualforce page using JavaScript with OnComplete attribute of Visualforce Component.
Your JavaScript code will be like This.
And call this method from onComplete attribute. for example.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi