Back to myContactForm.com - Easy email form creation and processing for your web site
myContactForm.com - Help Forum Forum Index myContactForm.com - Help Forum
Have a question that you need answered about myContactForm.com? Post it on this message board but first search this forum and read out FAQ to ensure it has not already been answered. This is not a board to post links to your site! SPAM will be deleted!
 
   Search MessagesSearch Messages
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Removing required email address field

 
Post new topic   Reply to topic    myContactForm.com - Help Forum Forum Index -> Form Management
View previous topic :: View next topic  
Author Message
wineoceros



Joined: 27 Feb 2008
Posts: 4

PostPosted: Fri Jul 26, 2013 12:57 pm    Post subject: Removing required email address field Reply with quote

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
View user's profile
mycontac
Site Admin


Joined: 31 Dec 2003
Posts: 2684

PostPosted: Mon Jul 29, 2013 3:24 am    Post subject: Reply Reply with quote

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
View user's profile
wineoceros



Joined: 27 Feb 2008
Posts: 4

PostPosted: Mon Jul 29, 2013 1:15 pm    Post subject: Reply with quote

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
View user's profile
wineoceros



Joined: 27 Feb 2008
Posts: 4

PostPosted: Mon Jul 29, 2013 2:16 pm    Post subject: Reply with quote

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
View user's profile
mycontac
Site Admin


Joined: 31 Dec 2003
Posts: 2684

PostPosted: Tue Jul 30, 2013 3:28 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    myContactForm.com - Help Forum Forum Index -> Form Management All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group