How do I get a checkbox to autopopulate once another checkbox is selected?

27 views
Skip to first unread message

Cindy1

unread,
Dec 12, 2012, 11:21:51 AM12/12/12
to heo-i...@googlegroups.com
I am working on an iForm that has specific lab orders depending on which medication is ordered.  I am trying to figure out how to set it up that once a medication is selected then the lab orderable will be checked as well.  I tried to attach the htm file but could not :(
Any direction would be greatly appreciated

Russ Garlow

unread,
Dec 12, 2012, 11:26:09 AM12/12/12
to heo-i...@googlegroups.com
Are you using JQuery?

can you post the html for the med order and the lab orders (don't need the whole file)

Scott Morris

unread,
Dec 12, 2012, 11:39:17 AM12/12/12
to heo-i...@googlegroups.com
Long story short, you will want to use JavaScript to select the lab(s) when a particular medication's checkbox is clicked.  You can do this with jQuery (as Russ has mentioned) or with plain JavaScript (jQuery makes it easier in my opinion).
Reply all
Reply to author
Forward
0 new messages