Closed Bug 1110543 Opened 10 years ago Closed 9 years ago

add <noscript> section to generic feedback form

Categories

(Input Graveyard :: Submission, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: aokoye)

Details

(Whiteboard: u=user c=feedback p= s=input.2015q1)

If a user who has JavaScript disabled attempts to leave feedback, they're met with a broken form.

We should add a <noscript> section that tells the user that JavaScript is required to leave feedback and that they should enable it and refresh the page.

Pretty sure this is as easy as:

<noscript>
<p>
{{ _('JavaScript is required to leave feedback. Please enable JavaScript in your browser and refresh this page.') }}
</p>
</noscript>
We should run the language by Matej first.
(do you want to support a 'mailto' link for these people?  If trivial (since you are making a string change), then might be a good supplement.   Assuming you have an address.  And you want to take mail.
I've thought about this for 30 seconds and I'm not wildly excited about email. I suspect that stems partly from the fact it provides another vector for spam. I've only thought about it for 30 seconds, though.

Regardless, if we wanted to add an email-based feedback thing, I'd have to push that aspect off until later. Pretty sure that's a chunk of work to do.
Adam: I think this is a good one to work on next. The file you want to look at is fjord/feedback/templates/feedback/generic_feedback.html .

There's a {% block body %} section. At the top of that section, we want to add something like:

<noscript>
<p>
{{ _('JavaScript is required to leave feedback. Please enable JavaScript in your browser and refresh this page.') }}
</p>
</noscript>

After you add that, try disabling JavaScript in your browser and then loading the page. The page may not work well, but that's ok so long as that message shows at the top of the page.

I don't know offhand how to disable JavaScript. There might be a SUMO article about it. You should be able to do an Internet search for the answer.
Assignee: nobody → aokoye
(to disable js:  about:config > javascript.enabled ==> false).

I almost just (foolishly) suggested that we Google Analytics record when NOSCRIPT shows.  /me headsmack.

The "enable javascript" should be a link (if there is a good one!  maybe:  https://support.mozilla.org/en-US/questions/967344).  

Cheers!
Yeah, it'd be great to get metrics, but I don't think we have any way to do that. We could have a link to a "me, too" page where they can register their disappointment. Counting the number of requests (with some filtering somehow) might be an ok metric.
I am pretty sure you can put a pixel that points to GA inside the <noscript>. like:

<noscript><img src="https://analytics.google.com/some/awesome/pixel.gif?some=awesome&parameters=here"/></noscript>

Not sure if that helps or not...
Oh clever!

Adam: Let's get the basic page working and tested. Then we can figure out and test the pixel thing.
PR: https://github.com/mozilla/fjord/pull/423

Landed in master: https://github.com/mozilla/fjord/commit/1fc67a3348d3f5262e06877fb215d06e24ba9f02

We're in a deploy freeze, so this will wait to go out until the freeze is lifted.
Status: NEW → ASSIGNED
Pushed this to production just now. Verified that it's working.

Marking as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Moving things out of the input.adam sprint.
Whiteboard: u=user c=feedback p= s=input.adam → u=user c=feedback p= s=input.2015q1
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.