HTML Form Validation w/in QB

  • 0
  • 1
  • Question
  • Updated 6 years ago
  • Answered
I have a simple HTML page that uses a Form Submit w/ VBScript to validate but the validation is never called. I also tried using JavaScript to validate user input, but still doesn't call function.

Is this even possible in QB?

The form (html) page displays correctly.

Photo of David W. Brown

David W. Brown

  • 0 Points

Posted 6 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,434 Points 20k badge 2x thumb
Nobody uses VBScript for web development any longer. With HTML5 the trend is to use the new form attributes to define input types and validations. For example see:

Using the image onload technique you can squeeze the new attributes into existing QuickBase forms inputs and add the corresponding JavaScript to handle event processing. For example, this pastie will (1) make fid=6 a required field on the form, (2) apply a distinctive red/blue border around invalid/valid inputs elements, and (3) wrap the DoSaveAdd() with a validity check so the form will not save until fid=6 is valid:

Pastie Database

This just an example so there would be additional code you would have to implement to create a complete solution for whatever input validation you require.