+ 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) 
SRajesh8SRajesh8

Hi,

 

See this below link, which satisfies ur requirement.

 

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

 

Regards,

Rajesh.