Forum
Calc Builder Support
Calc Builder supportForums
No se permite escribir sin estar logado. Por favor, login
3 options 30.09.2014 03:17
Need help team - thanks in advance
**********
Logic
*********
if user chooses "select" then output should be ""
if user chooses "Weekends" then "4 Weekend Selected."
if user chooses ""Most of the time then"4 Most of the time selected.";
******************************
my code is faulty please see
if($question4=="Weekends"){
$message4="4 Weekend Selected.";
}
if($question4=="Most of the time"){
$message4="4 Most of the time selected.";
}
else {
$message4="4 None Selected.";
}
**********
Logic
*********
if user chooses "select" then output should be ""
if user chooses "Weekends" then "4 Weekend Selected."
if user chooses ""Most of the time then"4 Most of the time selected.";
******************************
my code is faulty please see
if($question4=="Weekends"){
$message4="4 Weekend Selected.";
}
if($question4=="Most of the time"){
$message4="4 Most of the time selected.";
}
else {
$message4="4 None Selected.";
}
Re: 3 options 30.09.2014 09:07
Hello,
Maybe with else structure, this is not working as expected. Try to add 'none selected' as default value and test then about 'question' value, like this:
$message4="4 None Selected.";
if($question4=="Weekends"){
$message4="4 Weekend Selected.";
}
if($question4=="Most of the time"){
$message4="4 Most of the time selected.";
}
Regards,
Moonsoft Team
www.moonsoft.es
Maybe with else structure, this is not working as expected. Try to add 'none selected' as default value and test then about 'question' value, like this:
$message4="4 None Selected.";
if($question4=="Weekends"){
$message4="4 Weekend Selected.";
}
if($question4=="Most of the time"){
$message4="4 Most of the time selected.";
}
Regards,
Moonsoft Team
www.moonsoft.es