Expand my Community achievements bar.

how do you use a text field's value in message text

Avatar

Level 1

I am trying to take a Numeric field's value (4 digit number) and populate that a several times in a text field in the middle of paragraphs etc

The four digit number is an ID number that is mentioned several times on the form. I am trying to enter it once not 8 times

Any ideas?

3 Replies

Avatar

Former Community Member

This can be done several ways.

1) Floating fields. This is the use case for floating fields (http://help.adobe.com/en_US/livecycle/9.0/designerHelp/000427.html) whereby you simply do data binding to an object defined as a floating field and embedded in a text object. Used the attached .xml as the form preview data file.

2) Sting concatenation on rawValue. You can treat the value of text objects just like the value of text field objects. For example, the script below is the exit event on a numeric field and it inserts the number in a text object.

// form1.page1.nf::exit - (JavaScript, client)


form1.page1.txt1.rawValue = "This is a text field and the value " + this.rawValue + " is from the numeric field.";

Steve

Avatar

Level 1

Thanks, Steve

That will do the trick. I really should learn how to use this product better that seemed so simple

Thanks again

Avatar

Level 1

Steve

I used your example for a form but i cannot get the floating field to

display more than once. I have tried several things but couldn't make the

floating fields populate in 2 other parts of the form

Keith