javascript - Click a button to highlight a field -
i'm working company document created in word. form never intended filled out digitally instead printed , filled out hand. there 5 check boxes across top followed 9 different sections of form. of sections need filled out regardless of checked @ top; others conditional depending on has been checked @ top.
my goal digitize in way required fields highlighted. if click 3rd button top sections 3 , 4 highlighted. if click 1st button section 2 gets highlighted. if click first , 3rd buttons sections 2, 3, , 4 highlighted.
unfortunately it's controlled document can't post here gives idea.
i have microsoft office (2010), adobe acrobat, , gimp @ disposal. i'm not against writing vba or javascript make happen i've never gotten far hello world in either.
thanks in advance ideas have offer!
a bit late answer, can done acrobat.
the easiest way @ field naming, , use hierarchical field names, allow group fields name. in present case, have sect.4.myfield
, number corresponds section field belongs to.
now, highlighting, can define color using color object in (acrobat) javascript; simplicity's sake, going use pre-defined color, yellow (which strong practical use, ok showing how works). in case of section 4, you'd add following mouseup event of checkbox section 4:
if (event.target.value == "4") { this.getfield("sect.4").fillcolor = color.yellow ; } else { this.getfield("sect.4").fillcolor = color.transparent ; // color.white }
and should it.
Comments
Post a Comment