cancel
Showing results for 
Search instead for 
Did you mean: 

RadiobuttonList clear on Button click "Clear"

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi

Sorry but what expression i need to put so that my radiobuttonXList will be cleared.

chintan_virani
Active Contributor
0 Kudos

Bunny,

somExpression is method name. It's not a typo.

I assumed that RadioButtonList is name of the list in your form.If its radiobuttonXList then correct line of code will be

xfa.host.resetData(radiobuttonXList.somExpression);

Chintan

Former Member
0 Kudos

Hi

It did not worked out.

chintan_virani
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

NoJo
Active Participant
0 Kudos

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

Former Member
0 Kudos

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

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

NoJo
Active Participant
0 Kudos

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