Forum Moderators: open

Message Too Old, No Replies

My signup box doesn't work without javascript enabled

Problem?

         

TomSnow

12:50 am on Jan 18, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



I'm in lead generation so my sign up box is everything.

The little tick dots don't work with javascript disabled.

Most of my traffic is from mobile. 33% are iphone. The rest are mainly Samsung Galaxy.

I don't think it's a problem but I wanted to check with everyone to see if I should have a signup box that works without javascript enabled.

Thanks!

NickMNS

12:54 am on Jan 18, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What is the purpose of the "tick dots"? If these are simply check boxes then the JS is not required. In which case you can either eliminate it completely, or provide a <no script> fallback.

TomSnow

1:01 am on Jan 18, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



@NickMNS

We connect people with lawyers. So the tick dots let the person choose their case type. I don't think this step is required since our call center asks them their case type first thing. So we can eliminate.

Just curious, what's a <no script> fall back?

Thanks for the advice, by the way.

phranque

1:40 am on Jan 18, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



https://www.w3.org/TR/html4/interact/scripts.html#h-18.3.1
The NOSCRIPT element allows authors to provide alternate content when a script is not executed.

not2easy

2:40 am on Jan 18, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I use javascript for several things like a pop-up window for the privacy policy (and a js "close window" for that) and it works fine on my iPhone. I do have a noscript fallback but it seems to work just fine. It is plain old vanilla javascript.

NickMNS

2:46 am on Jan 18, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What you describe sounds like a simple check box, typically no JS is needed. Then the question becomes, what is the JS used it for? It could be used for styling purposes, or it may be used to validate the selection somehow. (eg: if users picks option 1, option 2 is disabled)

One other question, if the JS is disabled, and the check boxes are not working, does this also prevent rest of the form from functioning correctly? If not, that is the form works even without the check boxes then I wouldn't sweat it. Javascript is installed and operational on the browsers used in both iOS and Android devices. I think it would be relatively rare to land on a user that has gone into the settings an disabled the JS. If this were mostly desktop traffic it would be a bigger issue. But even in that case the number of users is relatively small.

tangor

10:35 am on Jan 18, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This is the js forum, so this is not a js solution:

HTML forms do not require js to function.

Server side scripting can be used for validation purposes instead of js.

Just mentioning the other options out there.

TomSnow

11:53 pm on Jan 18, 2019 (gmt 0)

5+ Year Member Top Contributors Of The Month



Thanks everyone for your advice!

tangor

4:49 am on Jan 21, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Let us know which way you go, and were you successful!