Required field

Questions related to customising nuBuilder Forte with Javascript or PHP.

Required field

Unread 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

Unread 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
nuBuilder Team
Posts: 1763
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Return to Custom Code

Who is online

Users browsing this forum: No registered users and 10 guests