-
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
The Future of Salesforce Development: What to Expect
Salesforce, the cloud-based CRM giant, has revolutionized how businesses manage and grow their customer relationships. As technology continues to evolve at a rapid pace, the…
How to Improve your Salesforce Org - Top 5 Problems Welkin’s Customizable Path Can Solve
We could describe all the great features of Welkin's Customizable Path and let you figure out how to improve your Salesforce org with its help…
Salesforce Opportunity Management and Lead Management
What are some of the key reasons for the decline of the lead conversion ratio? Jeff Bezos, sales manager at a logistics company, is fed…
Popular Salesforce Videos
Salesforce Loves Small Business
Running a small business takes a lot of heart during even the best of times. 2020 has presented a series of challenges that have hit…
Salesforce Salaries In Current Market?
Wondering about the Salesforce salaries in the current market. Join this useful group for Salesforce job & career info and learn all about the Salesforce…
Welcome to the New World of Data Collection | Salesforce | Summer Internship
Secure data collection built for your needs. With FormAssembly, your organization can streamline outdated processes and power important business initiatives. To enroll Contact us +91…