Skip to main content

Input masks in fill gaps items

Updated over 2 months ago

Background

You can help your students or candidates to correctly answer a question by adding input masks to the text input fields.

AssessmentQ provides the possibility to add either standard or custom input masks.

Standard input masks

You can choose the following standard input masks:

Input mask

Description

Example

*

Whole number

3 or 13564

*,*

Decimal number

1,1 or 1,23456

*,#

Decimal number with one decimal place

1,1

*,##

Decimal number with two decimal places

1,23

*,###

Decimal number with three decimal places

1,234

*,## %

Percentage with 2 decimal places

99,50%

€ *,##

Currency (in Euro) with 2 decimal places

€50,00

DD/MM/YYYY

Date

29/01/2019

DD-MM-YYYY

Date

29-01-2019

YYYYMMDD

Date

20190129

HH:mm

Time in hours and minutes

05:30

Custom input masks

You can create your own custom input mask with a prefix or suffix of your choice.

For example: *,## kg

Use the following mask placeholders to create your custom input mask:

Placeholder

Description

*

Whole number

#

One digit number

*,*

Decimal number

*,#

Decimal number with one decimal place

*,##

Decimal number with two decimal places

DD

Day

MM

Month

YYYY

Year

HH

hour

mm

minutes

Rules for custom input masks

When creating custom input masks, take into account the following rules:

  • To be able to use a mask placeholder (D,M,Y,H,m,* or #) as prefix or suffix in your custom input mask, you need to protect this character by means of “\” .
    Example: *,## \m for 3,14m

  • A * cannot be followed by another mask placeholder.
    For example: *## is not allowed, use ##* instead.

Did this answer your question?