Multipurpose Send Mail Form Builder

v2.0

 

Form design

RadioButton

This is the Flex RadioButton component. Following properties can be used in XML file

Properties Optional Value type Default value Meaning
type No String   Must be "RadioButton"
name No String   Name of this RadioButton 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 to PHP script for your extra purpose

x No Int   X, Y position of RadioButton on form
y No Int  
width No Int   Width, Height of RadioButton on form
height No Int  
value No String   Label of RadioButton
select Yes Boolean false RadioButton is selected as default
fieldTitleInMail No String   String that will appear in mail content, follow with current selected value.
toolTip Yes String "" Tooltip of this RadioButton
actions No XML object   List of actions will be run when RadioButton is selected. Using following structure

<actions>
   <name>actionname1</name>
   <name>actionname2</name>
   ... [other action name]

</actions>

font Yes XML Object   This is new features of MSMF v2. See next.

where font property includes following sub attributes

Properties Optional Value type Default value Meaning
size Yes Int 10 Font size
name Yes String Default system font Font name in system font
bold Yes Boolean false Bold font
italic Yes Boolean false Italic font
color Yes String Black Font color

Example

<object>
   <type>RadioButton</type>
   <name>optMaleGender</name>
   <x>100</x>
   <y>30</y>
   <width>60</width>
   <height>20</height>
   <value>Male</value>
   <select>true</select>
   <fieldTitleInMail>Male Gender</fieldTitleInMail>
   <toolTip></toolTip>

   <actions>
      <name>OpenForm_Grp4_Sample2</name>
   </actions>
</object>
<object>
   <type>RadioButton</type>
   <name>optFemaleGender</name>
   <x>200</x>
   <y>30</y>
   <width>200</width>
   <height>20</height>
   <value>Female</value>
   <select>false</select>
   <fieldTitleInMail>Female Gender</fieldTitleInMail>
   <toolTip></toolTip>
</object>

And the result

   

Note:

  • If many RadioButton components are added to form, only one of them is selected. In case of survey form, for example, to have separate group RadioButton, use RadioButtonGroup instead. 

Back | Table of Contents | Next

 

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