You need to sign in to do that
Don't have an account?
Suman Kuch
Related list button with javascript to open a visualforce page.
Hi,
I have a Related list button with javascript code to open a new visualforce page (in Classic).
Type: List Button
Behavious: Execute Javascript
Content Source: OnClick JavaScript
Code:
This button is not appearing in Lightning (Since javascript is not supporting), how can create a list button that opens the visualforce with parent record id passing on URL?
Please advice.
I have a Related list button with javascript code to open a new visualforce page (in Classic).
Type: List Button
Behavious: Execute Javascript
Content Source: OnClick JavaScript
Code:
var recId = window.location.href.substring(window.location.href.lastIndexOf('/') + 1); window.location = '/apex/ItemUploadController?recId=' + recId;In the above javascript getting parent record ID (recId) and opening visualforce page (ItemUploadController) new window.
This button is not appearing in Lightning (Since javascript is not supporting), how can create a list button that opens the visualforce with parent record id passing on URL?
Please advice.
Here is a really nice trailhead on what can you do in lightning instead of using javascript buttons.