Dropdown List And Autofill
[font="Book Antiqua"]Hello I have a simple question.
For simplicity lets say there are two fields on my label: 1) a drop-down list and 2) a text input box.
Can I have the text box auto-filled based on the selection that occurs in the drop-down list?
Thank you for any assistance.[/font]
For simplicity lets say there are two fields on my label: 1) a drop-down list and 2) a text input box.
Can I have the text box auto-filled based on the selection that occurs in the drop-down list?
Thank you for any assistance.[/font]
0
-
Shotaro Ito
★ BarTender Hero ★
Hi Scott,
There's no option to automatically update user prompt value, correspond to prompt input by user.
What you can do is update value after prompt is closed by Vb Script onPostPrompt event.
attached is a simple format, which allows user to select a value in dropdown (G / Y / R), then update a label text (to Green / Yellow / Red) depends on selected value.
Give sharename to 2 texts ("TX1" for dropdown source, "TX2" for another text)
and create a text object with Event control VB Script source.
in OnPostPrompt Event:
[code]'Update substring TX2 depends on TX1's value
If TX1 = "G" Then TX2 = "Green"
If TX1 = "Y" Then TX2 = "Yellow"
If TX1 = "R" Then TX2 = "Red"
[/code]
in OnAutoSelected event:
[code]'give default value of this text
Value = "Script"
[/code]
The sample works BarTender 8.01 Professional or later.
There might be another way of achieving your requirement.0 -
Legacy Poster
★ BarTender Hero ★
Arigatou Shotaro. That helped my situation and the example label you attached was very very helpful! 0 -
Legacy Poster
★ BarTender Hero ★
The downloadlink doesnt work.... Can anyone help me out?
Thnx!!
Gijs0
Iniciar sesión para dejar un comentario.
Comentarios
3 comentarios