Results 1 to 5 of 5

Thread: What are the Selection Controls of XForms?

  1. #1
    Join Date
    Aug 2006
    Posts
    209

    What are the Selection Controls of XForms?

    Hello everyone,
    I have recently started with the XForms. So you can call me as Rookie for the XForms. I want to know about the selection controls that are used for the XForms. Since the user interface of XForms uses XForms controls, I want to know about it. So please explain me what are the Selection Controls of XForms? Hope that you got the point, that is required for me.!! Reply me as early as possible.!!
    Blessings to you

  2. #2
    Join Date
    Mar 2008
    Posts
    349

    Re: What are the Selection Controls of XForms?

    If you want to select the one item from a list of items, then you can use the select1 control. You want to have a control that suggests a set of values in a drop-down list but also allows a user to type in their own value. Just add the attribute selection="open" to your select1 control, which is shown as follows :
    Code:
    <xf:select1 ref="demo" selection="open">

  3. #3
    Join Date
    Mar 2008
    Posts
    672

    Re: What are the Selection Controls of XForms?

    I have provided you with an example of the Selection Controls, in which the user can choose one of to values, Single or Married. The data stored in the XForms instance (XML document) will be S or M :
    Code:
    <select1 ref="status">
      <label>Status:</label>
      <item>
        <label>Single</label>
        <value>S</value>
      </item>
      <item>
        <label>Married</label>
        <value>M</value>
      </item>
    </select1>

  4. #4
    Join Date
    Nov 2008
    Posts
    996

    Re: What are the Selection Controls of XForms?

    You can also select many options from the given list, just like the check-boxes that are used in HTML. The following sample of the coding explains the same :
    Code:
    <select ref="languages">
      <label>Languages:</label>
      <item>
        <label>English</label>
        <value>E</value>
      </item>
      <item>
        <label>Russian</label>
        <value>R</value>
      </item>
      <item>
        <label>Chinese</label>
        <value>C</value>
      </item>
      <item>
        <label>German</label>
        <value>G</value>
      </item>
    </select>

  5. #5
    Join Date
    Nov 2008
    Posts
    1,192

    Re: What are the Selection Controls of XForms?

    There is also the Range Control in the Selection Controls of XForms. The range control is used for selecting a value from a range of values like the following example :
    Code:
    <range ref="length" start="0" end="50" step="5">
      <label>Length:</label>
    </range>
    In the example above, the user can choose a value between 0 and 50 in steps of 5.

Similar Threads

  1. What are the Properties of XForms?
    By Rob Dizzle in forum Software Development
    Replies: 4
    Last Post: 03-03-2010, 06:59 AM
  2. What are the Input Controls for the XForms?
    By Bigga Lexx in forum Software Development
    Replies: 5
    Last Post: 03-03-2010, 06:21 AM
  3. How to use Dates and Times in XForms?
    By Zavier in forum Software Development
    Replies: 5
    Last Post: 03-03-2010, 06:00 AM
  4. What are the XForms and XPath?
    By Nathen in forum Software Development
    Replies: 5
    Last Post: 03-03-2010, 05:35 AM
  5. How to use XForms in PHP?
    By Xylina in forum Software Development
    Replies: 4
    Last Post: 03-03-2010, 02:43 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,454,400.20154 seconds with 16 queries