Home › Forum › Behaviors Reference › Cannot get to Value or Caption for ListBoxes objects
This topic contains 3 replies, has 0 voices, and was last updated by Laura Debello 11 years, 2 months ago.
- AuthorPosts
- December 10, 2009 at 12:06 am #373
Can you please advise how I can get to the Value or Caption for ListBoxes? I am trying to set a SetField object that sets the field one field A to the value(s) selected in a list box. However in the Select A Field Popup, I can see the Listbox object, I can expand it, but I don’t egt the usual Value & Caption options, and the OK button remains disabled. Even if I highlight the actual list box object the OK button remains disabled. I have tried Copy Fields, but that doesn’t work. I also noticed that it is isn’t available as a target in a connection.
Thanks,
Laura
December 10, 2009 at 9:38 am #4956Not really sure what you are seeing here? I’ve set up a list box and a text object and under a ‘button’ have added in a ‘SetField’ script and I am able to set to the text field the ‘value of another field’ and in there I can get to the list object | Value
Can you send over an example form where you are seeing this problem to us at support@perfectforms.com. Also please confirm that you are running version 1.15 of FormArtist (the value component of some objects wasn’t exposed in earlier versions and perhaps it may be related to the version of perfectforms you are running and you should look to get updated
December 10, 2009 at 5:26 pm #4970With a List object you have the option to allow multiple selections.
If this option is not selected then you should be able to get to the Value and Caption just like you can for a Drop-down list.
If the multiple selection option is selected then you cannot get to the Value and Caption because there will not be a single answer. Instead you are able to interrogate the ‘state’ of a particular choice in the list with the possible response being ‘true’, if selected, or ‘false’, if not selected.
December 10, 2009 at 10:16 pm #4971Hi guys, thanks for your responses.
I did a little bit more testing and you are both right (of course). The only thing is that it is only right for lists that are hard-coded. It is not possible to access the values or test for True or False for dynamic built lists (via a connection). I will have to come up with another way to provide multi-choice functionality. Checkboxes is not an option due to limited real-estate on the form. Listboxes were the best way because it allowed me to provided a long list within a small space.
Thanks
- AuthorPosts
You must be logged in to reply to this topic.