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

Re: Required field

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


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. ... BeforeSave
Posts: 969
Joined: Mon Oct 15, 2018 2:13 am

Return to Custom Code