• Sergio Ruiz Barrios
  • NEWBIE
  • 20 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 5
    Replies
Hi All,

I want to override the "New" standard button on the Account object with a visualforce in order to avoid the record type selection. I want to redirect it to the Account creation with the Record Type "Nuevo Account". The below code works fine for other object than Account, where it doesn´t load:

VISUALFORCE PAGE

<apex:page standardController="Account" Extensions="testpage" action="{!dotestpage}">
    <apex:form >

    </apex:form>
</apex:page>

APEX CLASS

public class testpage{
 Account acct;
public testpage(apexpages.StandardController stdcontroller){
this.acct=(Account)stdcontroller.getRecord();
}

    public PageReference dotestpage(){
    
    PageReference pageRef = new PageReference('/003/e');
    pageRef.setRedirect(true);
    return pageRef;
    
    }

}

Tanks for the help!
Hi,

I have person accounts created in my org and i need to give them the ability to self-register in our community. The problem is that they can´t register because of their existing email.
I only can register new users as person accounts with diferent emails and usernames.

How can i link a new user with his/her existing persoun account?

thanks!
Hi,

I have person accounts created in my org and i need to give them the ability to self-register in our community. The problem is that they can´t register because of their existing email.
I only can register new users as person accounts with diferent emails and usernames.

How can i link a new user with his/her existing persoun account?

thanks!