Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please 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.";

}

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

Re: 3 options 30.09.2014 09:34

thank you

Re: 3 options 30.09.2014 09:34

thank you
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback