-
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
Salesforce Sales Cloud Solutions: Transforming Sales Teams With Smart Automation
In today’s competitive market, sales teams face constant pressure to move faster, understand customer needs better, and close deals with precision. But with scattered data,…
Need to Hire Salesforce Developers-in-House? 5 reasons Why it is a Bad Idea!
Glancing through Salesforce customer reviews, you may have noticed how often companies are surprised - and even shocked - about what comes after Salesforce implementation.…
Popular Salesforce Videos
Salesforce Security and Sharing Model Demystified
The Salesforce Sharing and Security Model has undergone numerous enhancements and offers many features to help you configure it to meet the privacy requirements your…
SelectList, select Option & Action Function in Salesforce Apex Language
If you work upon salesforce and VF Pages, you have seen these words one is rendered, reRender, ActionFunction, param, onclick, onchange, In this video, you…
Understanding Salesforce Field Service Mobile App - An Overview | AblyPro
Field Service mobile app is an all-in-one tool designed for today’s mobile workforce. Salesforce Field Service Mobile App is an innovative tool designed to help…