-
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
Understanding Process Builder in Salesforce
What is Process Builder in Salesforce? Presently, since you have found out about Workflow and Apex Trigger, it's the ideal opportunity for you to find…
Why Everyone Should Integrate SharePoint with Salesforce
SharePoint is one of the most popular document management platforms today. It is used by virtually all major enterprises since it ties in neatly with…
Integrating and Automating B2B Sales Workflows with Custom Salesforce Integrations
When you think about the complex world of B2B sales, it’s clear that there are a lot of moving parts. Sales teams juggle multiple tasks—from…
Popular Salesforce Videos
Salesforce Marketing Cloud - Introduction
Watch this video and learn about Salesforce Marketing Cloud. This is an introduction video. If you have any questions or doubts, please let us know…
Pardot Marketing Automation Tools Overview Webinar
Are you looking to take your Salesforce Marketing Automation to the next level? Learn how to build successful lead nurturing campaigns that empower your sales team…
Marc Benioff on How Salesforce Was Able To "do well and do good"
Billionaire Marc Benioff is considered a game-changer for activism in the business world. Benioff is the co-CEO, chairman, and co-founder of the cloud computing company…