View previous topic :: View next topic |
Author |
Message |
wineoceros
Joined: 27 Feb 2008 Posts: 4
|
Posted: Fri Jul 26, 2013 12:57 pm Post subject: Removing required email address field |
|
|
I've read how to do this in the Help section and I can remove it all right. However, the code that was given to put in won't stay in the HTML code when I save it. Here's the top portion of the code for my form:
<!-- Begin myContactForm.com Form HTML -->
<form name="contactForm" id="contactForm" method="post" action="http://www.mycontactform.com/sendform/sendform.php" style="width: 100%; border: 0px solid #000000; margin: 0; padding: 0; background-color: #FFFFFF;">
<table summary="This table contains contact form fields." width="100%" cellpadding="0" cellspacing="0">
<tr style="margin: 0; padding: 0;">
<td style="background-color: #FFFFFF; border-bottom: 0px solid #D8D8D8; padding: 5px; clear: left; margin: 0;">
<label for="email" style="float: left; width: 30%; padding-top: 4px; font-family: Arial; color: #000000; font-size: 14px;">E-mail Address: <span style="color: #FF0000">*</span></label>
<input name="email" type="email" id="email" size="20" maxlength="100" required="required" style="font-family: Arial; font-size: 14px; color: #000000; background-color: #FFFFFF; border: 1px solid #000000; padding: 2px;" />
</td>
</tr>
Here's what I'm supposed to insert:
<input name="email" type="hidden" id="email" value="you@yourdomain.com">
I would put my email in for "you@yourdomain.com" and leave "email" as is?
Could someone please tell me specifically what code to remove to insert the proper code?
Thanks! |
|
Back to top |
|
 |
mycontac Site Admin
Joined: 31 Dec 2003 Posts: 2860
|
Posted: Mon Jul 29, 2013 3:24 am Post subject: Reply |
|
|
Swap:
Code: |
<tr style="margin: 0; padding: 0;">
<td style="background-color: #FFFFFF; border-bottom: 0px solid #D8D8D8; padding: 5px; clear: left; margin: 0;">
<label for="email" style="float: left; width: 30%; padding-top: 4px; font-family: Arial; color: #000000; font-size: 14px;">E-mail Address: <span style="color: #FF0000">*</span></label>
<input name="email" type="email" id="email" size="20" maxlength="100" required="required" style="font-family: Arial; font-size: 14px; color: #000000; background-color: #FFFFFF; border: 1px solid #000000; padding: 2px;" />
</td>
</tr> |
With:
Code: |
<input name="email" type="hidden" id="email" value="you@yourdomain.com"> |
The portion of the above code that says 'you@yourdomain.com' should be changed to your specific email address.
Nick Ladd
myContactForm.com |
|
Back to top |
|
 |
wineoceros
Joined: 27 Feb 2008 Posts: 4
|
Posted: Mon Jul 29, 2013 1:15 pm Post subject: |
|
|
I did that but the new code won't stay in the html code. I replace just what you said, save it, but when I go right back in to look at the code, the new code is not there....but the old code is gone. And of course, I get the error message when the Submit button is pressed that the email that was entered was not valid.
And I changed the you@yourdomain.com to my email address. |
|
Back to top |
|
 |
wineoceros
Joined: 27 Feb 2008 Posts: 4
|
Posted: Mon Jul 29, 2013 2:16 pm Post subject: |
|
|
When I copy the new code, save it and come back to it, I see that a <tbody> tag is put in where I copied the new code. |
|
Back to top |
|
 |
mycontac Site Admin
Joined: 31 Dec 2003 Posts: 2860
|
Posted: Tue Jul 30, 2013 3:28 am Post subject: |
|
|
wineoceros wrote: |
When I copy the new code, save it and come back to it, I see that a <tbody> tag is put in where I copied the new code. |
It sounds like the platform you are using to create your website is changing the code. What software are you using? I likely can't do much if the software you are using to create your website is modifying the code.
Nick Ladd
myContactForm.com |
|
Back to top |
|
 |
|