function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Svatopluk_SejkoraSvatopluk_Sejkora 

How to use custom vf page to add products to OPP on SF1

Hello, 
I am struggling with usage of VF page for adding products to Opportunity on SF1. We have created our own page to support adding new products, but I can't use it for an global action.

User-added image

My page is set to be available for SF1 but it is not shown in the Create action "Visualforce Page" pick list after selecting "Action Type" to Custom Visualforce.

User-added image

Am I doing something wrong, or is there different way how to do it?

thank you very much in advance, 
Svata
Best Answer chosen by Svatopluk_Sejkora
Leslie  KismartoniLeslie Kismartoni
You can't use a standard controller to create a Global Action... (Check here: https://help.salesforce.com/HTViewHelpDoc?id=creating_vf_pages_for_custom_actions.htm&language=en_US)

Simply rewriting it to use a custom controller class should do the trick here.

Hope that helps.

All Answers

Leslie  KismartoniLeslie Kismartoni
You can't use a standard controller to create a Global Action... (Check here: https://help.salesforce.com/HTViewHelpDoc?id=creating_vf_pages_for_custom_actions.htm&language=en_US)

Simply rewriting it to use a custom controller class should do the trick here.

Hope that helps.
This was selected as the best answer
Svatopluk_SejkoraSvatopluk_Sejkora
Awesome Leslie, thank you very much for your help. 

Svata
Leslie  KismartoniLeslie Kismartoni
Cheers, good luck!