Keyword

How to get specific value in multi select list extra field

More
7 years 2 months ago - 7 years 2 months ago #160114 by Uldis
Hello,

I'm currently trying to understand how could I target specific value of a multi select list extra field and is this at all possible.

The idea is this - when I select option from multi select list a specific text is added to the site. I've been experimenting with the code below, but this stops working once I select multiple options.
<?php if ($this->item->extraFields->myextrafield->value == "optionname"): ?>
<div class="item-info">
	specific text 
</div>
<?php endif; ?>

Is there a way to target specific option in multi select list?
Last edit: 7 years 2 months ago by Uldis.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum