-
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
Triggers in Salesforce - The Complete Guide
Triggers in Salesforce A trigger is an Apex content that executes previously or after information control language (DML) occasions happen. Pinnacle triggers empower you to…
How to Import Salesforce Custom Metadata Records using CSV/JSON
Importing Salesforce Custom Metadata Records can be really tricky. Forget about using the import wizard or dataloader to do that. These tools are amazing but…
Salesforce Customization vs. Configuration: Everything You Should Know
When a business plans to use a Salesforce solution, it is important to make sure that all the business requirements are met. The Salesforce platform…
Popular Salesforce Videos
Good Time To Buy Salesforce Stock? CRM Stock Analysis
CRM stock price is currently all over after reporting its SALESFORCE earnings report. I am considering if I should buy CRM Stock. This is a…
Salesforce Field Service Implementation
The possibilities for building a custom field service implementation are nearly endless when considering all the offerings in Salesforce Field Service. This 8-step guide provides…
How To Drive More Sales With Marketing Automation in 2023 | Marketing Cloud | Webinar
Are you curious about how to drive more sales for your business? Every business wants to create a market space for its business or product.…