Need to uncheck when the form gets closed

I have field with boolean type yesNo…

I want this to uncheck when I close the form, how can i do.

Thanks.

You can achieve this as writing some piece of code in Form “CanClose” method like… formds.field = NoYes::No & then refresh the datasource.

Thanks, Ram.
can you give me an example coding to do that?

Override the “CanClose” method under Form, see below image…

pastedimage1506428674696v1.png

here “formDataSourceName” is your datasource name under “DataSource” node in Form.

Others :- Correct me if my assumption is wrong & guide us.

Any reason to update the filed while closing the form?
Does the form contains only one record?

The selected records will get renewed…after closing the form i need to get unselect the check boxes…

Why cannot you do that while they get renewed? Updating them while closing the form doesn’t sound well.
You may have to re-consider your design.