Pictures Change Based On Multiple Checkboxes Follow
I am new to VB Script, and I am trying to figure out how to update picture source based on what checkboxes are checked at print time. The label can contain between 1 and 4 pictures on it. However, what those pictures actually are will vary depending on what checkboxes are checked on the data entry form. There are 10 possible checkboxes. Essentially I need to check all 10 checkboxes and then take the first 4 (or less) that I find and set the pictures to be whatever is indicated by the checkboxes. On one label we might use checkboxes 1, 2, and 3, while on the next label we might need 2, 8, 9, and 10. I don't see any way to accomplish this without VB Script since there is not a 1-to-1 relationship between the pictures and the checkboxes. I have created named data sources for each checkbox on the data entry label and for each picture on the printed label, but I don't know how to best check everything and assign the pictures. I can easily use the picture file name as the value for the checkboxes if they are checked, so providing the file names is not a problem.
I looked for training videos but didn't find anything to do what I am looking for. Can anyone point me in the right direction?
Please sign in to leave a comment.