close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Clear textbox if checkbox unticked

Thread began 5/21/2018 6:45 am by warpsys | Last modified 7/24/2018 3:34 pm by warpsys | 4166 views | 44 replies


I see what you mean, though it's strange it works on desktop browsers and many mobile devices, just not all.Not sure how to do a conditional validation on the email textbox though if that's the problem.

The Submit is this

if (isset($_POST["TIOSecurelogin_submit"]) || isset($_POST["TIOSecurelogin_submit_x"])) header("location: auth.php");

Cearing the tick box is

if (!isset($_POST['c1'])) {
$_POST['Email_Address'] = "";

And the email textbox is

<fieldset class="NewFromBlank_Default" id="fieldset">
Please click here to receive mailings from us.<span class="formTextfield_Small">
<input name="c1" type=checkbox onclick='JavaScript: showHide();' value="1" />
<div id="Email_Address" style="display:none"> Email Address:
<input id="Email_Address" name="Email_Address" type="text" class="formTextfield_Large" tabindex="4" pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}" title="Please enter a valid email address" required="true" />
<span class="serverInvalidState" id="Email_Address_ServerError">Please enter your email address</span></div>
<br />
Selecting this box is optional, and is not required to use the free WiFi service.</span>
<legend class="groupHeader"></legend>
<span class="sublabel"></span> <span class="sublabel"></span>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...