[[urnDraw()]]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:functions:urndraw [13.01.2015 17:06] – [Return Value] alexander.ritteren:create:functions:urndraw [13.01.2015 17:07] – [Example 2] alexander.ritter
Line 47: Line 47:
 ===== Example 2 ===== ===== Example 2 =====
  
-With the help of the return value, you can end the survey when the urn was emptied a sufficient number of times. The following PHP code both displays the text element "over" and hides the //Next// button after the third collection (i.e. when each ballot has been drawn 3 times).+With the help of the return value, you can end the survey when the urn is emptied a sufficient number of times. The following PHP code both displays the text element "over"and hides the //Next// button after the third collection (i.e. when each ballot has been drawn 3 times).
  
  
Line 55: Line 55:
   text('over'); // corresponding text element has to be created in "Text Elements and Labels"   text('over'); // corresponding text element has to be created in "Text Elements and Labels"
   buttonHide();  // hides all buttons   buttonHide();  // hides all buttons
-  pageStop();  // no other content is run on the page (provided there are still questions, text and the like under the PHP code) +  pageStop();  // no other content is run on the page (provided there are still questions, text etc. under the PHP code) 
 } }
 </code> </code>
en/create/functions/urndraw.txt · Last modified: 28.07.2016 14:12 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki