Get Form data with Labels -( Label = value)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Get Form data with Labels -( Label = value)

mike123

Hi,

    Is it possible to get the form data in key value format or in some structured view . For example  if there is
section personal details and fields first name last name. Can it give me a xml/html in a nicely formatted way so I can display the data to user.

Ex

Personal Details


 <label>First Name</label> Mike Clarke </First Name>.

I tried read only html. But it renders whole form , including required fields text. We are trying for generic solution to print the form, instead of hardcoding anything in xml

Reply | Threaded
Open this post in threaded view
|

Re: Get Form data with Labels -( Label = value)

Alessandro  Vernet
Administrator
Hi,

You can setup Orbeon Forms to, upon users clicking a button in the form (say, "Send"), send you an XML document with the data entered by users + an XML document with metadata, including the fields' labels. Based on those 2 documents, it would be relatively easy to write some XSLT that produces a table with a label / value on each line.

http://doc.orbeon.com/form-runner/advanced/buttons-and-processes/actions-form-runner.html#sending-form-metadata

Is this something that can make sense for you?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet