Support

Account

Home Forums Front-end Issues Conditional statement for select field

Solved

Conditional statement for select field

  • Hi,

    What I’m wanting to do is to make a series of conditional statements for each choice in a select field, so that when a selection is made, a number (in my case a unit price) is assigned to a value and written into an order form.

    How do I do this?

  • Kept digging and was able to solve my problem as follows:

    <?php if ($field = get_field(‘floor_plan’) == “ashridge-1494”)
    { $myNumber = 108700; echo($myNumber);} ?>

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Conditional statement for select field’ is closed to new replies.