2.0 form: selected radio button value doesn't show up in iframe | Community
Skip to main content
Cecile_Maindron
Level 10
May 26, 2014
Solved

2.0 form: selected radio button value doesn't show up in iframe

  • May 26, 2014
  • 3 replies
  • 1456 views
Hello,

I have created a 2.0 form. As the form is embedded on a non MTKO page and I needed the fields to be pre-filled, I have added form to a landing page and created an iFrame.

The issue is that I have a radio button question where I wanted to have one selected by default field. I can perfectly see the selection when I preview the form. I could also see it when I had added the form directly in Drupal. However since I have implemented the iFrame, it doesn't show up anymore. How can I fix that?

Cécile @ Talend
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Cecile_Maindron
thanks Steffen.

In the meantime I have added a line in my js on iFrame

if(document.getElementsByName("FieldName")[0])
      document.getElementsByName("FieldNam")[0].checked=true;

3 replies

Cecile_Maindron
Level 10
May 28, 2014
any solutions?
May 28, 2014
Hi Cecile,
there was a post in the community a few days ago, containing the information that there is a bug with prefilling radio buttons at the moment which should be fixed as soon as possible.

Best regards

Steffen
Cecile_Maindron
Cecile_MaindronAuthorAccepted solution
Level 10
May 28, 2014
thanks Steffen.

In the meantime I have added a line in my js on iFrame

if(document.getElementsByName("FieldName")[0])
      document.getElementsByName("FieldNam")[0].checked=true;