Re: submit doesn't appear as button

Hello

PBS Got a newbie question.  I have a simple xform with two input fields 
PBS and a single submit button.  The input fields show up correctly, but 
PBS the submit does not show up as a button.  The submit label appears but 
PBS there is not button.  I have tried example xforms from the web and 
PBS they all have the symptom..  Not sure what is wrong.

PBS <?xml version="1.0" encoding="UTF-8"?>
PBS <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms/cr">
PBS <xforms>
PBS <head>
PBS <model>
PBS   <instance>
PBS   <Template>
PBS             <Letter>
PBS                         <Advisor_EmployeeID></Advisor_EmployeeID>
PBS                         <Client_ID></Client_ID>
PBS             </Letter>
PBS </Template>
PBS   </instance>
PBS   <submission id="form1" method="form-data-post" action="http://localhost:8080/dls/forms/letter" ref="/Template"/>
PBS </model>
PBS </head>

All the XForms specific elements need to be put into the xforms namespace, 
e.g. <xforns:model>...</xforms:model>.

<input> is also a valid HTML element, so that is why the input box shows 
up.

You will need to change the instance to something like:

<xforms:instance><Template xmlns="">...</Template></xforms:instance>

The root node of the instance needs to have its own namespace, otherwise 
it will be in the default namespace of the document, which is the HTML one 
in this case.

You will probably need to modify the @refs in your inputs, to something 
like Letter/Advisor_EmployeeID.

If all XForms you are looking at have the same symptom, then your browser 
might not have a working XForms plugin.

That should help you a bit. Hope you get it working.

Swithun.

Received on Thursday, 12 June 2008 14:47:31 UTC