Keyword

Extra Fields - Radio Buttons

  • andrea
  • andrea's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 11 months ago #105983 by andrea
Extra Fields - Radio Buttons was created by andrea
hi guys,
i try to set RADIO BUTTONS because i would like insert an image different for every option.

Example, i have these radio button

Option 1 and Option 2

If i click and choose OPTION 1 the extra field background will be BLACK if i choose OPTION 2 background will be YELLOW (just an example).

My question is: What type of code i must insert? How i specify IF OPTION 1 value or IF OPTION 2 value?

I put this:

<?php if($this->item->params->get('catItemExtraFields') && count($this->item->extra_fields)): ?>
<?php $custom = $this->item->extra_fields; ?>

<span class="new">
<?php echo $custom[20]->value;?>
</span>
<?php endif; ?>

Somebody can help me?
Regards,
A.

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

  • andrea
  • andrea's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 11 months ago #105984 by andrea
Replied by andrea on topic Re: Extra Fields - Radio Buttons
anybody?

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


Powered by Kunena Forum