Can this plugin create quiz?
-
Can this plugin create quiz similar to this one
https://calcuworld.com/pregnancy-calculators/gender-calculator-boy-or-girl/1+2 = A or 1+3 = B or 2+3 = A and so on etc etc
-
Hello @kiat87
If it is based on mathematical operations, yes it can be implemented with our plugin.
Best regards.
I tried that with the free version,
im unble to do hundreds of combination of equation with True or False answer. can we do that?
Hello @kiat87
I’m sorry, but I cannot help you if you don’t describe your equation in detail.
Best regards.
example
1+1 = True
1+2 = False
1+3 = False
1+4 = False2+1 = True
2+2 = True
2+3 = True
2+4 = FalseIt doesnt really have a fix answer for all the combination, so we need If Else and Conditional Logic to display True or False to the Reader
Hello @kiat87
There are multiple alternatives that not require to use conditional statements. An alternative would be defining a plain object with all options.
For example, assuming that fieldname1 is a radio button field with two choices: 1 and 2, and the fieldname2 field is another radio button with four choices: 1, 2, 3, 4
The equation can be implemented as follows:
(function(){ var db = { 1:{1:true, 2:false, 3:false, 4:false}, 2:{1:true, 2:true, 3:true, 4:false} }; return db[fieldname1][fieldname2]; })()Best regards.
so if i want to display female or male instead of true and false, i replace true = female , false = male is that correct
Hello @kiat87
Yes of course, but enclosed between single or double quotes, as follows:
(function(){ var db = { 1:{1:'male', 2:'female', 3:'female', 4:'female'}, 2:{1:'male', 2:'male', 3:'male', 4:'female'} }; return db[fieldname1][fieldname2]; })()Best regards.
Do i put that under equation for the result field ?
First value 1,2,3 is from <%fieldname3%>
First value 1,2,3 is from <%fieldname4%>Result is <%fieldname1%>
Hello @kiat87
I’m sorry, but I don’t understand your question.
Into the equations you should refer the fields directly by their names: fieldname3, fieldname4 and not with the tags structure, furthermore the equations are entered through the attributes: “Set equation” in the settings of calculated fields:

Best regards.
Also We would like the reader to click submit and display the result in a new form.
Please confirm if everything is achievable ? Also do we need professional or Developer version to do that?
Hello @kiat87
If you want to populate the default values of the fields in the form B, with the values of the fields submitted by the form A, please, read the following section in the plugin’s documentation:
https://cff.dwbooster.com/documentation#populate-form-b-with-a
And yes, you would need at least the Profession version of the plugin.
Best regards.
Sorry for the confusion in explaination
This is what we would like to achieve exactly
https://www.thebump.com/chinese-gender-chart
Do let us know which version should we go for pro or dev
Hello @kiat87
The page you sent me as reference is not using two forms, it is simply displaying the result of the equations in the second page. This feature is included with the Professional version of the plugin. More information in the following link:
https://cff.dwbooster.com/documentation#thanks-page
For additional questions about the commercial features of the plugin, you should contact us through our private website: Contact Us
Best regards.
I followed your suggested structure
(function(){
var db = {
1:{1:’male’, 2:’female’, 3:’female’, 4:’female’},
2:{1:’male’, 2:’male’, 3:’male’, 4:’female’}
};return db[fieldname1][fieldname2];
})()The result display null. are we suppose to replace the number in var db by fieldname1 fieldname2 and so on?
The topic ‘Can this plugin create quiz?’ is closed to new replies.