June 8, 200223 yr 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?
June 8, 200223 yr 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()">
Create an account or sign in to comment