-
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
8 Inside Sales Tools that can Help You Meet Your Targets
Are you finding it challenging to meet your monthly/quarterly sales target? Well, maybe you need to improve your productivity. The best performing sales teams always…
How To Create Custom Settings And Custom Objects | Salesforce Developer Guide
Custom Settings Custom settings are similar to custom objects which allow us to customize org data. Following are the steps to create Custom settings:- 1.…
Salesforce Serverless PayPal Integration in 2024
Integrating payments into your Salesforce solution typically involves setting up both a client-side environment configured with a payment SDK and a server-side component equipped with…
Popular Salesforce Videos
How To Set Up A Site On Salesforce | Salesforce Development Tutorial
Learn how to set up a site on Salesforce. This tutorial will cover the following points - 1. Create Public Websites Choose a branded URL…
What Is Salesforce Industries (Vlocity)?
Vlocity (Salesforce Industries) offers pre-built solutions on the Salesforce platform that solve the needs of particular industries that require CRMs to be heavily customized beyond…
Batch Apex In Salesforce | Asynchronous Apex
Asynchronous Apex 1. Batch Apex 2. How to run Batch Apex class 3. Monitor Batch Apex class 4. Examples 5. Points To Remember Upcoming Video…