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 csdesign - January 19, 2016

Hello!  I'm not sure if this is possible or not and so far everything I've tried is NOT working.  

What I have is a list of "horse qualities" on a detail page. Each quality has an option of three levels (Finished, Started or Prospect)

Right now each quality has it's own field with the same three level pull down list. If the level is "none" then "select" works just fine for it not to display. 

However, I would like all of the horse qualities that have been given a level to show up in a bulleted list and this is where I ran into problems. 

How do I get the bulleted list to not display horse qualities if the level is "none" aka "select".

I have included screenshots of exactly what I have at this point. It's displaying exactly as I thought it would (bullets with nothing following them) but attempts to make it display correctly have failed. Because this is a detail page and it involves multiple fields I'm not sure how to handle it. 

Thanks so much!! Tina

<ul>
<li><?php echo $add_sale_horseRecord['rope_heel'] ?></li>
<li><?php echo $add_sale_horseRecord['reining_horse'] ?></li>
<li><?php echo $add_sale_horseRecord['kid_horse'] ?></li>
<li><?php echo $add_sale_horseRecord['rope_calves'] ?></li>
<li><?php echo $add_sale_horseRecord['ranch_horse'] ?></li>
<li><?php echo $add_sale_horseRecord['barrel_horse'] ?></li>
<li><?php echo $add_sale_horseRecord['parade_horse'] ?></li>
<li><?php echo $add_sale_horseRecord['cutting'] ?></li>
<li><?php echo $add_sale_horseRecord['trail'] ?></li>
<li><?php echo $add_sale_horseRecord['mounted_shooting'] ?></li>            
</ul>

By csdesign - January 20, 2016

You are awesome. Thanks Damon!!!