Would love to do an override for the “new” action. You guys have great tutorials for view/edit and tab - but not for new. Can you help?
Page 1 / 1
For sure, Kaede, I’ll work on making a “new” override tutorial. The process is basically the same:
- In Setup, create a Visualforce page for your New Page.
- Are you using page assignments?
- Then, go to Create > Objects gor Customize > Object for standard objects] and click on the object this new page is for. In “Buttons and Links,” click Edit next to the New action, and select your new VF page for the override
Also, if it doesn’t work, try changing {!redirect}? to {!redirect}& or vice versa. That’s what always gets me. Also, your new tutorial is online now!
For a new page, the syntax should be action=“{!redirect}?objectType=Account&actionType=New”, if you’re using Page Assignments, or action=“{!redirect}?page=NewAccount”, if you’re just doing simple redirects.
Hi Zach,
Is it possible to have two action types in the same VF page i.e. New as well as edit?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.