Conditional Behavior of Data Entry Control on Form (Layers?)
Is there a way for the visibility or presence of a Data Entry Control to be made conditional?
My label in question includes a Manufacturing Date. The Manufacturing Date is typically populated automatically, but I'm working on giving the option for users to override this and specify a different date. So far, I've added Check Box for users to indicate that they'd like to override the date, and I've added a Date Picker. I've also set up conditionality so the label will be printed with only the automatic date or the manually selected date based on the Check Box.
What I'd like is to take it one step further and hide the Date Picker from users unless they check the Check Box. I thought I might be able to accomplish this with layers, but I cannot figure out how. I've taught myself how to add and use layers on the label template, but cannot figure out how to implement layers on the form.
-
Peter Peter
★ BarTender Hero ★
No need to add extra layers you can achieve this by adding conditional visible forms.
On my label I have added a data field and a second text field that I have named "ChangeDate". This field does not need to be shown on the label and can be dragged out of the print area, but I have left mine visible for the images below.
I have then added a Data Entry Form with a Yes or List Text List Box that is linked to the ChangeDate field and have also included a Preview of Template on here too.
A second form has then be added with a Date Picker Entry linked to the Date Field on the label (plus another Preview). I have then gone into the Properties of this form and set it to only be visible if the ChangeDate value = Yes.
At print time I now see this
If no I get
If Yes I then see, which will print the date I then choose
0 -
Ryan Ryan
★ BarTender Hero ★
Thank you! This was so easy. I'll admit, I'm self taught and didn't realize I could have more than one form, nor did I realize that within form properties, I could click on "Form 1" to see more options than when "Form" was highlighted.
0 -
Peter Peter
★ BarTender Hero ★
No problem, I am glad it worked.
As well as multiple layers and forms you can also have multiple template layouts (albeit all the same size as the base template) and configure separate conditional printing variables for each so it can be quite a powerful tool if it needs to be.
0
Please sign in to leave a comment.
Comments
3 comments