Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8995241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:35:37+00:00 2026-06-15T23:35:37+00:00

I am using input fields in Orbeon Form Builder that should be filled with

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:35:38+00:00Added an answer on June 15, 2026 at 11:35 pm

    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 shoesize and sockscolor to default to null, write your XForms instance accordingly:

    <xforms:instance id="main" xmlns="">
      <mydata>
        <name></name>
        <age></age>
        <shoesize>null</shoesize>
        <sockscolor>null</sockscolor>
      </mydata>
    </xforms:instance>
    

    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:

    <xforms:trigger>
      <xforms:label>Submit</xforms:label>
      <xforms:action ev:event="DOMActivate">
        <xforms:setvalue ref="shoesize"
                         if=".=''"
                         value="'null'"/>
        <xforms:setvalue ref="sockscolor"
                         if=".=''"
                         value="'null'"/>
        <xforms:send submission="go"/>
      </xforms:action>
    </xforms:trigger>
    

    This is just generic XForms, though, and does not exploit any special features FormsRunner might have to make this easier.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a struts form that contains many input fields generated using indexed properties.
I am making a form using text input fields and selectboxes. Each input is
I have a form that populates input fields using jQuery and AJAX. I can
I learned that how to dynamically add input fields to a form by using
I am using Codeigniter framework and I have a form with input fields. When
I have a form with some input fields. I am using the tabStrip KendoUI
I am using ASP.NET2.0. I have created a download form with some input fields
I'm trying to reset some input text fields, inside of a data table, using
How to make multiple forms with shared fields without using javascript? <input type=text name=username
I am using an input form with multiple input fields. These input fields can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.