PerfectForms Forums » Behaviors Reference

Cannot get to Value or Caption for ListBoxes objects

(4 posts)
  • Started 2 years ago by Laura Debello
  • Latest reply from Laura Debello
  1. Laura Debello
    Member

    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

    Posted 2 years ago #
  2. ijobling
    Member

    Not 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

    Posted 2 years ago #
  3. ajobling
    Member

    With 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.

    Posted 2 years ago #
  4. Laura Debello
    Member

    Hi 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

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in or register to post.

Contact

1917 Palomar Oaks Way
Suite 160
Carlsbad, CA 92008
866.900.8588

  picture  picture  picture  picture