SOLVED

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

Go to solution
Cecile_Maindron
Level 10

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

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
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cecile_Maindron
Level 10

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

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;

View solution in original post

3 REPLIES 3
Cecile_Maindron
Level 10

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

any solutions?
Anonymous
Not applicable

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

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
Level 10

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

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;