Quote:
Originally Posted by upnorth
I'm looking for some guidance in formatting the answer template so that I can control the way the finished post looks. Is there any way to use conditionals in the answer template?
For example I have
$question1
$checkboxAnswer1_1
$checkboxAnswer1_2
$checkboxAnswer1_3
If only the first checkbox is selected on the form then the $checkboxAnswer1_2 and $checkboxAnswer1_3 put spaces in the final post. I'd like to do something like
if ($checkboxAnswer1_2==""){
echo "";
}
That way I can eliminate the spaces?
Any ideas?
|
Quote:
Originally Posted by Deepdog009
Check with RayW, he has made some progress in this area...
|
upnorth, I'm no experienced programmer (I'm still learning too) but it looks like you have the right idea.
You may be able to work it out using what I have
posted here (it is back on the previous page about half way down as well). If you give your checkboxes values ($checkbox1a, $checkbox1b, $checkbox1c, for example) and apply those values to what I have written, you would be pretty close to fixing your problem I reckon. You may need to make 1 or two other tiny changes to make it function correctly.
I wish I could help more!