WordPress.org

Forums

Display image only if certain Radio Button fields are selected (1 post)

  1. sparklogix
    Member
    Posted 10 months ago #

    I'm using the Advanced Custom Field (ACF) plugin and have a Radio Button field called "Virtual". This field has 3 options: "Virtual", "Physical", and "Virtual & Physical".

    I need to be able to output an image only if a user selects "Virtual" or "Virtual & Physical".

    There is nothing in the ACF documentation on how to do this (there isn't Radio Buttons at all in their docs, actually) and I can't find anything that works in Google searches. I have tried many different code snippets but nothing is working right.

    What can I add to my page template to get an image to display only if one of those two options is selected? Nothing will be displayed if "Physical" is displayed.

    Thanks!

Reply

You must log in to post.

About this Topic