Questions-Bank and corrections

Forminator Forms
19 March, 2021 10:13:33
Mohamed
Topics: 4
Messages: 16
Hello,
I am a teacher of mathematics. I would like to make a bank of exercises and corrections. Once a user chooses a few exercises and press finish, I would like to provide him a pdf file that contains the exercises and the answers. Is it possible? and how?
19 March, 2021 11:22:33
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

It's depending how you want to show correct/incorrect answers, however all calculations (if needed) must be done in form directly for example with hidden "calculation" field.

Inside PDF you must be able to use "Actions" and "Conditions" and some styles to show correct and incorrect answers.

We prepared some simple example:

Screenshot 1: PDF with incorrect answers
Screenshot 2: PDF with correct answers
Screenshot 3: If answer correct it will use default "green" border on field. If answer is not correct it will change border to "red".
Screenshot 4: Block with correct answer will be hidden if answer is correct.
Screenshot 5: By default we set radio check to "red" for all incorrect answers
Screenshot 6: By default we set radio check to "green" for correct answer and set "Value" the same as "Option" to have radio button always checked. Also to have possibility have 2 radios set (incorrect and correct) we need to change "group" name to some unique value to correct radio checkbox. So in case if answer correct, none of incorrect radio buttons will be checked. If answer incorrect, our green radio button will be checked + it will be checked radio button with incorrect answer.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
19 March, 2021 13:15:38
Mohamed
Topics: 4
Messages: 16
Thanks,
I would not like to make radio questions or checkbox. I'ld like to make a bank of exercises, if a user chooses a 10 exercises from 1000 and he wants to print them in a file pdf with or without corrections, how cant I make it?
19 March, 2021 23:46:52
E2Pdf
Support
Topics: 7
Messages: 3156
Hi, thank you for clarification.

Actually if you need to use it with forminator and it will be okay for you use only text, you can try to create separate "radio" buttons on the form. (Screenshot 1, Screenshot 2). It will contain values 0, 1, 2. 0 do not include, 1 include only question, 2 include question and correction. Or it can be "select" with similar options.

Inside PDF you will need to create "E2Pdf" HTML objects, which: 1st will be parent "HTML" block and other blocks will be child, for "Split content over pages" feature. It's described in our video example how content can be continued to other page: https://www.youtube.com/watch?v=SZNxz_JZ3d0

Use "Actions" and "Conditions" to "Merge" value. (Screenshot 3).

We detect each radio button selected and if value is 1, then we add only question, if the value is 2 then we add question and correction. It must be done for each radio added. If such solution will work for you, in theory it's also possible to "number" via PHP filter, however before prepare it, we need to understand if this solution can work for you.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
20 March, 2021 06:44:38
Mohamed
Topics: 4
Messages: 16
Thanks.
The problem I have with fractions or special characters. It does not work with the radio button. The problem I have with fractions or special characters. It does not work with the radio button. I'm not sure if there is any other form that can make this task easier than forminator.
Best regards
20 March, 2021 07:31:21
E2Pdf
Support
Topics: 7
Messages: 3156
You can try to use Formidable Forms. It has some pretty a lot of features. Premium plugin has also Views, where can be used conditions to complete your task and it will be a bit easier to manage.

We remain at your service.
We would really appreciate your feedback at WordPress.org!