Vb Script For Conditional Value In Text Field Follow
I am using Bartender Automation V 10.1 running on a Windows 7 Professional Service Pack 1 computer.
I have a label with a field named ExpDate that is prompted for a value at the time of printing from an input box on the Data Entry Form. This field is named ExpDateInputBox. Without scripting the label field will print any valid date entered into the Data Entry Form (albiet in a specific format) and works well.
However, not all products have an expiration date. This expiration date (when there is one) is entered by the user. In the case where there is no expiration date, I would like to instruct the user to enter "N/A" and a VB script would modify the value of ExpDate based on the input value of ExpDateInputBox in the data entry form. I have looked at many examples here and have come up with what I think would work.
I have entered this script into the Transforms/VB Script section of the ExpDate object using the On ProcessData.
Please sign in to leave a comment.