Support

Account

Home Forums Add-ons Flexible Content Field True / False in Flexible Content Reply To: True / False in Flexible Content

  • You’re explanation of what you are trying to do is not clear for me to understand, but basically you can’t reference a field in a row outside of the loop.

    
    if (have_rows('flex-field')) {
      while('have_rows('flex-field')) {
        the_row();
        if (get_sub_field('true-false-field')) {
          // do something
        }
      }
    }