cancel
Showing results for 
Search instead for 
Did you mean: 

setValueState(sap.ui.core.ValueState.Error) is not working for sap.m.Input

Former Member
0 Kudos

Hi Team,

I am new to SAP UI5, I want to show red border to mandatory Input ui fields.

For that I have written the below logic.

viewObject.byId("IssueDescId").setValueState(sap.ui.core.ValueState.Error);

it is showing "Invalid Entry" text when I click inside the Input ui field, but red color border is not appearing.

I have one more query is this setValueState will work for sap.m.Select and sap.m.MultiComboBox also? do I need to do any thing special for these components?

Appreciate help on this.

Thanks,

Sudhakar.

Accepted Solutions (0)

Answers (0)