cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Build Apps - Mandatory Fields

ACurtis
Explorer
0 Kudos

I am experimenting with SAP Build and I think it would be a basic functionality to perform validation on a field to ensure it has a value or has not been left blank.

So I add an Input field, refer it to an App Variable and then look for a property to make the field mandatory. I cannot see anything.

Checked the Logic Canvas, still nothing.

Can anyone help me to see how to make a field mandatory?

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Is there something else you need?

ACurtis
Explorer
0 Kudos

not at the moment, I think I did it with a toast message on the submit button. I don’t know if there is a better way

View Entire Topic
Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

In SAP Build Apps, this is done with the logic canvas, and checking the field and if a problem not letting it be submitted. You can also just create logic on change event and check for validity and then display colors or warnings in case of problems.

kirill_l wrote a great piece on strategies for validating fields: https://blogs.sap.com/2023/03/14/moderating-user-input-in-sap-build-apps/

Also check my answer to this question: https://answers.sap.com/questions/13857480/field-validations-in-sap-appgyver.html

I will write something and maybe provide a custom component for validation later this year

RohanShukla
Explorer
0 Kudos
Hey Dan, thanks for the answer. May I know if we have a custom component for validation now? Or do we need to achieve "Mandatory" field validation through logic canvas still? Please advise. Thanks, Rohan