I've through some struggeling with ISS managed to get the RunwayContactForm to sen me an email, but the email sent only contains the message missing name and company data?
<asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator0" ControlToValidate="tb_name" runat="server" ErrorMessage="Vad heter du?" /> <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator1" ControlToValidate="tb_email" runat="server" ErrorMessage="Vad har du för epostadress?" /> <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator2" ControlToValidate="tb_msg" runat="server" ErrorMessage="Vad har du för ärende?" />
RunwayContactForm not showing name and company?
I've through some struggeling with ISS managed to get the RunwayContactForm to sen me an email, but the email sent only contains the message missing name and company data?
This is the code I use to include the macro?
<umbraco:Macro Subject="Kontaktformulär" YourEmail="[email protected]" Alias="InsertRunwayContactForm" runat="server">
</umbraco:Macro>
And this is the modified ascx:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Contact.ascx.cs" Inherits="UmbracoShop.Controls.Contact" %>
<asp:ValidationSummary id="valSum" runat="server" CssClass="error" DisplayMode="BulletList" />
<label>
<asp:Label id="lb_name" runat="server" AssociatedControlID="tb_name" Text="Name" Visible="False"/>
<asp:TextBox ID="tb_name" cssclass="input" runat="server" Text="Ditt Namn:" onblur="if(this.value=='') this.value='Ditt Namn:'" onfocus="if(this.value =='Ditt Namn:' ) this.value=''"/>
</label>
<label>
<asp:Label id="lb_email" runat="server" AssociatedControlID="tb_email" Text="Email" Visible="False"/>
<asp:TextBox ID="tb_email" cssclass="input" runat="server" Text="Epost:" class="input" onblur="if(this.value=='') this.value='Epost:'" onfocus="if(this.value =='Epost:' ) this.value=''"/>
</label>
<label>
<asp:Label id="lb_company" runat="server" AssociatedControlID="tb_company" Text="Company" Visible="False"/>
<asp:TextBox ID="tb_company" cssclass="input" runat="server" Text="Företag:" onblur="if(this.value=='') this.value='Företag:'" onfocus="if(this.value =='Företag:' ) this.value=''"/>
</label>
<label>
<asp:Label id="lb_msg" runat="server" AssociatedControlID="tb_msg" Text="Message" Visible="False"/>
<asp:TextBox ID="tb_msg" runat="server" textmode="MultiLine" Text="Meddelande:" onblur="if(this.value=='') this.value='Meddelande:'" onfocus="if(this.value =='Meddelande:' ) this.value=''"/>
</label>
<div class="alignright">
<asp:Button CssClass="link2" ID="bt_submit" OnClick="sendMail" runat="server" Text="Skicka" />
<asp:Label CssClass="success" id="lb_success" runat="server" Visible="false">Meddelande skickat!</asp:Label>
</div>
<asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator0" ControlToValidate="tb_name" runat="server" ErrorMessage="Vad heter du?" />
<asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator1" ControlToValidate="tb_email" runat="server" ErrorMessage="Vad har du för epostadress?" />
<asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator2" ControlToValidate="tb_msg" runat="server" ErrorMessage="Vad har du för ärende?" />
<asp:RegularExpressionValidator Display="None" ID="RegularExpressionValidator0" runat="server" ValidationExpression="^(?i:(?<local_part>[a-z0-9!#$%^&*{}'`+=-_|/?]+(?:\.[a-z0-9!#$%^&*{}'`+=-_|/?]+)*)@(?<labels>[a-z0-9]+\z?.*[a-z0-9-_]+)*(?<tld>\.[a-z0-9]{2,}))$" ControlToValidate="tb_email" ErrorMessage="Felaktig epostadress" />
is working on a reply...