Translations of this page:
 

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');
en/create/functions/getanswermissing.txt · Last modified: 24.01.2015 13:12 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki