cancel
Showing results for 
Search instead for 
Did you mean: 

Javasript for radiobutton

Former Member
0 Kudos

Hi,

I have the same issue as it was mentioned on this link:

But with that code,my issue is not resolved.

My requirement is :

I have two radiobuttons i.e Create SO & Change SO

When I click on Create SO button,one of the fields should get deactivate and rest are active.

Whereas when I click on Change SO,the deactive field should be active and rest deactive.

Kindly send the code.

Thanks & Regards ,

Lina

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lina,

Try the following script for your issue.

In this case you should use the RadioButtonList. In the object palette --> Binding, set the radioButton values as 1 and 2.

Use following script in the click event of RadioButtonList.

if(this.rawValue == 1){
      Field1.access = "readOnly";
      Field2.access = "open";
}else if(this.rawValue == 2){
      Field1.access = "open";
      Field2.access = "readOnly";
}

Thanks & Regards,

Sanoosh

Former Member
0 Kudos

Hi Sanoosh,

My issue is resolved.

Thanks

Lina

Answers (0)