Hi,

 

I have a radio group in modal page.

Want to make it mandatory.

 

If I define one of the radio option as "Checked", it is not allowing to deselect the option from UI.

 

Please suggest.

 

Regards.

Like 0

Like

3 comments

Hello Anitha, 

 

According to the logic of the radio button, one of the values ​​must be selected anyway. It means that you can just select another option but not to deselect all of them. If you want to deselect one option - you have to select another option. Basically, for such operations you may use "Checkbox" instead of "Radio group". So using the "checkbox" you will be able to deselect all options or some of them from the UI, according to your business task.

 

Also please refer to this case here you may find some articles about Radio that might be useful for you:

 

https://community.creatio.com/questions/create-radio-button-field-oppor…

 

 

 

Thank you!

Best Regards, 

Bogdan L.

Hi Bogdan,

 

Thank you for replying.

 

"According to the logic of the radio button, one of the values ​​must be selected anyway "

 

- Yes. But it also allows none of the option to be selected. My requirement is to force at least one of the option to be selected.

 

So, is there a way where we could mark one of the option as default selected or making the radio group mandatory.

 

Any inputs will be helpful.

 

Thank you.

 

Regards,

Anitha Premkumar

 

 

Anitha P,

 

Please check the implementation of "Delivery Adress" detail of Orders section. 

 

 

If you inspect this detail in "AddressSelectionDetailV2" you may find "getRadioButtonViewConfig: function()". So please debug this function and you will see the correct implementation of "checked" attribute. 

Hopefully it will be useful:)



Best Regards, 

 

Bogdan L.

Show all comments