-
Visualforce redirect issue on forgot password link
I have a login page with username and password and forgot password link on salesforce community, when a user enters a wrong password it is throwing error. When the error is thrown and I click on the forgot password link the page is refreshing instead of redirecting to forgot password page. Can anyone help in resolving the issue?
public PageReference forgotpswd()
{
pageReference pg = new pageReference(/apex/pagename);
Page.setRedirect(true);
return pg;
}Visualforce Page:
<apex:commandLink value="Forgot Password?" action="{!forgotpswd}" />
Log In to reply.
Popular Salesforce Blogs
Types of Salesforce Sales Cloud Services
Modern sales teams need more than spreadsheets, follow-ups, and disconnected tools. They need a system that helps them sell smarter, close faster, and scale confidently.…
Building Your First App for Salesforce AppExchange: A Step-by-Step Solution
Are you looking to build an application for Salesforce AppExchange? You must be familiar with Salesforce and how it works. Knowing the platform's capabilities can…
Salesforce AppExchange - Everything you Need to Know
Salesforce’s AppExchange is really fruitful and demanding app platform in marketplace. This cloud computing souk is hosted by Salesforce.com, here you can find thousands of…
Popular Salesforce Videos
Can I Get a Job by Just Learning Salesforce Admin?
In this Video Shrey covered the following questions: 1. Can I get a job by just learning Salesforce Admin? 2. Can you start a career…
New Product: RepBlaze on Salesforce AppExchange
Visit on AppExchange: Click Here As a Sales manager, if you deal with 1000’s of inbound and other leads everyday and would love to automate…
Join Grazitti Interactive At Dreamforce 2022 | Salesforce
Dreamforce, Salesforce’s flagship conference is here once again. Grazitti Interactive, as a proud Navigator Sponsor invites you to meet our experts and discuss our custom…