Jump to content

This topic is 8300 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am publising a database just using WC 5.5 v1 and cannot get the field validation to work reliably (Not Empty simply to get a required field entry), it appears to work on a simple single field database but not on the database I am trying to web enable. I notice from searching this forum that other users have had an intermittment problem with this, any thoughts?

Posted

For simple field validation I rely on Javascript. You have much more control over feedback to the user, and it saves you from having to handle it in your database and -Format files.

Here's a basic example of a script, which you'd place within the <head> tags of your HTML:

<script language="Javascript">

<!--

function Validate()

{

if (document.FormName.FieldName.value=="")

{

alert("FieldName is Required!")

document.FormName.FieldName.focus();return false

}

}

//-->

</script>

Where, of course, FormName is the name of the form and FieldName is the name of the input field you want to validate.

In your form itself, make the Submit button something like this:

<input type="submit" name="-New" value="Submit" onClick="return Validate()">

This topic is 8300 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.