Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

setValueState(sap.ui.core.ValueState.Error) for sap.m.RadioButton and sap.m.Select

$
0
0

Hello,

 

I have radiobuttons for displaying Gender. Male and Female. And I have used sap.m.RadioButton for the same.

I also have a sap.m.Select for Insurance ID.

It is mandatory for the end user to select either of the Gender and also select an Insurance ID before they click on a button Submit.

 

In case the user does not select anything I want to set the Value State to Error. (as I have done for other fields of type sap.m.Input - marked in red)

How can we do this? As I do not see a support for setValueState(sap.ui.core.ValueState.Error) for sap.m.RadioButton and sap.m.Select.

 

Thanks and Regards,

Sunita

(P.S. :This support is available for sap.ui.commons.RadioButton and also for sap.ui.commons.DropdownBox. )

 

SettingRadioButtonStateToError.png


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>