Multipurpose Send Mail Form Builder

v2.0

 

Form design

RadioButtonGroup

This is the RadioButtonGroup component which is different from Flex one. Following properties can be used in XML file

Properties Optional Value type Default value Meaning
type No String   Must be "RadioButtonGroup"
name No String   Name of this RadioButtonGroup object instance. It is similar to id field of Flex component. This property value must be unique in XML form file.

It is a variable that is POSTed with selected value of group to PHP script for your extra purpose

x No Int   X, Y position of RadioButtonGroup on form
y No Int  
width No Int   Width, Height of RadioButtonGroup on form. If number of RadioButton elements in group larger than area of group, scrollbars will be added automatically. 
height No Int  
distance Yes Int 0 distance space between 2 radio button
value No String   List of radiobutton in group. For example:

<value>
   <item>Selection1</item>
   <item>Selection2</item>
</value>

selection Yes Int 0 Index of which RadioButton in group will be selected. It must start from 1. Illegal value will be ignored.
fieldTitleInMail No String   String that will appear in mail content, follow with current selected RadioButton value in group.

Example

<object>
   <type>RadioButtonGroup</type>
   <name>RadioButtonGroup2</name>
   <x>10</x>
   <y>290</y>
   <width>400</width>
   <height>90</height>
   <distance>2</distance>
   <value>
      <item>Annual walk-a-thon</item>
      <item>Quarterly Raffle</item>
      <item>Black-tie Gala</item>
      <item>Other</item>
   </value>
   <selection>2</selection>
   <fieldTitleInMail>Which events are you interested in volunteering for?</fieldTitleInMail>
</object>

And the result

     

You can see that this is not different if you add 4 separate RadioButtons. But if you have a survey with many single-choice questions, each one must implemented with RadioButtonGroup because using seperate RadioButtons is impossible.

Back | Table of Contents | Next

 

Copyright © 2009 Best Flash Solutions, Inc. All rights reserved | Site map