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!
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
Hello Marcelo.
thanks for the answer,
I will research how to do this validation.
Best regard,
Jessica Marques.
Jessica Marques wrote:
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.