Expand my Community achievements bar.

SOLVED

Merging bound data fields

Avatar

Former Community Member

I want to merge several xml data fields into one text field. is this possible? For example Name, address, city, state, zip into one client info text box.

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

The code woudl be javascript in the form and woudl be dependant on the structure of the xml. If you send your xml and the form you are working on to

LiveCycle8@gmail.com I will try and create a sample for you from that.Make sure you indicate what you want done in the email message.

Paul

View solution in original post

4 Replies

Avatar

Former Community Member

You will not be able to simply bind the xml fields to the form fields as that is expecting a one to one relationship. You will have to use code to gather the xml fields that you want then append them together to write them into the single form field.

Paul

Avatar

Former Community Member

Do you have some sample code? And would I put that code in JavaScript or in the XML source code?

Avatar

Correct answer by
Former Community Member

The code woudl be javascript in the form and woudl be dependant on the structure of the xml. If you send your xml and the form you are working on to

LiveCycle8@gmail.com I will try and create a sample for you from that.Make sure you indicate what you want done in the email message.

Paul

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----