Does standalone mode support data validation?

Does standalone mode support data validation?

Dr. Tohichi HikitaDr. Tohichi Hikita Posts: 4Questions: 2Answers: 0

Hello, just wanted to check that client side data validation is supported in standalone mode since it has been working fine in standard mode but throwing errors in standalone. If it is a known issue then I'll look for a different way of handling it. But if it is explicitly supported, I'll dig into the problem more and troubleshoot what's going on.

JavaScript console throws errors:

```Uncaught TypeError: Cannot read properties of undefined (reading 'ext')

```Uncaught TypeError: Cannot read properties of undefined (reading 'Editor')

Validation works fine when bringing up a form to update a record out of a table. But when using standalone mode (https://editor.datatables.net/manual/standalone) the errors listed above show up and invalid entries are not flagged.

Answers

  • kthorngrenkthorngren Posts: 21,376Questions: 26Answers: 4,957

    How are you doing the client side validation?

    dependent() should work, if that is what you are using. I adapted the example you linked to use a dependent field to validate the format of the IP Address. ITs not a full IP validator, it just checks for three periods.
    https://live.datatables.net/guwafemu/409/edit

    Can you post your Editor init code and relevant validation code?

    Kevin

  • Dr. Tohichi HikitaDr. Tohichi Hikita Posts: 4Questions: 2Answers: 0

    Thanks for info. I'll take a look at the sample. The standalone is working different than what I'm seeing so I'll check on that first.

Sign In or Register to comment.