Giter Club home page Giter Club logo

Comments (2)

andrewtelnov avatar andrewtelnov commented on May 14, 2024

Hi,

I understand what you are trying to implement here.

If you would not worry about showing survey json, then you would have something like that:
Question N: Question title and a radio group: (hard) – (easy).
Question N (hard): visible by default. It may not have a title and it has question.indent > 0
Question N (easy): invisible by default and it has question.indent > 0

Using “setValue” trigger (http://surveyjs.org/examples/trigger-setvalue.html) , you may set an invisible question value that a student actually look at the easy question. Another way is to hide Question N and Question N (hard) completely on choosing (“easy”) and make the easy question visible, so a student will not be able to return to the hard question and use a tip(s) to answer it.

So, now the question to you :-). If you would get the full json from the server, then surveyjs will built the survey based on the json metadata and json will be disappeared. Do you concern that your student may intercept the json when it passed from the server?

About “Quiz” – I am thinking to add this functionality directly into surveyjs and dxsurvey.com.
For example, currently I have an idea to pass encrypted corrected answers to a client. However, a client (surveyjs lib) will not able to decrypt the answer, there will be the ability to check, if the answer correct or not, by encrypting the given answer and compare the result with the encrypted correct answer.
If you have any requirements, I would be happy to learn them.

Thank you,
Andrew

from survey-library.

kbrown avatar kbrown commented on May 14, 2024

However, a client (surveyjs lib) will not able to decrypt the answer, there will be the ability to check, if the answer correct or not, by encrypting the given answer and compare the result with the encrypted correct answer.

@andrewtelnov what's to stop someone form running the compare code from the console on each of the choices?

I think this is something that has to be done server side.

-- kevin

P.S. "Quiz" is not a requirement for me.

from survey-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.