cancel
Showing results for 
Search instead for 
Did you mean: 

Validations of text fields on Submit button click

Former Member

Hi Experts,

I have a view which has a lot of textfields and a "Submit" button which is supposed to validate the value states of the text fields in a panel container.

Is there any method which will validate all the input fields within a container and return the valid-state of that view. Is there a way to group a set of controls, so that each group can be separately validated?

Also, when I used - control.setValueState(sap.ui.core.ValueState.Error);

I am getting a message "Invalid Entry" and "Entry successfully validated" messages which are generic and the user might not know what exactly needs to be entered. I want to show a specific tooltip or validation message like "Please enter a numeric value" / "Please enter upto 2 decimals" / "Percentage should not be greater than 100", etc.

I am new to SAPUI5, any help would be greatly appreciated!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Mandar,

Check out the following example on SAPUI5 Demokit : SAPUI5 Explored

Regards

Mayank Jain

Answers (0)