how to uncheck a radio button programmatically

book

Article ID: 143157

calendar_today

Updated On:

Products

CA Service Catalog

Issue/Introduction

we're lacking on a function that un-checks a radio button, is there any workaround for this? 

Environment

Release : 14.1 17.x

Component : CA SERVICE CATALOG

Resolution

  ca_fdResetFields() should be able to uncheck  a radio button .

//reset field1 and field2ca_fdResetFields('form1',['field1','field2']);

 

 

Here is the  simple testing js functions about it in a simple form  , for example 

 

 selRadio2: function() { 
     ca_fdSelectRadio(ca_fd.formId,'radio_group1', 'radio_2');  // select radio_2   button 
  
       },
   

unselRadio2:function() {
     alert('unselect radio button 2');
     ca_fdResetFields(ca_fd.formId, ['radio_2']);   //unselect radio_2 button 

}