Disable InputBoxes Based on DataSource Values Follow

0
Avatar
Christian Vargas

I need to set the following:

 

-- OnNewRecord

    -- IF "Named Data Source A" IS OF VALUE "B"

        -- THEN DISABLE DataEntry InputBox C

 

 

Please let me know how to set this in the correct SYNTAX in the VB SCRIPT Editor

3 comments

1
Avatar
Shotaro Ito
Comment actions Permalink

There's no control to enable / disable individual text input box. Instead you can show different form in condition.

In BarTender 2016 Automation or above,

On each form's property (left top) there's Show When: condition.

You could specify condition such as

Show Form 1 when

Named data source A Equals "CAT"

Show Form 2 when

Named data source A Does Not Equal "CAT"

Then on Form 2, set Input box C as read only, set back ground as gray and skip tab stop. 

There's no method to control form in prior to Ver. 2016 in form property / VB Script.

0
Avatar
Christian Vargas
Comment actions Permalink

I will try this tomorrow and report back. Thanks.

0
Avatar
Christian Vargas
Comment actions Permalink

This worked perfectly. I creates a form that pulls up the order first. And then 2 forms after that one. One for a 10 pack order and one for a 20 pack order. And now using your method it will only show the Pack order form based on the order type which gets pulled on the initial form.

 

Thank you!

Please sign in to leave a comment.