XML Forms with DropDown Fields

R

René

I've created a form in Word 2003 using form fields, created an xml schema,
registered it in Word and assigned XML tags to my form fields. Everything
works fine and the data is saved to an XML file if I say File=>Save as... XML
.... Data only. Then I replace one of the text form fields
(wdFieldFormTextInput) with a dropdown form field (wdFieldFormDropDown) to
let the use choose from a list of predefined values according to the valid
values defined in the schema with <xs:SimpleType><xs:restriction
base="xs:string"><xs:enumeration value="TestValue1">...
After that I receive an XML error from the validation because the XML tag
has no value, no matter what item in the drop down field I am choosing.
I cannot believe that drop down fields are not working with XML data. Please
give me advice on what to do with this issue.
Many thanks in advance
Cheers René
P.S. I've also tried to save the document as plain text and found out that
values from the drop down fields are only saved if I activate the option
"insert line breaks". Very strange
 
B

Bob Buckland ?:-\)

Hi René,

You may want to also post this in the Office XML group
(link below)

======
I've created a form in Word 2003 using form fields, created an xml schema,
registered it in Word and assigned XML tags to my form fields. Everything
works fine and the data is saved to an XML file if I say File=>Save as... XML
.... Data only. Then I replace one of the text form fields
(wdFieldFormTextInput) with a dropdown form field (wdFieldFormDropDown) to
let the use choose from a list of predefined values according to the valid
values defined in the schema with <xs:SimpleType><xs:restriction
base="xs:string"><xs:enumeration value="TestValue1">...
After that I receive an XML error from the validation because the XML tag
has no value, no matter what item in the drop down field I am choosing.
I cannot believe that drop down fields are not working with XML data. Please
give me advice on what to do with this issue.
Many thanks in advance
Cheers René
P.S. I've also tried to save the document as plain text and found out that
values from the drop down fields are only saved if I activate the option
"insert line breaks". Very strange >>
--
LLet us know if this has helped you,

Bob Buckland ?:)
MS Office System Products MVP
*courtesy is not expensive and can pay big dividends8

A. Specific newsgroup/discussion group mentioned in this message:
news://msnews.microsoft.com/microsoft.public.office.xml
or via browser:
http://microsoft.com/communities/newsgroups/en-us/?dg=microsoft.public.office.xml

B. MS Office Community discussion/newsgroups via Web Browser
http://microsoft.com/office/community/en-us/default.mspx
or
Microsoft hosted newsgroups via Outlook Express/newsreader
news://msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top