Hide A Field And Its Label Based On Field's Value
I am struggling to understand how to hide fields. I think this should be fairly simple to do but need a bit of help.
I would like to hide a field and its label based on the field's value. For instance if the field's value is blank, I would like to hide it and the label. Also If the field says "UNITED STATES" I would like to hide the field and label too.
Can't figure out where to input a script.
[attachment=1622:script goes where.jpg]
Also I don't even know what the script should say.
[attachment=1621:hide-fields.jpg]
-
Shotaro Ito
★ BarTender Hero ★
With BarTender 10.1 Automation edition, you don't have to use VB Script - text has its property of "Print When", show / hide by certain database field value etc.
For previous versions, you need some VB Script. If you want to hide a text (make empty) conditionally, on more options (Transform) VB script OnProcessData.
Something like..
If Field("COUNTRY OF ORIGIN") = "" OR Field("COUNTRY OF ORIGIN") = "UNITED STATES" Then Value = "" End If(Ignore #5901 warning.)
0
Please sign in to leave a comment.
Comments
1 comment