Avatar

Level 10

Hi,

Your subforms options and description will have an index property that returns the occurance of a particular subform in a list of subforms.  So using that you can put the following JavaScript code in the calculate event of the DESCRIPTION field;

 

"description.index" tells us which occurance we are working with (e.g. 0,1 or 2)

so, options.all.item(description.index) matches that occurance in the options subforms.

and ".OPTION.rawValue" references the value of the OPTION filed.

Hope that helps.

Bruce

options.all.item(description.index).OPTION.rawValue