Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Anyone see what Ive done wrong?

Featured Replies

Hey all,

 

I found a handy script that stops form fields form being sent blank, Ive used it on a website and it works fine, Ive just used it again on this form and it wont work! Grrrr :(

 

The script is below, it works fine on the other site, and throws up a window if a field is left blank....

 

<script type="text/javascript">
function validate_required(field,alerttxt)
{
with (field)
 {
 if (value==null||value=="")
   {
   alert(alerttxt);return false;
   }
 else
   {
   return true;
   }
 }
}

function validate_form(thisform)
{
with (thisform)
 {
 if (validate_required(Width,"Width must be filled out!")==false)
 {Width.focus();return false;}
 if (validate_required(Height,"Height must be filled out!")==false)
 {Height.focus();return false;}
 if (validate_required(Name,"Name must be filled out!")==false)
 {Name.focus();return false;}
 if (validate_required(Address,"Address must be filled out!")==false)
 {Address.focus();return false;}
 if (validate_required(Town_City,"Town/City must be filled out!")==false)
 {Town_City.focus();return false;}
 if (validate_required(Postcode,"Postcode must be filled out!")==false)
 {Postcode.focus();return false;}
 if (validate_required(Phone,"Phone must be filled out!")==false)
 {Phone.focus();return false;}
 if (validate_required(Email,"Email must be filled out!")==false)
 {Email.focus();return false;}

 }

}
</script>

 

Thanks

G

  • Author

Flippin brill Jay! Thanks for answering so fast :) Problem solved +1

 

G

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.