I’m trying to generate a PDF form using a schema and xml file. I have embedded the xml schema in pdf file by creating a Data Connection using the attached xsd file. I can generate different type of form controls by importing the xml file(based on this xsd) in PDF file using Acrobat 9.0 menu Forms > Manage Form Data > Import Data.
What I can’t figure out is how can I generate radio button text/label based on data in xml? The Gender enumeration that I have used becomes hardcoded in design time and there can’t be more radio buttons than that specified in the Gender enumeration in the xsd. Also even though I have specified the text for the radiobutton in the xsd I have to specify it again while designing the form using Adobe Live Cycle Designer. This is like hardcoding the radiobutton text during design time. How do i read the radiobutton text from the xsd file only ???
from xml.
For e.g. if my xml is:
<node>
<rbType>Option1</rbType>
<rbType>Option2</rbType>
<rbType>Option3</rbType>
</node>
,then there sould be 3 radio buttons with labels as Option1, Option2 and Option3. If there are only 2 'rbType' tags, then only 2 radio buttons with respective labels.
Any help\suggestions is appreciated. Thanx
Sunit.