I want to create simple form for contact us using Doc2Form which will collect information like name, email,Comment etc. All these comments from this form should be stored and displayed to admin to publish it.
The document although its been a while since i last read shows you how to create the doctype which will define the form and documents the macro properties to get the form to render. Can you detail how far you have got.
Then insert the Doc2Form marco in your template and fill in the Doc2Form Wizard.
In the Wizard, set the Node Id of the page/node you want the messages to appear under, then from the select box, choose your "contact" tab content and fill in the wizard as needed.
Hi I am new in umbraco CMS .net controler. I am just wondering any one cal help me to create a customize Contact form by Web User control. I follow thw whole tutorial. But the problem is when i add valodation contron on my form. Then i found this erroe message...
The ControlToValidate property of 'RequiredFieldValidator1' cannot be blank. and more ......
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContactUsForm.ascx.cs" Inherits="ContactUsForm.ContactUsForm" %>
Using Doc2Form to create simple contat us form
Hi
I want to create simple form for contact us using Doc2Form which will collect information like name, email,Comment etc. All these comments from this form should be stored and displayed to admin to publish it.
Please help
Thank you
Chetan
Chetan,
Goto http://umbracoext.codeplex.com/releases/view/5251 and download Doc2Form 2.0 Beta 3 Early Documentation should get you going.
Regards
Ismail
Thank you Ismail. I have installed Doc2Form. I need further steps for creating forms and storing the data.
Thank you
Chetan
Did you download and read the early documentation?
Yes
The document although its been a while since i last read shows you how to create the doctype which will define the form and documents the macro properties to get the form to render. Can you detail how far you have got.
Regards
Ismail
After install, make a new Document property called Contact Form and make a new Tab called on it "Contact"
The add the following properties:
Property name: Name
Alias: myName
Type: Textstring
Group: Contact
Property name: Email
Alias: myMail
Type: Textstring
Group: Contact
Property name: Comment
Alias: myComment
Type: Textbox Multiple
Group: Contact
...and so on to suit your needs.
Then insert the Doc2Form marco in your template and fill in the Doc2Form Wizard.
In the Wizard, set the Node Id of the page/node you want the messages to appear under, then from the select box, choose your "contact" tab content and fill in the wizard as needed.
See this macro for reference:
Doc2Form will likeley fail to insert all the values you enter for some reason, so use the above to get in the missing pieces.
/Martin
Thank you Martin, it worked.
Chetan
You're most welcome ;-)
I need step by step install for contact us form on my site or can someone do it for me
Hi I am new in umbraco CMS .net controler. I am just wondering any one cal help me to create a customize Contact form by Web User control. I follow thw whole tutorial. But the problem is when i add valodation contron on my form. Then i found this erroe message...
The ControlToValidate property of 'RequiredFieldValidator1' cannot be blank. and more ......
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContactUsForm.ascx.cs" Inherits="ContactUsForm.ContactUsForm" %>
<form action="" method="post" name="contactus">
<table width="672" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="292"><input type="text" name="fname" id="fname" value="First Name"/><asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server"
ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
</td>
<td width="380" rowspan="6" valign="top"><table width="380" border="0" cellspacing="0" cellpadding="0" id="contact2">
<tr>
<td colspan="2"><textarea name="txtcomments" id="txtcomments" cols="45" rows="5">Enter text...</textarea></td>
</tr>
<tr>
<td width="187"><input name="Captcha" type="text" class="captcha" id="sml-input" value="78 BHG" /></td>
<td width="193"><span id="accessiblity">Ut et metus dapibus dolrutrum vestibulum molestie id ligula.</span></td>
</tr>
<tr>
<td colspan="2"><input name="sml-input" type="text" id="sml-input" value="Enter Code" /></td>
</tr>
<tr>
<td colspan="2"><a class="button" type="submit" href="#">Send Enquiry</a></td>
</tr>
</table></td>
</tr>
<tr>
<td><input name="fname" type="text" id="lname" value="Last Name" /></td>
</tr>
<tr>
<td><input name="company" type="text" id="company" value="Company Name" /></td>
</tr>
<tr>
<td><input name="emailaddress" type="text" id="emailaddress" value="Email address" /></td>
</tr>
<tr>
<td><select name="country" id="country">
<option>Please select your country</option>
</select></td>
</tr>
<tr>
<td><label>
<input type="checkbox" name="chkmail" id="chkmail" />
I would like to receive relevant insight, news and reports from ICLP</label></td>
</tr>
</table>
</form>
Please give me an idea or anything else. Thank you.......
is working on a reply...