-
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
Interaction Studio: Salesforce's Next-Level Marketing App
In this day and age, having a next-level marketing tool is crucial if you want to stay ahead of the competition. To do that, you…
Salesforce Einstein Analytics: The Game-Changer for Your Business Intelligence Strategy
As businesses continue to collect massive amounts of data, the need for effective business intelligence (BI) strategies has become more critical than ever. BI tools…
Salesforce FreePBX Integration | All You Need to Know
In the fast-paced realm of customer relationship management (CRM), staying ahead requires leveraging the latest technologies. One such powerful tool that transforms the way businesses…
Popular Salesforce Videos
Salesforce Interface Sends a Command With Parameters to UiPath Assistant Using JavaScript
Salesforce interface sends a command with parameters to UiPath Assistant using Robotjs Code: https://github.com/cristinegulescu/startUiPathFromSalesforce/blob/master/SalesForceLocal.txt
What is Salesforce Development? | Salesforce Developer Course
In this video, Shrey has given a detailed overview of the Salesforce Development Course. You will learn the following topics from this course: Apex basics…
Salesforce Trailhead - Get Started with the Salesforce Mobile App
After watching this video you'll be able to: Identify the flavors of the Salesforce mobile app available to you. Log in to your Salesforce org…