Hello, Can someone help me please about my mandatory fields not working. My save button is inside a form with mandatory fields but when I click the button, it still proceeds saving data even I have not put anything in the mandatory fields.
Button Property:
Input field set to mandatory
Hi,
Have you marked those fields as mandatory at field level means for each widget you need to mention that its mandatory or not. Because in the UI am not able to see the asterik(*) mark which generally appear when we make any field mandatory.
regards
Yes, I set mandatory as true in the required input fields like the title. Please see photo below
Hello Rhyz Dela Cruz,
Make sure your attribute property Is Mandatory field is yes and also check your input field mandatory field is true also check save button Built-in Validations is yes . I have also send my OML file maybe it will help you.
Thanks
My Buttons Properties are different.
ok, you use Traditional web app follow this step for
Validation in Traditional Web
The Valid property of the form is False when:
It's a core file
Yes it is a core file. Is there anything I need to set on the core file?
Yes, make sure your attribute property Is Mandatory field is yes
Hello,
Please make sure your input field is Mandatory is true after that when you submit the form it will check input field is filled or not .
Hello dear
At the top of all, there is one property in all buttons which is Built-in Validations which you have to make Yes , then only your validation will be applicable for the form Built-in Validations..
hope now it will work for you
Hi @Rhyz Dela Cruz ,
your setup of the input widgets looks allright.
you have to realise that you still have to make your Save logic in such a way that it takes into consideration the result of these validations.
You do that by adding an If at some point after validations (or if you only use built-in validations, at the top of your Save logic) and this If checks of everything is valid. This can be done by looking at the Form.Valid property.
Only if Form.Valid is true, should your Save logic go ahead with it's normal processing.
Maybe revisit this training video, this is discussed from 5:30 onwards.
Dorine
@Gourav shukla : this has nothing to do with the mandatory property of the attribute, built in validations are only related to the input widgets property.
@Rhyz Dela Cruz : a lot of the answer you are getting here are about Reactive. Although it is clear from your screenprints that you are working on a traditional app, please also tag it as Traditional when you ask the question.
yes Dorine Boudry you are correct.