You need to sign in to do that
Don't have an account?
Jagmohan Singh 8
Create new record from an existing record page
Is it possible to create a new record when you're on an existing record. For example: When you're viewing a contact or oppotunity, is it possible to create a new record from the same page?
I could not find a 'New' button in the page layout. Basically I would like to have a 'New' button next to Edit, Delte, Clone. Is this possible?
Thanks in advance
I could not find a 'New' button in the page layout. Basically I would like to have a 'New' button next to Edit, Delte, Clone. Is this possible?
Thanks in advance
This functionality can be done creating a custom 'New' Button and the standard button cannot be used in this case.
So create a 'New' detail page button on teh required object and pass the url as: window.open("/001/e"); --- 001 is the object code (This is for Account object).
Add the button to the page layout and this works as expected.
Thanks
Hope this will be helpful.
All Answers
This functionality can be done creating a custom 'New' Button and the standard button cannot be used in this case.
So create a 'New' detail page button on teh required object and pass the url as: window.open("/001/e"); --- 001 is the object code (This is for Account object).
Add the button to the page layout and this works as expected.
Thanks
Hope this will be helpful.
As workaround that you create VF Page as given below and after that you create a Detail Page Button with URL
Step 1:
VF page Name : "AddAccount"
Controller name : "AddAccountController"
Step 2:
Detail Page Button
Name : New Account
URL : / apex/AddAccount
Step 3:
Add Newly created buuton on edit layout
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.
Regards,
Ahmed Ansari
do one more thing for above vf page Show header and sidebar value is "true"
Thanks for the quick replies guys.
I choose the method that Bhargavi suggested (because it sounded easier) and it works