You need to sign in to do that
Don't have an account?
Frank Carter
Lightning: custom button on related list
Hello,
I need help. I have a Javascript button on related list of a custom object and I want to bring this button on Lightning (always on related list).
The Javascript code makes a query to delete all record with certain features.
I know that Javascript button aren't supported in Lightning. I tried created a vf page with standard controller on Custom_Object__c but I'm not able to see the vf paage on dropdown Content.
is my approach wrong?
Thanks,
Frank
I need help. I have a Javascript button on related list of a custom object and I want to bring this button on Lightning (always on related list).
The Javascript code makes a query to delete all record with certain features.
I know that Javascript button aren't supported in Lightning. I tried created a vf page with standard controller on Custom_Object__c but I'm not able to see the vf paage on dropdown Content.
is my approach wrong?
Thanks,
Frank
To be able to add Visualforce page in a 'List Button' you must have 'Standard List Controller' for the object on which list button needs to be visible.
Please refer to below document for adding Custom List Buttons using Standard List Controllers:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_custom_button.htm?search_text=list%20button
I hope it helps you.
Kindly let me inform if it helps you and close your query by marking it as solved so that it can help others in future.
Thanks and Regards,
Khan Anas
All Answers
To be able to add Visualforce page in a 'List Button' you must have 'Standard List Controller' for the object on which list button needs to be visible.
Please refer to below document for adding Custom List Buttons using Standard List Controllers:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_custom_button.htm?search_text=list%20button
I hope it helps you.
Kindly let me inform if it helps you and close your query by marking it as solved so that it can help others in future.
Thanks and Regards,
Khan Anas
it's not working. I don't see the vf page on dropdown Content.
what am I doing wrong?
Thanks,
Frank
I checked in my org, it is working fine. If possible, please share your code.
Thanks,
Khan Anas
I don't see any vf page.
but I think is the next step.
Thanks,
FranK
Can you help me?
thanks, Frank
Frank, did you see the button already? If not.. Try mark the option in visualforce 'Available for lightning...'
This works for me.