Using Validate.Options not work
Using Validate.Options not work
Clarence
Posts: 19Questions: 7Answers: 0
I use it but now working
const {
Editor,
Field,
Validate,
Format,
Options,
Upload,
promisify,
} = require('datatables.net-editor-server');
new Field('nickname')
.validator(Validate.notEmpty(new Validate.Options({
message: 'Error Message'
})))
It still return 'Input not valid'
This discussion has been closed.
Answers
Hi,
What version of the Editor NodeJS libraries are you using? It will say in the
node_modules/datatables.net-editor-server/dist/editor.js
file. Search for "version".Allan
Version is 1.7.3
Could you update to 1.7.4, the current release please?
Thanks,
Allan
Sorry I update to 1.7.4 then I see "No data detected. Have you used
{extended: true}
forbodyParser
?"@allen How to fix it?
@allan This error same for https://github.com/DataTables/Editor-Node/issues/2