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
prasad1.3969574005596787E12prasad1.3969574005596787E12 

How to add input field of custome object in opportunity object

HI All,

As I am trying to add input field of custome object in opportunity object. But there is error that 

Error: Unknown property 'OpportunityStandardController.bucketlevel__c 

Please help me..........!
tarunkumarsfdc1.3940961681216885E12tarunkumarsfdc1.3940961681216885E12
Hi Prasad,

                          I think you might be using custom controller and trying to insert the field in the object (or) you are tryin to create a page with the controller (standard ,controller),

If you are using a custom controller , then intiate the the Object and try to call the object , as a example am providing you the sample code in your apex class 

Account account;

public Account getAccount() {
      if(account == null)
    account = new Account();
      return account;
   }

and try calling the field from the Visualforce page , it will work 

Or If you are working on a standard controller , 
make sure your filed is connected (whether it do have any relation ship with other object)  if so please append the object name with __r and it will do the need.

Thanks & Regards,
Tarun.M.P