Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Required field

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
mariri
Posts: 45
Joined: Mon Sep 02, 2019 11:54 am

Required field

Unread post 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 ! :)
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Required field

Unread post 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
Post Reply