309
Views
3
Comments
Solved
A field is required, but even without filling it in, you can enter participants.
Question

Good afternoon!


I created a form with four fields to fill in, three of them are required, however, when I was testing the application I was able to insert a participant with only one of the data, and no error message appeared, and I clicked save on an empty form, and a naturally empty line was created on my participant list.

What can I do to correct this problem?

In the properties we can see that mandatory is true!

data I entered, even incomplete:

Thank you for your help!

2019-05-22 11-30-09
Marcelo Ferreira
Solution

Hi Jessica,

Even if those are true you need to turn on client validation. If you use a button to submit that form you can check his properties and look for On Click > Validation. You need to set the Client & Server option for those input settings to work. 

Nonetheless you should always have the same validation on server side and check if all the mandatory fields are filled and any other rule that you have (ex: format of an email). Also in the database, you should mark those fields as mandatory if that is the case. Will all this checks enforce that you will not have an empty record on your tables.

Regard,

Marcelo

2020-09-15 09-38-17
Jessica Marques

Hello Marcelo. 

thanks for the answer,

 I will research how to do this validation. 

Best regard, 

Jessica Marques. 

2020-09-15 09-38-17
Jessica Marques

Jessica Marques wrote:

Hello Marcelo. 

thanks for the answer,

 I will research how to do this validation. 

Best regard, 

Jessica Marques. 


It was simple to do this validation, I just needed to select the button, and in the properties of OnClick properties, to change the Validation to  Client & Server.


Regard, 



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.