+ Start a Discussion

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.



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



See this below link, which satisfies ur requirement.