cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to set state to 'required' for RadioButtonGroupByKey UI element

former_member182374
Active Contributor
0 Kudos

Hi all,

I'm using RadioButtonGroupByKey UI element that is bounded to a simple type.

Simple type looks like this:

0 -- Sunday

1 -- Monday

2 -- ...

...

...

The selectedKey property is bounded to the simple type.

The state property is set to 'required'

Although I'm using a radio button I don't want to set default selection.

I cannot set label for RadioButtonGroupByKey (unlike inputField).

I'm expecting to see a red asterisk near the radio button but I don't.

What else do I need to set in order to see the red asterisk?

I'm using 7.00.14

Regards,

Omri

Accepted Solutions (1)

Accepted Solutions (1)

former_member185086
Active Contributor
0 Kudos

Hi

We need to initialise the value before using it In validation case :

First go through this [thread|;

for code sample refer [this|;

Best Regards

Satish Kumar

former_member182374
Active Contributor
0 Kudos

Hi,

I know how to validate the field (write code for it) - I've written the code and it works.

All I want is to show the red asterisk (for display only) just like when dealing with input fields.

Regards,

Omri

former_member305573
Participant
0 Kudos

Hi omri

For that in the property of the inputfield set the State = Required.

label of the input field should be also.

State = required.

Prashant Krishen

Edited by: prashant krishen on Nov 3, 2009 11:10 AM

former_member182374
Active Contributor
0 Kudos

Hi prashant krishen,

For input field it works.

For RadioButtonGroupByKey it doesn't...

How do I make it work for RadioButtonGroupByKey?

Omri

Answers (1)

Answers (1)

former_member185086
Active Contributor
0 Kudos

Hi Omri

You found difficulty in this UI element because by default One readio button is always selected.(As standard UI ment for).

No point to do it mandatory.in case you just want to show RED asterisk put a small same Image at label.

Best Regards

Satish Kumar

former_member182374
Active Contributor
0 Kudos

Hi,

You're right that radio button should have default value however WD doesn't force it.

Moreover, why does the 'state' property exist if it doesn't do anything when you change it?

I think I will set a default for the radio button group.

Thanks for your help

Omri