src/Forms/FieldList.php
public function removeFieldFromTab($tabName, $fieldName)
    {
        $this->flushFieldsCache();

        // Find the tab
        $tab = $this->findTab($tabName);
        if ($tab) {
            $tab->removeByName($fieldName);
        }

        return $this;
    }
public function removeFieldFromTab($tabName, $fieldName)
    {
        $this->flushFieldsCache();

        // Find the tab
        $tab = $this->findTab($tabName);
        if ($tab) {
            $tab->removeByName($fieldName);
        }

        return $this;
    }
public function removeFieldFromTab ( $ tabName , $ fieldName ) { $ this -> flushFieldsCache ( ) ; // Find the tab $ tab = $ this -> findTab ( $ tabName ) ; if ( $ tab ) { $ tab -> removeByName ( $ fieldName ) ; } return $ this ; }
Remove the given field from the given tab in the field.

@param string $tabName The name of the tab
@param string $fieldName The name of the field

@return $this
Remove the given field from the given tab in the field .