Skip to main content
Known Participant
May 2, 2012
Answered

onClick() Event for Radio button

  • May 2, 2012
  • 2 replies
  • 1023 views

Hi All,

How to add onClick event for Radio button? I have tried and it shows 'Object does not support menthod" error.

var myRadioButtonGroup = radiobuttonGroups.add();

                                     with(myRadioButtonGroup)

                                     {

                                        var CoverPages = radiobuttonControls.add({staticLabel:"Cover Pages"});   

                                         CoverPages.onClick=function(){$.writeln("Test");};

                                        var PrelimPages = radiobuttonControls.add({staticLabel:"Prelim Pages"});

                                        var CroppedEdboardPages = radiobuttonControls.add({staticLabel:"Cropped Edboard Pages"});

                                        var ExtraPages = radiobuttonControls.add({staticLabel:"Extra Pages"});

                                     }        

Regards,

SASE

This topic has been closed for replies.
Correct answer tomaxxi

Hi Sase,

You must use ScriptUI to be able to add events to the controls.

HTH

--

Marijan (tomaxxi)

http://tomaxxi.com

2 replies

tomaxxi
tomaxxiCorrect answer
Inspiring
May 2, 2012

Hi Sase,

You must use ScriptUI to be able to add events to the controls.

HTH

--

Marijan (tomaxxi)

http://tomaxxi.com

கற_பன___Imagine_
Inspiring
May 2, 2012

Hi Selva,

onClick event is a Method not a properties.  try this onClick() = function () {  }

I hope this will helps to you.

Regards,

Nagaraj