BurhanBey
(Burhan)
September 22, 2025, 8:00pm
1
I’m creating a Fill in the Blanks question in ActivePresenter:
… x … = 32
Here’s how I set the Correct Values :
First blank: 4, 8
Second blank: 4, 8
My goal:
Accept only these two combinations:
The issue:
Because both blanks accept both values, 4 x 4 and 8 x 8 are also marked as correct.
Is there a way to restrict the Fill in the Blanks question so that only the combinations 8 x 4 and 4 x 8 are valid , but not 4 x 4 or 8 x 8?
BurhanBey
(Burhan)
September 22, 2025, 9:21pm
3
Thank you for the ideas.
My goal is to solve this within the existing Fill in the Blanks question type , using the standard question features. I’m using this system for Review Mode VS , so I want to keep it fully compatible with the built-in workflow.
I wonder if it’s possible to control this kind of combination logic using the onChange event or any other available actions for the blanks, without switching to custom text entry boxes and JavaScript. Is that feasible?
BurhanBey
(Burhan)
September 24, 2025, 10:41am
4
@Hang
@PhuongThuy_Le
Do you know a way for me to solve this problem?
Hang
(Hang Nguyen)
September 25, 2025, 4:31am
5
Hi Burhan,
Please find the project file attached for your reference. The code has been added to the Submit button:
var questionObj = prez.object(‘your_question_name’);if (!questionObj) {return;}
var $inputs = $(questionObj.node).find(‘input[class*=“ap-input-fib”]’);
if ($inputs.length !== 2) {return;}
var value1 = $inputs.eq(0).val().toString().trim();var value2 = $inputs.eq(1).val().toString().trim();
var isValid = (value1 === ‘8’ && value2 === ‘4’) || (value1 === ‘4’ && value2 === ‘8’);var isEmpty = !value1 || !value2;
if (isEmpty) {prez.showFeedbackByName(‘Incomplete Feedback’);} else if (isValid) {prez.showFeedbackByName(‘Correct Feedback’);var currentScore = prez.variable(‘total_score’) || 0;prez.variable(‘total_score’, currentScore + 1);} else {prez.showFeedbackByName(‘Incorrect Feedback’);}
fill_in_blanks.approj (1.1 MB)
Hope this helps!
1 Like
BurhanBey
(Burhan)
September 25, 2025, 7:06am
6
Hi Hang,
Wooow, you’re amazing. Thank you so much for your help.
1 Like