I am using input fields in Orbeon Form Builder that should be filled with the text “null”, when formdata will be sent as xml to service, if a user doesn’t fill it in Form Runner. Suppose I have to define calculated value field with XPath expression. How can I do it?
Because I don’t want to have an empty element in result xml data file.
I am using input fields in Orbeon Form Builder that should be filled with
Share
The simplest way to provide ‘null’ as a default value in XForms is to write ‘null’ as the value of the element or attribute in question in the document instance you load to begin with. If you want the elements
shoesizeandsockscolorto default tonull, write your XForms instance accordingly:If you load the document instance from an external document, you’ll need to do something more complicated, like setting the values of shoesize and sockscolor on as part of the action when the user clicks the submit button. Something like:
This is just generic XForms, though, and does not exploit any special features FormsRunner might have to make this easier.