Answered
Does anyone know how to dynamically set the data length of a barcode based on the input of another field?
e.g. I have a form that converts a credit card number to a barcode. If the card is Visa, Mastercard, or Discover, I need the barcode to 16 digits. If it is American Express, I need it to be 15 digits. I have the card type as series of check boxes.
I suggest using radio buttons instead of check boxes. Radio buttons are mutually exclusives. Here is an example of a script living in the change event of the RadioButtonList:
Here, the barcode is a sibling of the radio button list. I'm not very familiar with barcode fields and don't know if there is any counter indication in doing this but play with it and see if that works for you.
Hélène