Editbox Validation (not) - What am I missing?

Issues related to forms.
Post Reply
Brian
 
 
Posts: 2
Joined: Sat Nov 03, 2018 7:04 pm

Editbox Validation (not) - What am I missing?

Post by Brian »

Creating a form in WWB14 is dead simple. Validation not so much. I've created a new page in my project containing a simple one Editbox form
with a submit button to try and discover why I'm having so much trouble.

I'm using the built-in form processor. The Editbox type is text. I intend to use a 6 character word to validate the fact that a human is filling the form so Max length is 6. For validation I've selected Info bubble. Data type is text. Data required is checked with a min and max of 6. There is nothing to match to except the label which I do not want to do. Text format is letters.

I see nowhere under the validate tab with a data type of text to tell the script what 6 character word to expect so I'm not surprised it isn't quite working. Otherwise the form works fine. What am I missing?

Here's the page for my validation test: https://www.spyderridersofba.org/validation_test.php
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Editbox Validation (not) - What am I missing?

Post by Pablo »

The file 'wb.validation.min.js' is not on the server.
Please make sure that you publish all files. Without this file the validation will not work.
I see nowhere under the validate tab with a data type of text to tell the script what 6 character word to expect so I'm not surprised it isn't quite working.
If you want to match a value then you can add an (hidden) editbox and use the 'match' option
Brian
 
 
Posts: 2
Joined: Sat Nov 03, 2018 7:04 pm

Re: Editbox Validation (not) - What am I missing?

Post by Brian »

Wow, what a headache for a single missing file. All is well now! I'll be publishing EVERYTHING more often.

Thank you Pablo.
cwlutterloh
 
 
Posts: 25
Joined: Mon Jun 24, 2019 6:56 pm

Re: Editbox Validation (not) - What am I missing?

Post by cwlutterloh »

I started having validation issues. Everything worked fine for months, today none of the validation is working. I was looking at this thred and checked for the "wb.validation.min.js" file and it is in the webpage folder and when I publish I always choose "Entire website" and "Publish all files"

Is there any other reason validation would stop working?
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Re: Editbox Validation (not) - What am I missing?

Post by BaconFries »

If it has previously worked for months then maybe your host has changed something on there side. What is thr url link to the page/site in question so that we can view and then provide a answer.
cwlutterloh
 
 
Posts: 25
Joined: Mon Jun 24, 2019 6:56 pm

Re: Editbox Validation (not) - What am I missing?

Post by cwlutterloh »

This is an intranet site, I host it internally. I tried rebooting the web server thinking it might just be an windows thing, but no luck.
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Editbox Validation (not) - What am I missing?

Post by Pablo »

To be able to help you, I need to see what you have done.
What is the URL of the page?
or do you have a demo project?
cwlutterloh
 
 
Posts: 25
Joined: Mon Jun 24, 2019 6:56 pm

Re: Editbox Validation (not) - What am I missing?

Post by cwlutterloh »

The url is http://mh/ (accessible only internally)

I used the standard form, it has Name, Phone, Email, etc. and I used the validate tab. Mode-default, data type-text, checkbox "data required" min 2.

This used to prevent users from hitting the send button with error "please enter name" but not any more.
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Editbox Validation (not) - What am I missing?

Post by Pablo »

I'm sorry, I need a working URL otherwise I cannot see what you have done.

Or else:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134
cwlutterloh
 
 
Posts: 25
Joined: Mon Jun 24, 2019 6:56 pm

Re: Editbox Validation (not) - What am I missing?

Post by cwlutterloh »

I copied out one page into a wbs file...

https://drive.google.com/file/d/1su_5WJ ... sp=sharing
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Editbox Validation (not) - What am I missing?

Post by Pablo »

The only issue I have found is that you did not set a maximum value for 'Pickup_Time'.
Everything else seems to be working (tested in WWB15).

Note that version 11 is no longer supported.
cwlutterloh
 
 
Posts: 25
Joined: Mon Jun 24, 2019 6:56 pm

Re: Editbox Validation (not) - What am I missing?

Post by cwlutterloh »

I'll try to remove that whole part. I've summited PO to upgrade my version for the new year.

So if it works for you would it have anything to do with that wb.validation.min.js file?
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Editbox Validation (not) - What am I missing?

Post by Pablo »

The problem is not related wb.validation.min.js.

The project you have shared works for me after setting a maximum value.
cwlutterloh
 
 
Posts: 25
Joined: Mon Jun 24, 2019 6:56 pm

Re: Editbox Validation (not) - What am I missing?

Post by cwlutterloh »

I took out the pickup time and it all is working again. thanks!
Post Reply