You need to sign in to do that
Don't have an account?

Override Standard New Button using Visualforce
Hi!
I'm trying to create a VF page to override the standard New button in order to prepopulate value in the standard Name field:
Howver, it's not populated in the New layout.
What am I missing?
Thanks!
I'm trying to create a VF page to override the standard New button in order to prepopulate value in the standard Name field:
<apex:page standardController="Opportunity" action="{!URLFOR($Action.Opportunity.New, null, [Name='Will be Populated by the system'], true)}" />
Howver, it's not populated in the New layout.
What am I missing?
Thanks!
Check below examples.
https://www.salesforceben.com/salesforce-url-hacking-for-lightning-tutorial/
https://jayakrishnasfdc.wordpress.com/2020/06/07/url-hacking-in-salesforce-lightning/
Please mark as Best Answer if above information was helpful.
Thanks,
I was asked to build a Visual force page and then override the 'NEW' button to add a default value to the token field, type Name, which will then allow to save a record.
Visual force page code used to override 'NEW':
<apex:page standardController="Certification__c" action="{!URLFOR($Action.Certification__c.New, NULL, ['Name'='DoNotEdit'], true)}"/>
<apex:page standardController="Certification__c" action="{!URLFOR($Action.Certification__c.New, NULL, ['Name'='DoNotEdit'], true)}"/>
please follow this link also
https://salesforce.stackexchange.com/questions/313777/conditional-override-of-new-button
Thanks!!
Check out this link, it may be helpul
https://developer.salesforce.com/docs/atlas.en-us.232.0.pages.meta/pages/pages_controller_customize_override.htm
Thank you