Multipurpose Send Mail Form Builder

v2.0

 

Form design

TextInput

This is the Flex TextInput component (single line). Following properties can be used in XML file

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

x No Int   X, Y position of TextInput on form
y No Int  
width No Int   Width, Height of TextInput on form
height No Int  
require Yes Boolean false Used for validation. When Send button is pressed, if this TextInput, with require=true, is empty, so red border of this TextInput will be appeared to indicate result of failed validation.
value Yes String "" Default text displayed in TextInput component. It is also used when press Reset button.
includeChars Yes String "" All characters in includeChars string MUST exist in this TextInput. Otherwise, validation will be failed
excludeChars Yes String "" All characters in excludeChars string must NOT exist in this TextInput. Otherwise, validation will be failed
fieldTitleInMail No String   String that will appear in mail content, follow with current TextInput value
toolTip Yes String "" Tooltip of this TextInput

Example

<object>
   <type>TextInput</type>
   <name>txtYourEmail</name>
   <x>100</x>
   <y>90</y>
   <width>200</width>
   <height>20</height>
   <value>myemail@gmail.com</value>
   <includeChars>@.</includeChars>
   <excludeChars>!#$%^(*()_</excludeChars>
   <fieldTitleInMail>Customer email</fieldTitleInMail>
   <toolTip>Input your email</toolTip>
</object>

And the result

    

If user input and press Send button in following case

    

It indicates that the validation is failed because of lacking "." character.

Back | Table of Contents | Next

 

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