Radio buttons and mobile device - problem!!! | Community
Skip to main content
Level 2
May 14, 2019 1:52 AM UTC
Solved

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
May 14, 2019 2:45 AM UTC

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 replies

SanfordWhiteman
Level 10
May 14, 2019 2:25 AM UTC

OK, I'll take a look now.

Translate
Level 2
May 14, 2019 2:03 AM UTC

Translate
Level 2
May 14, 2019 2:01 AM UTC

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

Using iPhone X

Translate
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
May 14, 2019 2:45 AM UTC

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.)

Translate
Level 2
May 14, 2019 2:54 AM UTC

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

Translate
SanfordWhiteman
Level 10
May 14, 2019 1:58 AM UTC

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

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

Translate