You need to sign in to do that
Don't have an account?

not able to add a vf page in list button
Hi all,
I have a requirement where i want to create a list button and give Visualforce page as a content. But when i do this, i am not able to select vf page as a content while creation of this button. Why is it so? Can anyone help me out here.
Regards,
Amita Tatar
I have a requirement where i want to create a list button and give Visualforce page as a content. But when i do this, i am not able to select vf page as a content while creation of this button. Why is it so? Can anyone help me out here.
Regards,
Amita Tatar
I think you should add standard controller to your page so you will be able to select page.
can you paste your code so I can help you..
Article : https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_custom_button.htm
Thanks
Lokesh
just redirect to your visual force page and you can also append record Id to your vf page
I have done the following thing:
window.location.href = "/apex/InvoicePrint?id={!Invoice__c.Id}"
But it says invalid id