Last week I had to get the chosen item from a drop down list in a PDF Livecycle Designer Form. Easy enough you should think.

But it did not work as I thought it would work.

As you would think the : $.rawValue would get you the item you want. But I did not want to have the item value but the text value.

If you put something like this into a drop down field.

1 : Amsterdam
2 : Rotterdam
3 : Den Haag
4 : Leiden
5 : Wolphaartdijk
6 : Goes

And you pick like number 3, with a $.rawValue you get 3 as the value back.

But I want “Den Haag” as a return value.

Simple you use $.formattedValue

And that will give you  Den Haag !

About the author

Theo van der Sluijs Theo van der Sluijs (1975) is Lead Developer at Unitrust BV. He is also creator of "I Am Bored So I blog" / Gebruikmaar.nl / vanderSluijs.nl. He is a member of the Board of the Dutch Flex Usergroup and Goesweb.net. With his quote "Never Give Up, Never Surrender" (Actually stolen from Galaxy Quest) he fights his way through the day. Connect with him on Twitter.

VN:F [1.9.3_1094]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
Drop down list text value in Livecycle Designer, 10.0 out of 10 based on 2 ratings

3 Responses to “Drop down list text value in Livecycle Designer”

  • Sandro:

    Thanks Theo. I had exactly that problem – and you saved me a lot of time…

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
  • Benja:

    Hi Theo,

    I have a problem in the same category as your tutorial.

    I’ve made an order form and in a Drop-Down List under “Object”->”Binding”->”Specify Item Values”, I have given each Text (product) a value.
    Then in a numeric field the value is surpose to show up according to the Product the buyer has choosen from the Drop-Down List.

    I did some research on the Web and I found this formcalc coding:
    UnitPrice.rawValue = Description.rawValue;
    Which I wrote under “change” for the Drop-Down List.

    Now here’s my problem. The value only occures if I click twice on the same product in the Drop-Down List. I of course want the value to appear after just 1 click!

    Do you have any clue what could be wrong with my form?

    Cheers

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: +1 (from 1 vote)
  • Mandy:

    Hello,

    I’m having the same problem that Benja is having………………. Does anyone knows how to fix that?

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)

Leave a Reply

QR Code
Donate

Like the information on my site? Please donate for a cup of coffee, or give a bit more for a cappuccino.

Twitter
Get Adobe Flash playerPlugin by wpburn.com wordpress themes