About Arbortext Styler > Scripting and Interactivity > Including PDF Forms in PDF Output > PDF form — Combo Box
  
PDF form — Combo Box
Combo Boxes are very similar to List Boxes, but the list of items is provided in a drop-down list rather than a flat vertical list. This means a Combo Box takes up less space.
The stylesheet samples in Arbortext-path/samples/APP/pdfFormFields provide these components to support definition and output of a PDF Combo Box:
Component
Description
Element
Name — comboBox
Attributes:
type — how to generate the list of items provided by the Combo Box
The value can be content or attribute
content — the item children of comboBox contain the List Box items
attribute — the items attribute of comboBox provides a comma-delimited list of items to add to the List Box
The stylesheet provides the UFE with the list using XPath.
UFE
Name — addComboBox
Added by Before-text generated text defined for comboBox element
Attributes:
height
width
display (inline or block)
sort — whether the list items are sorted (true or false)
property set
Name — pdfForms_addComboBox
Applied by the addComboBox UFE
APP function
Name — addPDFComboBox
Called by the property set pdfForms_addComboBox