You need to sign in to do that
Don't have an account?
Case Custom Button javascript redirect not working.
Hi all,
We are working in our sandbox and creating a new custom Button type URL to redirect to a visualforce page I'm getting this error:

Here's my button code:
Even I'm setting the button to use it as URL '/apex/FinancialRequest_New' , the message is the page no longer exist, so still the same issue.
Thanks in advance.
We are working in our sandbox and creating a new custom Button type URL to redirect to a visualforce page I'm getting this error:
Here's my button code:
window.location = '/apex/FinancialRequest_New'
Even I'm setting the button to use it as URL '/apex/FinancialRequest_New' , the message is the page no longer exist, so still the same issue.
Thanks in advance.
Hello Edgar Moran,
Use Below code for your button
{!$Site.BaseUrl} + 'apex/PageName'
mark as solved if your isssue is resolved.
Thanks
Visit this post CiCi’s Pizza is providing its customers with an opportunity to win Free CiCi’s Pizza Coupons through CiCis Pizza Guest Loyalty Survey.