Search code examples
formslistacrobatorbeon

How display a list selection in a form onto a PDF


I created a form with Orbeon Form Editor and I want to print a PDF with user's selection. Text, date, time, radio-buttons are correctly transmited to the PDF but I ca not get the selection in list objects. How to do that ?

I set both sides with the same values (in Form Editor and in Acrobat), correctly used the section-x$field-y name

The PDF field (either text or list) should show the user's selection. But it stays .


Solution

  • One possible issue is that PDFs, unlike Orbeon Forms, don't make a distinction between the "label" (what users see) and "value" (what is stored in the data). Orbeon Forms will populate the PDF with the value the user selected, so you need to make sure that value matches one of the options you provided in the PDF template.

    Most likely, to keep things simple, you'll want to keep the label and value the same. For instance, for a dropdown allowing the selection of a number of children, in Form Builder you'd have:

    Assuming your control is named number and is in a section named children, in the PDF, you'd have (here editing the dropdown with PDFescape):