Avatar

Level 5

Hello,

I have a checkbox that should be checked if there are files attached.  I have the following script in the layout:ready event of the checkbox field, but it doesn't work.  I have tried putting form1.execCalculate() in different areas of the form, but nothing seems to work.  The only time the box gets checked is when drop-downs in the form are used.  Any help would be appreciated.


if (event.target.dataObjects) {


  this.rawValue = "1";


}


else {


  this.rawValue = "0";


}