Multipurpose Send Mail Form Builder

v2.0

 

Form design

ComboBox

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

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

x No Int   X, Y position of ComboBox on form
y No Int  
width No Int   Width, Height of ComboBox on form
height No Int  
value No XML Object   List of items which will be added to ComboBox. For example

<value>

   <item>Element1</item>

   <item>Element2</item>

   <item>Element3</item>

</value>

fieldTitleInMail No String   String that will appear in mail content, follow with current selected ComboBox item.
toolTip Yes String "" Tooltip of this ComboBox
actionlist No XML Object   actions for combo box

here is structure of actionlist for combo box

<actionlist>

   <item>

        [ properties of item action ]  

   </item>

   <item>

        [ properties of item action ]  

   </item>

   ... [ other items if need]

</actionlist>

Each item corresponding to item in ComboBox. if item is selected, actions will be called. To do this, declare as following properties for item:

Item Properties Optional Value type Default value Meaning
index No Int   item index which action(s) will be set
actions No XML object   List of actions will be run when item is selected. using following structure

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

</actions>
 

Example

<object>
   <type>ComboBox</type>
   <name>cmbTShirtType</name>
   <x>10</x>
   <y>500</y>
   <width>150</width>
   <height>20</height>
   <value>
      <item>Group 3 Form 1</item>
      <item>Group 3 Form 2</item>
      <item>Group 3 Form 3</item>
      <item>Group 3 Form 4 and also Open Adobe.com</item>
   </value>
   <actionlist>
      <item>
         <index>0</index>
         <actions>
            <name>OpenForm_Grp3_Sample1</name>
         </actions>
      </item>
      <item>
         <index>1</index>
         <actions>
            <name>OpenForm_Grp3_Sample2</name>
         </actions>
      </item>
      <item>
         <index>2</index>
         <actions>
            <name>OpenForm_Grp3_Sample3</name>
         </actions>
      </item>
      <item>
         <index>3</index>
         <actions>
            <name>OpenLink_Adobe</name>
            <name>OpenForm_Grp3_Sample4</name>
         </actions>
      </item>
   </actionlist>
   <fieldTitleInMail>Combox Form group select</fieldTitleInMail>
   <toolTip></toolTip>
</object>

And when user select item, corresponding action will be called. See List of actions for more information

Back | Table of Contents | Next

 

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