LCD 8.0
I have a table with 5 rows - each row has a checkbox in it.
The user can select 0 - 5 checkboxes. Based on the number of selected checkboxes, I need to dynamically 'press' a radiobutton (out of 5) to show the corresponding Risk level - If 2 checkboxes are checked, I need to press radiobutton #2, if 3 checkboxes the 3rd radiobutton, etc..
I can get the 1st one to work, but can't seem to be able to change it to any other radiobutton after the first.
What I do is sum the # of checkboxes checked, and try to set the raw.Value of the radiobutton = 1.
>var orgcnt = sum( PDF_CONTAINER.ConceptPage1.RisksPositioned.ORGRISKS.DATA[*].RISK_IND )
>if ( orgcnt == 1 ) then >PDF_CONTAINER.IdeaSheetPage2.RiskAssesSubform.RiskTable.RISK_ASSES1.cell3.RadioButtonList.NoRisk.rawValue = 1
>endif
>if ( orgcnt == 2 ) then >PDF_CONTAINER.IdeaSheetPage2.RiskAssesSubform.RiskTable.RISK_ASSES1.cell3.RadioButtonList.MinorRisk.rawValue = 1
>endif
If I select 1 Checkbox, the first radiobutton IS pressed, however, when I select a 2nd checkbox, the 2nd radiobutton is NOT pressed and also blanks out the 1st radiobutton.
any ideas?
thanks,
rp.