conditional for choosing between two orders from one radio group?

33 views
Skip to first unread message

C.E. Coleman

unread,
Jan 3, 2013, 5:50:55 PM1/3/13
to heo-i...@googlegroups.com
I have one radio group for an activity level with five selections. One load order handles the selection for the activity level. The facility would also like restraints added to the list, however, restraints has its own load order. so right now I need to allow 6 choices in one radio group but I have two load orders to call depending on which item in that group is chosen.

Its an easy matter to just drop the value of the radio group in the prompt for that value. I'm not sure how to create a condition that might load another order if restraints is chosen out of that group. Another reason I am struggling with this is that if I simply leave the main radio group and then make restraints a check box, that still allows for the possibility that a choice can be made for the main group AND the restraints check box.

I'm sure this is a simple matter for those of you more experienced. I was hoping to avoid JS  If anyone has done this or knows a solution, many thanks will be in order. (Im also interested using CAT more effectively, as we don't use that method, but that is a discussion for another post I suppose.)

CE Coleman

Scott Morris

unread,
Jan 15, 2013, 2:42:51 PM1/15/13
to
There should be a pretty straightforward answer that doesn't require any JavaScript. You can keep all 6 orders in the same radio button group and then do a value check in your VGR.

For example, let's just say that your restraint OIS is 11111 and your activity OIS is 22222. Then your VGR could look something like:

EDIT,IF,,myRadio,EQ,"restraint",THEN
EDIT,SET,,orderstring,CAT,"@LOAD_ORDER=OIS=11111"

EDIT,IF,,myRadio,NE,"restraint",THEN
EDIT,SET,,orderstring,CAT,"@LOAD_ORDER=OIS=22222^^^53=`myRadio"

That way, you have the either-or functionality of the radio button but the ability to choose between two orders.

Reply all
Reply to author
Forward
0 new messages