Fill in the blank questions - Leading and Trailing space character

Problem: With fill in the blank type questions it seems many users have the tendency to accidentally input extra empty space character before and/or after typing their answer. Is there there a way for Active Presenter to just detect these errors or trim the answers?

If not, that would be a great feature so we don’t have to set multiple answers to accommodate empty spaces.

ActivePresenter version: Version 10.5.1 - 64-bit. (Released: 2026.06.10)

OS: Windows

Notes:

Hi Thien,

Currently, ActivePresenter doesn’t automatically trim leading or trailing spaces in Fill in the Blank answers.

As a workaround, you can use the following JavaScript to trim users’ input before it is evaluated. Add this script to the On Click event of the Submit button, before the Submit action:

$(prez.object('question name').textNode).find('input').each(function () {
  this.value = this.value.trim();
});

Just replace 'question name' with the actual name of your Fill in the Blank question.

BR,
Hoa

1 Like