Skip to main content

Search

Search

Display Or Hide Field's Depending On Drop Down Selection

Comments

3 comments

  • Avatar
    Shotaro Ito

    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

    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

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

     

     

     

    0

Please sign in to leave a comment.