Copy link to clipboard
Copied
I need "Solid Organ Transplant Services" (which is Row112.CheckBox26) to automatically check when any of the check boxes below it are selected. I don't know javascript (at all), but I'm thinking it will need to be entered as a mouseUp script for each of the sub-checkboxes? I tried the below script that I found in this community in the "Islet cells" box and it did not work. This is probably something very easy but I don't have the foundational knowledge to figure it out. Thank you for your help.
if(event.target.isBoxChecked(0)){
this.getField("Row112.CheckBox26").checkThisBox(0,true);}
else
this.getField("Row112.CheckBox26").checkThisBox(0, false);}
Copy link to clipboard
Copied
Is this an Acrobat PDF form? Looks more like LiveCycle Designer (AEM), or something like that...
Copy link to clipboard
Copied
It is something like that, AEM Designer, version 6.5
Copy link to clipboard
Copied
Questions about Adobe AEM/LiveCycle should be asked here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-mana...
Copy link to clipboard
Copied
Create a hidden text fiel and enter the following as a custom calculation script:
var count=0;
var flds=
[
"Islet cells",
"Heart",
etc.
];
for(var i=0;i<flds.length;i++)
{
if(this.getField(flds[i]).value!="Off")
{count++;break;}
}
count>0?this.getField("Row112.CheckBox26").value="Yes":this.getField("Row112.CheckBox26").value="Off";
Copy link to clipboard
Copied
You should check that value of checkbox is != "Off" or use 'isBoxChecked()' just to be sure if export value is not "Yes", and to check the checkbox use 'checkThisBox()' for same reason.