getAnswerMissing()

boolean getAnswerMissing()

The function getAnswerMissing() can be used to determine whether a page is repeatedly displayed because a response was missing, or because the specified format was not adhered to. This function can be used, for example, to display additional information.

Tip: If you run a customized response check, input a text element ID in the command repeatPage to show this as an error message.

Example

The following PHP code displays the text element “infoAB01” if the page is redisplayed due to a missing or incorrect response (e.g. in question AB01).

if (getAnswerMissing()) {
  text('infoAB01');
}
question('AB01');