Skip to Content
avatar image
Former Member

RadiobuttonList clear on Button click "Clear"

Hi all

Need some help from you. I have a Radiobutton list with a set of radio buttons in that. I have to uncheck the radiobuttons if checked, on a button click say Clear button.

I have tried code

Radiobuttonlist.Radiobutton.rawValue = null;

But this is not working ....

just for checking if the button event is triggered i have placed an alert on click event of button. it is working. But the radiobuttons are not clearing...

It would be great if any one suggests me on this

Points will be awarded for every relavent answer.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 20, 2008 at 02:01 PM

    Bunny,

    Open the Script Editor of LiveCycle Designer and enter the following code in the click event of the button.

    Change the language to javaScript:-

    xfa.host.resetData(RadioButtonList.somExpression);

    Chintan

    Add comment
    10|10000 characters needed characters exceeded

    • Bunny,

      Are they inside a subform? Then write the complte hirearchy for RadiobuttonList for ex:-

      Subform1.RadiobuttonList.somExpression....

      If this is not working too then send me the form and I will take a look. You can find my contact details in business card.

      Chintan

  • Oct 20, 2008 at 12:51 PM

    try

    Radiobuttonlist.rawValue = null;

    the actual value is stored in the list box, each item has a fixed value;

    try with xfa.host.messageBox(Radiobuttonlist.rawValue);

    br norbert

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2008 at 01:07 PM

    javascript:

    xfa.host.messageBox(xfa.resolveNode("data.#subform[0].Optionsfeldliste").rawValue);

    xfa.resolveNode("data.#subform[0].Optionsfeldliste").rawValue = "";

    xfa.host.messageBox(xfa.resolveNode("data.#subform[0].Optionsfeldliste").rawValue);

    worked: lcd 7.1 ; SAP_ABA 700 sp 15

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I am working with Webdypro for Java. Interactive forms ...

      i did not understand the syntax....Please can you bit elaborate...