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
GV1GV1 

CheckBox to Populate a Field

Hi All

 

I have a VisualForce page embeded as a related list in Opportunity, which takes the Opportunity id and displays certain details.

 

There is a Checkbox in the VF page. when this Checkbox is selected I need to update another object at backend and refresh the entire Opportunity detail page.

 

The VF page is already there, i just have to incorporate this change. Can someone give me some sample code looking at which I can understand how do I use Java script, and how do I update the object with the value of Opportunity ID and the field (on VF page) pervious to the Checkbox.

 

I am a Newbie, any help will be greatly appriciated.

 

Regards

Best Answer chosen by Admin (Salesforce Developers) 
Rajesh SriramuluRajesh Sriramulu

Hi,

 

See this below link, which satisfies ur requirement.

 

http://salesforce.stackexchange.com/questions/5538/checkbox-to-populate-a-date-time-field

 

Regards,

Rajesh.