## Calculated Simple Generate wildcards button does not display wildcards

XMLWordPrintable
• Improvement
• Resolution: Unresolved
• Minor
• 2.7.1, 2.8
• MOODLE_27_STABLE, MOODLE_28_STABLE
• MDL-48358_wip
• Hide

Apply the MDL-48358 issue
Create a new calculatedsimple question
Question name : Test MDL-48358
Question text :

{x}

1. Click on Find the wild cards present in the correct answer formulas (step1.jpg)
2. Click on generate 1 new set(s) of wild card(s) values (step2.jpg).The set of values is visible.
3. Repeat with
1. setting Display to 5 sets and
2. setting * Generate* to 10 values
3. and click on Generate Wild card(s) values. (step3.jpg) .The set of new values is visible ( this is OK)
4. click on Wild card(s) value. The values disapear. This is OK.(fig 4)
1. If you click once they will reappear.
2. Click another time so that they disappear. Then generate other values. You won't see the values as your command on Wild card(s) value have an higher priority.

 ` {x}+{y}`

6. Click on *Find the wild cards {x...}

present in the correct answer formulas' (step1.jpg). Notice that the Wild card(s) value have disappeared.

7. Click on Generate Wild card(s) and the new values will be displayed as a new opened Wild card(s) value has been put on the form.

 ` {y}`

in the question text
Save the question and preview.
This complete the testing.

Show
Apply the MDL-48358 issue Create a new calculatedsimple question Question name : Test MDL-48358 Question text : {x} Answer 1 formula = {x} Grade 100% Click on Find the wild cards present in the correct answer formulas (step1.jpg) Click on generate 1 new set(s) of wild card(s) values (step2.jpg).The set of values is visible. Repeat with setting Display to 5 sets and setting * Generate* to 10 values and click on Generate Wild card(s) values. (step3.jpg) .The set of new values is visible ( this is OK) click on Wild card(s) value . The values disapear. This is OK.(fig 4) If you click once they will reappear. Click another time so that they disappear. Then generate other values. You won't see the values as your command on Wild card(s) value have an higher priority. add a new Wild card in answer as Answer 1 formula = {x}+{y} Click on *Find the wild cards {x...} present in the correct answer formulas' (step1.jpg). Notice that the Wild card(s) value have disappeared. Click on Generate Wild card(s) and the new values will be displayed as a new opened Wild card(s) value has been put on the form. Add the {y} in the question text Save the question and preview. This complete the testing.

This is a usability issue when creating a new Calculated Simple question type. When the Generate wildcards button is pressed the form refreshes and the wildcard header is in collapsed form and so it is not clear that the wildcards have been generated. Clicking the expand option then displays the wildcards. This might be improved by changing the question editing form to include

So the newly generated wildcards are visible

As discussed at
https://moodle.org/mod/forum/discuss.php?d=275566

I am not certain how many Moodle versions this affects, but I suspect it is most currently supported versions.

1. wildcard.png
20 kB
2. Step 4.jpg
152 kB
3. Step3.jpg
153 kB
4. step2.jpg
151 kB
5. step1.jpg
152 kB
Unassigned
Marcus Green