We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    Hi There,

    I need to run a small competition and I have 10 questions, with three multiple choice answers for each.
    I assume I could do it all with formit, but I need a way to store all the entries, and also add a score, so that I can find the winner - so I'm thinking of adding a value of 1 for the correct answer in the multiple choice radio button, and a 0 for the wrong answers. Then at the end it produces a total score value.

    Just not quite sure where to start!

    Any suggestions?

    Thanks
    Andy
      • 17301
      • 932 Posts
      There are severals way you could do it but take a look at this:
      https://stackoverflow.com/questions/42232138/jquery-quiz-scoring-function

      You could then also create a migxdb to collect the scores and submissions and write a hook to save to the migxdb and then use that to return a list of high scores from users.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 51020
        • 670 Posts
        Quote from: lkfranklin at Apr 11, 2018, 03:44 PM
        There are severals way you could do it but take a look at this:
        https://stackoverflow.com/questions/42232138/jquery-quiz-scoring-function

        You could then also create a migxdb to collect the scores and submissions and write a hook to save to the migxdb and then use that to return a list of high scores from users.

        Thanks - I'm not quite sure where to start with migxdb and hooks etc. I will have to do a lot of reading up.
          • 17301
          • 932 Posts
            ■ email: [email protected] | ■ website: https://alienbuild.uk

            The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
            • 51020
            • 670 Posts
            Quote from: lkfranklin at Apr 11, 2018, 06:15 PM
            Start here:)
            https://www.youtube.com/watch?v=jwzx6O7zdaU

            Cheers will do!
              • 42562
              • 1,145 Posts
              donshakespeare Reply #6, 6 years ago
              Do you need it to be fully integrated with your MODX or will 3rd party just suffice?
                TinymceWrapper: Complete back/frontend content solution.
                Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
                5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
                • 51020
                • 670 Posts
                Quote from: donshakespeare at Apr 11, 2018, 08:23 PM
                Do you need it to be fully integrated with your MODX or will 3rd party just suffice?

                Third party would be fine. I’m looking at a few on codecanyon but not sure how I would integrate into Modx - ie using a separate db and running the php within a plugin or snippet?