Support

Account

Home Forums Front-end Issues Validating Group Item Reply To: Validating Group Item

  • Use explicit value (see if the value is exactly 0) === tests for value and type

    
    if ($group['field'] || $group['field'] === 0) {
      // show the field
    }