Answering the questions

0
So I'm trying to make an quiz program from scratch for school with my team. We can already make questions and quizez. But we are stuck, we don't know how to answer the questions with a form of text.    Can someone help me? thanks
asked
2 answers
3

Most likely in your question object, there is a answer parameter. So you have an object Question with the attributes question and answer. The answer could be an enumeration with the values a, b and c to make it a multiple choice question.

To answer questions, an option would be to create an attribute userAnswer in the question object. this userAnswer should be of the same type as the answer attribute in the Question object. 

Now give the user write rights to the userAnswer attribute, and create a form where you retrieve the question you want answered in a dataview (from xpath or using a datasource microflow). Then add a button with a microflow behind it, which checks the userAnswer attribute and the answer attribute. If it is wrong, the user should recieve some feedback that the answer is wrong.

answered
0

You could take a look at the questionnaire module.

answered