Skip to main content
Level 2
May 14, 2019
Répondu

Radio buttons and mobile device - problem!!!

I have radio buttons on my form, and the values aren't being captured when the form is filled out from a mobile device. From desktop it works fine. Can anyone help please? This is urgent as the invitation must go out in 3 hours ... ahhhhh. #radio buttons

Ce sujet a été fermé aux réponses.
Meilleure réponse par SanfordWhiteman

The perception that the radio buttons are working on desktop browsers is optimistic!

In fact, they do not work correctly anywhere, because somebody wrote some extremely poorly-thought-out JS. Not knowing how to correctly use the Forms 2.0 JS API, they're overwriting the value attribute of the radio buttons after fetching a response from an outside webservice. Remove the code that calls updateFormVars and you'll be fine.

(Also, I shudder to imagine what you're doing with that service and its is_anon check, etc.. That's a clear Denial of Service attack vector if indeed it's hitting Marketo REST API with every pageview.)

7 commentaires

SanfordWhiteman
Level 10
May 14, 2019

Any question like this must include a URL. How else could we help?

And what specific mobile device(s) are you testing with?

Level 2
May 14, 2019

go.plunketthomes.com.au/PM-PL-2019-05-Studio34Opening_Invite.html

Using iPhone X

SanfordWhiteman
Level 10
May 14, 2019

The perception that the radio buttons are working on desktop browsers is optimistic!

In fact, they do not work correctly anywhere, because somebody wrote some extremely poorly-thought-out JS. Not knowing how to correctly use the Forms 2.0 JS API, they're overwriting the value attribute of the radio buttons after fetching a response from an outside webservice. Remove the code that calls updateFormVars and you'll be fine.

(Also, I shudder to imagine what you're doing with that service and its is_anon check, etc.. That's a clear Denial of Service attack vector if indeed it's hitting Marketo REST API with every pageview.)

Level 2
May 14, 2019

Thanks so much! I will get some help to action the steps you've provided! Thank youuuuuu!!! 

Level 2
May 14, 2019

SanfordWhiteman
Level 10
May 14, 2019

OK, I'll take a look now.