Page 1 of 1

Dashlets: Possible Bug In GETCONFIGHTML with Radio Input

Posted: Fri Jun 01, 2012 9:16 pm
by Box293
I've been working on a Dashlet recently and have had some issues with Radio buttons. I might be making a programming mistake so I've created a Demo Dashlet that demonstrates the issue I am having.
demo.zip
Just upload this via the Manage Dashlets section.

It seems that it doesn't matter what radio button I select when in DASHLET_MODE_GETCONFIGHTML, it always seems to store the value of the last radio button in that radio button group.

For example:
  • In the Available Dashlets section click the icon for the Demo Dashlet
    The Add To Dashboard window appears
    Select Home Page from the drop down list
    If you click any of the radio buttons it will tell you the value of that radio button
    Select radio_one Value A
    Select radio_two Value C
    Click the Add It button
    Now go to the Home Page
    You will see the Dashlet that is reporting the values of radio_one and radio_two
    Notice that the value for radio_one is B (I selected value A)
    Notice that the value for radio_two is D (I selected value C)
Any ideas as to what is happening here?

Nagios XI 2011R2.4 VM running on ESXi 5 Update 1.