You need to sign in to do that
Don't have an account?
Tamil
How to add an URL value in formula.
I have a custom hyperlink field in an object. It opens a visualforce page from a list view. I want to be able to pass the list view Id in that link to return back to the list view on clicking cancel. Is it possible to pass the list view id in the hyperlink field? Or is this possible some other way?
If you really want this to happen, then you might want to think about exploring custom interface altogether to refer to view ID in the URL.
You should also explore custom buttons on list-view and see if retURL automatically gets passed by Salesforce to your redirection page.
Say before click, your url is : www,****.salesforce.com/listviewId/123456, after click cancel, it should goes to www.****.salesforce.com/listviewId
so you can have a method in the controller:
public.......()
{ string Id=ApexPages.currentPage().getParameters().get('aid'); //this is the listviewId in the url before
string web=URL.getSalesforceBaseUrl().toExternalForm();
return new PageReference(web+'/Id').setRedirect(true);
}
then call the method in the button's action in apex page ~
Please provide some details if you still unclear~
Hope this helps
So according to formula field you can't write your javascript but you can hard code the value of Listview. And pass the value a param to next page and on next page you have to get the value when user click on Cancel button.
-Thanks
Ashlekh Gera