Required field

Questions related to customising nuBuilder Forte with Javascript or PHP.

Required field

Postby mariri » Thu Jan 09, 2020 9:13 pm

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 ! :)
mariri
 
Posts: 45
Joined: Mon Sep 02, 2019 7:24 pm

Re: Required field

Postby kev1n » Fri Jan 10, 2020 3:19 am

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.net/nubuilderfor ... BeforeSave
kev1n
 
Posts: 841
Joined: Mon Oct 15, 2018 2:13 am


Return to Custom Code