Fox Multiple Choice Voting

Next meeting time proposal

Mon 11:00Tue 9:00Thu 10:00Thu 15:00Fri 11:00
 John John {[foxdelline 1175079542a26254b0 Fox.FoxMultipleChoiceVoting ]}
 PaulPaul  {[foxdelline 1175080301a53909b0 Fox.FoxMultipleChoiceVoting ]}
Hilary   Hilary{[foxdelline 1175080365a6304b0 Fox.FoxMultipleChoiceVoting ]}
   FrancisFrancis{[foxdelline 1175082308a8965b0 Fox.FoxMultipleChoiceVoting ]}
   Scott {[foxdelline 1175085020a34838b0 Fox.FoxMultipleChoiceVoting ]}
pkhg    {[foxdelline 1175094453a68027b0 Fox.FoxMultipleChoiceVoting ]}
mam mam mam{[foxdelline 1175095411a89282b0 Fox.FoxMultipleChoiceVoting ]}
  Test  {[foxdelline 1175095601a85565b0 Fox.FoxMultipleChoiceVoting ]}
  Test2Test2 {[foxdelline 1175099635a50582b0 Fox.FoxMultipleChoiceVoting ]}
 VinceVinceVince {[foxdelline 1175102510a60398b0 Fox.FoxMultipleChoiceVoting ]}
  Paul  {[foxdelline 1175267136a27744b0 Fox.FoxMultipleChoiceVoting ]}
aleks  aleks {[foxdelline 1175353112a17188b0 Fox.FoxMultipleChoiceVoting ]}
 HansHans  {[foxdelline 1175587813a73907b0 Fox.FoxMultipleChoiceVoting ]}
test    {[foxdelline 1175938656a27457b0 Fox.FoxMultipleChoiceVoting ]}
 FritzFritz Fritz{[foxdelline 1176049475a58241b0 Fox.FoxMultipleChoiceVoting ]}
 Bill   {[foxdelline 1176432364a52804b0 Fox.FoxMultipleChoiceVoting ]}
     {[foxdelline 1176432373a45597b0 Fox.FoxMultipleChoiceVoting ]}
 Greg   {[foxdelline 1176432378a41400b0 Fox.FoxMultipleChoiceVoting ]}
 Rat   {[foxdelline 1176751063a89198b0 Fox.FoxMultipleChoiceVoting ]}
 Silly Silly {[foxdelline 1177091242a90545b0 Fox.FoxMultipleChoiceVoting ]}
 JDJD  {[foxdelline 1177438661a199b0 Fox.FoxMultipleChoiceVoting ]}
 fgsdgs    
toto     

(:foxappend form1:)

Please check the boxes you can manage, fill in your name, and click Submit. (:fox form1 #append:) (:foxtemplate "||{$$vote1} ||{$$vote2} ||{$$vote3} ||{$$vote4} ||{$$vote5} ||{[foxdelline]} ||":)

Mon 11:00 Tue 9:00 Thu 10:00 Thu 15:00 Fri 11:00 Name

(:foxend form1:)

Wiki Source Code

This form uses check boxes to post the user's name in a table listing several options. The options are defined at the top in page text variables. A line delete button allows the user to delete the entry. A custom conditional is used to check author name against the author field. It is defined like this in config.php:

# add conditional markup: (:if author AUTHORNAME:)
$Conditions['author'] = "\$GLOBALS['Author']==\$condparm";

Form wiki code Note some lines are wrapped for easier reading!

!!Next meeting time proposal
(:Option1: Mon 11:00 :)
(:Option2: Tue 9:00 :)
(:Option3: Thu 10:00 :)
(:Option4: Thu 15:00 :)
(:Option5: Fri 11:00 :)

||width=100% border=0
||!{$:Option1}||!{$:Option2} ||!{$:Option3} ||!{$:Option4} ||!{$:Option5} ||
(:foxappend form1:)

Please  check the boxes you can manage, fill in your name, and click Submit.
(:fox form1 #append:)(:input default vote "":)
(:input hidden foxfields vote1,vote2,vote3,vote4,vote5 :)
(:foxtemplate "||{$$vote1} ||{$$vote2} ||{$$vote3} ||{$$vote4} ||{$$vote5} ||
(:if author {$$author}:){[foxdelline]}(:if:) ||":)
||width=100% 
||{$:Option1} (:input checkbox vote1 {$$author}:) ||{$:Option2} (:input checkbox vote2 {$$author}:) ||
{$:Option3} (:input checkbox vote3 {$$author}:) ||{$:Option4} (:input checkbox vote4 {$$author}:) ||
{$:Option5} (:input checkbox vote5 {$$author}:)  ||Name (:input text author {$Author} size=15:) ||
(:input submit post "Submit":) ||
(:foxend form1:)