0

I am trying to generate a custom button on custom object Offer. But this is giving me error "you must enter a value" in content picklist.

enter image description here

I searched several posts. But related to content I am not getting relevant info, ' How to set value for Content field?'

4
  • Can you share you visualforce page code here? Feb 9, 2017 at 9:52
  • I think you need to change the Content Source and select URL then set your Visualforce page there
    – HSdev
    Feb 9, 2017 at 10:01
  • Content Source is blank . thats my question that what to write in code to map in content list
    – neeraj
    Feb 9, 2017 at 10:06
  • @neeraj see my answer and let me know if it solve your problem
    – HSdev
    Feb 9, 2017 at 10:14

1 Answer 1

4

If you need your developed Visualforce there in 'Content' then that page must have the attribute StandardController otherwise that visualforce will not show up here as 'Content'

for example - Custom Object is : Offer

Visualforce Page

<apex:page standardController="Offer__c" extensions="OfferController">
       -------
</apex:pages>

Apex Class

public class OfferController{

       public OfferController(ApexPages.StandardController controller){
             ---------
       }
}

Let me know if this will help you out

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .