Prompt order without blanks

26 views
Skip to first unread message

Scantron

unread,
Feb 1, 2013, 2:26:38 PM2/1/13
to heo-i...@googlegroups.com
I was wondering if anyone knows how to use check boxes to populate a prompt value in the order they were selected. For example, if you have check boxes numbers 1 to 10, and the provider only wants check box 1, 3, 7, and 9. I want those values to populate in the prompts without leaving blanks. There is a nursing instruction order with 10 free text prompts. Currently I am only able to populate by concatenation, but then the prompt values for 2,4,5,6,8,10 will result in blank lines when you look at the order details.

Looking like this:

cb_1 = some value prompt_seq 1
cb_2 = null prompt_seq 2
cb_3 = some value prompt_seq 3
cb_4 = null prompt_seq 4
cb_5 = null prompt_seq 5
cb_6 = null prompt_seq 6
cb_7 = some value prompt_seq 7
cb_8 = null prompt_seq 8
cb_9 = some value prompt_seq 9
cb_10 =null prompt_seq 10


 I would like the selected values to fill like this:

cb_1 = some value prompt_seq 1
cb_3 = some value prompt_seq 2
cb_7 = some value prompt_seq 3
cb_9 = some value prompt_seq 4

Does anyone know how to accomplish this?

Thanks in advance,

Michael aka Scantron

Scott Morris

unread,
Feb 1, 2013, 2:31:45 PM2/1/13
to heo-i...@googlegroups.com
Could you put your concatenation code inside an IF statement?  That is, something like

EDIT,IF,,cb_1,NE,"",THEN
EDIT
,SET,,mystring,CAT,"some value prompt_seq 1"

EDIT
,IF,,cb_2,NE,"",THEN
EDIT
,SET,,mystring,CAT,"some value prompt_seq 2"

EDIT
,IF,,cb_3,NE,"",THEN
EDIT
,SET,,mystring,CAT,"some value prompt_seq 3"


That way, you'd only get the ones you cared about.

Russ Garlow

unread,
Feb 1, 2013, 2:35:03 PM2/1/13
to heo-i...@googlegroups.com
Hey Michael,

Make ten hidden txt boxes for the ten prompts, that's straight forward.
Write a loop on submit to add the values from the checkboxes to an array, then a second loop to write them the hidden prompts. If the array has four values, it'll output in 1-4.

That work?

Russ

Michael Hudson

unread,
Feb 1, 2013, 2:50:24 PM2/1/13
to heo-i...@googlegroups.com
Russ,

I will try the array, hadn't thought of that.

Thanks!


--
You received this message because you are subscribed to the Google Groups "HEO iForms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to heo-iforms+...@googlegroups.com.
To post to this group, send email to heo-i...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/heo-iforms/-/xJMG-r0G8mEJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages