Expand my Community achievements bar.

Need help adding field data from a table to a text box

Avatar

Level 2

I have a form that has a table. Within the table is a description box. The user enters data into the box and can add/remove new items. When they are done I would like the text from these fields to be concatenated into a large text box. Essentially what they are doing is creating a list of descriptions that will be pushed into a report field.

Thanks,

3 Replies

Avatar

Level 2

It is not exact as I do not want to update a list but I think I can use it to update a text field. I have to change from addItem to

something like += if I am not mistaken.

Avatar

Level 10

Hi,

Yes, you should be able to adapt the example to work for the main summary textfield.

I would place the script in the exit event of the table textfields. You would still need to clear the summary textfield and then loop through the table and update.

Inside the loop the text would be like:

summary.rawValue = summary.rawValue + xfa.resolveNode("Table1.Row1[" + i + "]").textField.rawValue + " ";

Hope that helps,

Niall