Radio button not showing that it was clicked/selected | Community
Skip to main content
Level 5
Aug 9, 2021 4:06 AM UTC
Solved

Radio button not showing that it was clicked/selected

Hello,

I have two radio buttons in a group (No and Yes) and when I click on one of them, it does not show the black circle in the middle when clicked.  It show it briefly and then disappears.  The other button shows the black circle in the middle when it's clicked.  How can I fix that?  Not sure why it's happening.  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
Aug 9, 2021 4:40 AM UTC

@islandgirl23 

This is not the case with OOTB grouped Radio button objects, it works as expected with both PDF and HTML preview. You can test the same with a sample form.

You may have to check if some js applied on an event in the form that could have caused this issue.

5 replies

Level 5
Aug 10, 2021 11:20 AM UTC

Good day,

I found what I think is the problem in my click event of the yes button.  I have the below:

//-
xfa.host.resetData("form1.headersubform.tablesubform.DISPOSITIONLIST.RETURNED");
xfa.host.resetData("form1.headersubform.tablesubform.DISPOSITIONLIST.DESTROYED");
xfa.host.resetData("form1.headersubform.tablesubform.DISPOSITIONLIST.BEINGHELDBY");
xfa.host.resetData("form1.headersubform.tablesubform.DISPOSITIONLIST.other");
xfa.host.resetData("form1.headersubform.tablesubform.DISPOSITIONLIST.OTHERREASON");

 

I'm trying to reset the information in these areas of the my form when the button is clicked.  Am I missing brackets or something?  

 

Translate
Mayank_Gandhi
Employee
Aug 10, 2021 2:40 PM UTC

@islandgirl23  You can do multiple reset using comma.

xfa.host.resetData("xfa.form.form1.TextField1,xfa.form.form1.TextField2");

 Check for the field expression that could be the issue. You can do ctrl+shift to get absolute som-expression

Translate
Level 5
Aug 14, 2021 7:49 PM UTC

Thank you.  That worked!

Translate
Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
Aug 9, 2021 4:40 AM UTC

@islandgirl23 

This is not the case with OOTB grouped Radio button objects, it works as expected with both PDF and HTML preview. You can test the same with a sample form.

You may have to check if some js applied on an event in the form that could have caused this issue.

Translate
Mayank_Gandhi
Employee
Aug 9, 2021 4:38 AM UTC

@islandgirl23 What kind of form is it? HTML or pdf? If HTMl then remove all the scripts, styles and try again.

Translate