You need to sign in to do that
Don't have an account?
The new Learner
how to create visualforce button or lighting button to open new record page
Hi Experts,
I have requirment i need create a button(not java script button because i cant use in lighting) when i click on that button new record page has to open and also i want set a default value in that new record page, can anyone hlep me please.
I have requirment i need create a button(not java script button because i cant use in lighting) when i click on that button new record page has to open and also i want set a default value in that new record page, can anyone hlep me please.
Greetings to you!
You can create a quick action. Quick actions support many of the common uses of JavaScript buttons. Quick actions can be based on a specific object or can be global, meaning that they’re more generic and accessible from any record or the Chatter feed. There’s a quick action to do just about anything in Salesforce.
Please refer to the below links which might help you further with the above requirement.
https://www.salesforceben.com/migrate-your-salesforce-url-hacks-to-actions/
https://trailhead.salesforce.com/en/content/learn/modules/lex_javascript_button_migration/javascript_button_alternatives
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. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
I have created global action but its not working for me so my requirment is that , i need to create opportunity record from task record , when ever user click on that button new Oppprtunity record page should open and that task has to come in the related list called activities(task owner have to change to opportunity owner)here i am not understanding how do i get to know that user click on that button for that reason i got an idea while creating record of opportunity i will assign a dafult value with that dafult value i will create process builder to change the owner of that task but i am not understanding how to write code for that button to achieve this. please help me