jrodriguez88 Posted October 24, 2017 Report Share Posted October 24, 2017 Good Evening... I have created my application to enable users to sign up which leaves a e-mail address and GUID on the table that later requires First Name and Last Name to be mandatory. However, the mandatory fields that I set as mandatory is not following the rules. Does anyone know how to logically check to ensure that the fields are not null? I have provided a example? function validateFormOnSubmit(theForm) {var reason = ""; reason += validateUsername(theForm.username); reason += validatePassword(theForm.pwd); reason += validateEmail(theForm.email); reason += validatePhone(theForm.phone); reason += validateEmpty(theForm.from); if (reason != "") { alert("Some fields need correction:\n" + reason); return false; } return true;} Quote Link to comment Share on other sites More sharing options...
Mathilda Posted October 24, 2017 Report Share Posted October 24, 2017 5 hours ago, jrodriguez88 said: Good Evening... I have created my application to enable users to sign up which leaves a e-mail address and GUID on the table that later requires First Name and Last Name to be mandatory. However, the mandatory fields that I set as mandatory is not following the rules. Does anyone know how to logically check to ensure that the fields are not null? I have provided a example? function validateFormOnSubmit(theForm) {var reason = ""; reason += validateUsername(theForm.username); reason += validatePassword(theForm.pwd); reason += validateEmail(theForm.email); reason += validatePhone(theForm.phone); reason += validateEmpty(theForm.from); if (reason != "") { alert("Some fields need correction:\n" + reason); return false; } return true;} Hi I found a post which should be helpful. Hope that helps Quote Link to comment Share on other sites More sharing options...
jrodriguez88 Posted October 27, 2017 Author Report Share Posted October 27, 2017 On 10/24/2017 at 1:51 AM, Mathilda said: Hi I found a post which should be helpful. Hope that helps Thank You Mathilda, However, I am not trying to build a custom form with a custom submit button. I am trying to use the submit button on the native caspio form. If you can help...then that will be great. Quote Link to comment Share on other sites More sharing options...
Mathilda Posted October 27, 2017 Report Share Posted October 27, 2017 12 hours ago, jrodriguez88 said: Thank You Mathilda, However, I am not trying to build a custom form with a custom submit button. I am trying to use the submit button on the native caspio form. If you can help...then that will be great. You may execute function on form submit, like in this post Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.