You need to sign in to do that
Don't have an account?
@ M Coder
Lighting urgent help##### : custom Save , save and new button
hi folks, Very Urgent requirement
on Account object , i have a custom button " contact form" .
On click of that button opens a Modal window which has contact form (basically fields from contact object) , i have few fields Name , phone number , className etc . in the bottom i have Save and Save & New buttons,
i want custom functionality of Save and Save & New buttons
Requirement 1: On click of save button on contact form , i need to save all the parameter (Name , phone number , className ) custom way , i need to store the contact form data as Record in contact object and in related list of Account record. .
on Account object , i have a custom button " contact form" .
On click of that button opens a Modal window which has contact form (basically fields from contact object) , i have few fields Name , phone number , className etc . in the bottom i have Save and Save & New buttons,
i want custom functionality of Save and Save & New buttons
Requirement 1: On click of save button on contact form , i need to save all the parameter (Name , phone number , className ) custom way , i need to store the contact form data as Record in contact object and in related list of Account record. .
Use below code:
Component:
Controller:
CSS:
Apex:
I hope it helps you.
Kindly mark this as solved if the information was helpful.
Thanks and Regards,
Khan Anas
All Answers
Greetings to you!
Please try the below code, it is working fine. Kindly modify the code as per your requirement.
Component:
Controller:
CSS:
Apex:
Finally, add this component to the Account record page.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks and Regards,
Khan Anas
picklist field: Rating__c : hot,cold,medium
Can you please remodify the code and send me pleaseeeeeeeeeeeeee
Use below code:
Component:
Controller:
CSS:
Apex:
I hope it helps you.
Kindly mark this as solved if the information was helpful.
Thanks and Regards,
Khan Anas