文本描述
Working with the Contact Module (contact.xml) The contact module is a flexible module that will allow you to build your own custom form GLOBAL SETTINGS <useStyleSheet> choose to use a stylesheet for html text formatting <styleSheetUrl> the url of your css style sheet <submitFromEmailField> choose to send yourself the email from the email address entered in the form <restrictPhoneNumbers> choose to restrict a phone number field to only allow numbers <submitButtonText> the text for the submit button clearButtonText = the text for the clear button <successMessage> the success message once a form has been submitted FIELD XML SETTINGS <input isEmail="false"> <fieldName>Name...</fieldName> <fieldType>small</fieldType> <required>true</required> <validationType>basic</validationType> <errorMessage>Please enter your Name</errorMessage> </input> "isEmail" whether the field is an email field or not, true or false <fieldName> The text that will initially appear in the field <fieldType> 1) small 2) large (typically used for a message) <required> true or false <validation> (only relevent if "required" is set to "true") 1) basic (a basic input field) 2) email 3) phone <errorMessage> the message that will appear when the field fails validation