Page 1 of 1

Required field

Posted: Thu Jan 09, 2020 12:43 pm
by mariri
Hi guys !

How can I change the value of the input "validate" option to "No blanks" for any input object by adding Javascript code to the form's custom code ?

Thanks for ur help ! :)

Re: Required field

Posted: Thu Jan 09, 2020 6:49 pm
by kev1n
Hi,

You can't set the "No blanks' option by JavaScript. It is validated on the server side with PHP.
But you can validate the fields in the nuBeforeSave() function.

https://wiki.nubuilder.cloud/ ... BeforeSave