Hello,
I have 2 extensions fields on the Project page. One is a checked box and the other is a date field. I am trying to set it up so that when the checkbox is checked, the current date is populated into the date field. When the checkbox is cleared, I want the date field to be cleared as well. I have this functionality working on another form but it is custom tables and not extensions. Here is my code
protected void _(Events.FieldUpdated<ContractExtDS.usrInstalled> e) {
var row = e.Row;
//I don’t think that it is getting past this line, but I can’t figure it out
if(!(bool)(e.Cache.GetValueExt<ContractExtDS.usrInstalled>(row)))
{
e.Cache.SetValueExt<ContractExtDS.usrInstallationCompletedDate>(row, DateTime.Now);
}
else
{
e.Cache.SetValueExt<ContractExtDS.usrInstallationCompletedDate>(row, null);
}
}