Hi,
I have a very specific question that's related to creating surverys and potentially viewing page source code for the answers to the surveys.
Is it possible to view the correct answer to "radio" or "checkbox" button questions if you can right-click and "view page source"?
I am creating an HTML and CSS survery for a project and was wondering if surveryees can 'cheat' by knowing how to read code, now that I'm in charge of this i'm genuinely curious.
Thanks in advance!!!
Sort: Top
[–] [deleted] 0 points 4 points 4 points (+4|-0) ago
[–] inner-city-youf 0 points 1 point 1 point (+1|-0) ago
Haha, came in to say exactly this.
[–] WORF_MOTORBOATS_TROI 0 points 2 points 2 points (+2|-0) ago
How do we know that you're not the one trying to cheat
[–] hrdtak 0 points 1 point 1 point (+1|-0) ago
The JavaScript is accessible and the users would be able to see the code/logic if they knew how to read it. It could be obfuscated to make it more challenging, but it is still all client side.
The normal way to do it would be to have a server side aplication that validates the answers, so the answers and logic aren't stored locally.
[–] sakuramboo 0 points 1 point 1 point (+1|-0) ago
The code to handle the data of the survey is supposed to be done in something other than HTML or CSS. Whatever is used to handle that, the user will never see it because it's server side.