How to extract Text item from a drop down box in the form
Hello,
I have a form with a drop-down list named "List1" containing two items: Text1 with a value of 1, and Text2 with a value of 2. I have successfully mapped a field on the label to display the value selected from the list. Now, I need to map another field to display the text associated with the selected option in the drop-down list.
Is this possible? If so, how can it be achieved?
Thank you.
-
I do not believe you can do this directly just from a dropdown list on the form.
However, if you link the label to the database including a filter/query set to lookup the required record value, you can then link the fields to the appropriate fields of the database. After that you can then link the drodown list to your database and set the Linked Data Source to be the database query prompt. At print time this will ask you to select one value and then populate all the fields from this:
However, I don't believe this will work with Text and Excel databases and so if your is one of these then you may need to convert it to a different type. For my sample above, I converted an Excel file to a BarTender Data Builder file and linked that to my label
0 -
Hello Peter,
Thank you for your input.
In my case is quite simple, the dropdown list has fixed values and is not linked to a database.
Meanwhile I’ve implemented a workaround, in the Text field in the label, I’ve added some vb script to select a text according to the value of the item selected in the dropdown list. This solved my problem as there are just a few items to select from the dropdown list and they are fixed.
0
Iniciar sesión para dejar un comentario.
Comentarios
2 comentarios