Display Or Hide Field's Depending On Drop Down Selection Follow

0
Avatar
Legacy Poster

Hello Experts

I have a label with some text lines and pictures

I have a dropdown in the prompt

 

How do I get the text some lines and pictures to hide & not print depending on the selection in the dropdown

 

When the word UP is selected in the dropdown

Only Text 3 and Up Arrow must be visible & print on the label

 

When the word DOWN is selected in the dropdown

Only Text 1, Text 2 & Down Arrow must be visible & print on the label

 

Your help would be very much appreciated

 

Thanks and Regards

Rahul

3 comments

0
Avatar
Shotaro Ito
Comment actions Permalink

In BarTender 10.1 Automation or above, now you have conditional show / hide of object in Object Property - Print When.

 

For versions before, you need some VB Script.

 

1. Create a off-label text to show UP or DOWN which linked to a dropdown. Name the datasurce(substring) as UPDOWN.

2. Create a text ("This side down") on label. Transform (More Options) > VB Script, in OnProcessData Event, place code like below

 

'hide this text if UPDOWN = UP'
If UPDOWN = "UP" Then Value = ""

 

(at close, ignore #5901 warning and just close script assistant.)

3. Do the same for text "This side up" and hide when UPDOWN=UP

 

4. For arrows, Instead of pictures, use wingdings font's arrows and apply the same vbscript as above.

0
Avatar
Legacy Poster
Comment actions Permalink

Hi Shotaro

Thanks for replying

 

I have implement your suggestion

But it doesn't work

 

I don't know what I am doing wrong

 

I have attached the btw file, could you please have a look and advise me where I am going wrong

 

Thanks and Regards

Rahul

0
Avatar
Shotaro Ito
Comment actions Permalink

You have to give a sharename "UPDOWN" to the data source, to reference by VB Script.

 

 

 

Please sign in to leave a comment.