protected function buildField($fieldProps, $nameDefault = null)
    {
        $this->debug->group(__METHOD__, $nameDefault);
        if (!isset($fieldProps['attribs']['name']) && !isset($fieldProps['name'])) {
            $fieldProps['attribs']['name'] = $nameDefault;
        }
        if (!empty($fieldProps['newPage'])) {
            $fieldProps['attribs']['type'] = 'newPage';
            $fieldProps['attribs']['value'] = $fieldProps['newPage'];
            unset($fieldProps['newPage']);
        }
        $field = $this->fieldFactory->build($fieldProps);
        if ($this->status['submitted'] && $field->attribs['type'] != 'newPage') {
            $pageI = $this->persist->get('i');
            $value = $this->persist->get('pages/'.$pageI.'/values/'.$field->attribs['name']);
            $field->val($value, false);
        }
        $this->debug->groupEnd();
        return $field;
    }