This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:checks [15.01.2015 20:08] – [Probing] alexander.ritter | en:create:checks [23.11.2020 15:31] – [Customized Response Check] sophia.schauer | ||
---|---|---|---|
Line 66: | Line 66: | ||
===== Customized Response Check ===== | ===== Customized Response Check ===== | ||
- | If the predefined checks are insufficient, | + | If the predefined checks are insufficient, |
The PHP code used to check the answer must be put on the page __after__ the question at the top. Therefore, if the question that needs to be checked is on page 2 then the PHP code that checks the question must be put at the top on page 3. | The PHP code used to check the answer must be put on the page __after__ the question at the top. Therefore, if the question that needs to be checked is on page 2 then the PHP code that checks the question must be put at the top on page 3. | ||
Line 74: | Line 74: | ||
**Tip:** Use the function '' | **Tip:** Use the function '' | ||
- | You will receive | + | Display |
==== Example: All Items or None at All ==== | ==== Example: All Items or None at All ==== | ||
Line 87: | Line 87: | ||
// Error and go back if not all or none were answered | // Error and go back if not all or none were answered | ||
if ((count($answered) > 0) and (count($answered) < count($items))) { | if ((count($answered) > 0) and (count($answered) < count($items))) { | ||
- | | + | |
- | repeatPage(); | + | |
} | } | ||
</ | </ |