Enquiry Form Snippet

16 Oct 2015 4:02 PMLicensee Person

Sample code for a standard email form with block controls from the base.css styles. Change the ArticleFileName=default in action to the file name of the page your form in located on.

Sample Code

<h3>Enquire</h3>

<form action="Default.aspx?PageType=EmailForm&amp;ArticleFileName=default" allowinitialfocus="false" class="block-controls" enctype="multipart/form-data" id="RequestForInformationForm" method="post" name="RequestForInformationForm" runat="server">

	<label>First Name*<input name="FirstName" required="true" type="text" /></label>

	<label>Last Name*<input name="LastName" required="true" type="text" /></label>

	<label>Email*<input data-value-type="EmailAddress" name="EmailAddress" required="true" type="text" /></label>

	<label>Phone<input name="Phone" type="text" /></label> <label>Comments<textarea name="Comments"></textarea></label>

	<label>Please input validation code?* <img alt="" height="33" src="/Default.aspx?PageType=MethodView&amp;Method=GenerateCaptchaImage" width="120" /> <input autocomplete="off" name="FormValidationCode" required="true" type="text" /></label>

	<p><input alt="Submit" class="button" name="SubmitButton" type="submit" value="Submit" /><input name="RedirectURL" type="hidden" value="request-sent" /></p>

</form>