Using Validate.Options not work
Using Validate.Options not work
![Clarence](https://secure.gravatar.com/avatar/1cef2c5a606938ebad117ba899ee6b5f/?default=https%3A%2F%2Fvanillicon.com%2F1cef2c5a606938ebad117ba899ee6b5f_200.png&rating=g&size=120)
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
![:'( :'(](https://datatables.net/forums/resources/emoji/cry.png)
{extended: true}
forbodyParser
?"@allen How to fix it?
@allan This error same for https://github.com/DataTables/Editor-Node/issues/2