Generating a Single Bullet List from multiple drop down lists

3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 20, 2016   (RSS)

By Damon - January 20, 2016

Hi Tina,

To not have the bullet appear if there is nothing selected, you need to wrap the <li> code with an IF statement. The IF statement will check to see if a variable (selection) exists and if it does, display the <li> code.

Right now you have this:

<li><?php echo $add_sale_horseRecord['rope_heel'] ?></li>

For each list item wrap in an IF statement like this:

<?php if($add_sale_horseRecord['rope_heel']) : ?>
     <li><?php echo $add_sale_horseRecord['rope_heel'] ?></li>
<?php endif; ?>

Make sure you change the variable name inside the if statement to match each.

Let me know if you have any questions.

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

You are awesome. Thanks Damon!!!