Support

Account

Home Forums Front-end Issues If statement based on field type Reply To: If statement based on field type

  • Hi @aaronrobb

    Perhaps instead of if ($field['choices']){, you could look at the type as suggested in your topic title like so:

    
    if ($field['type'] == 'radio'){
    

    As for the yes / no question, I’m completely lost as to what you are trying to achieve. Would you mind explaining the result you want?

    Thanks
    E