protected function wizardAddFieldValue()
    {
        // Required
        $this->validatePrompt('title', $this->text('Title'), 'field_value');
        $this->validatePrompt('field_id', $this->text('Field ID'), 'field_value');

        // Optional
        $this->validatePrompt('color', $this->text('Color'), 'field_value', '');
        $this->validatePrompt('weight', $this->text('Weight'), 'field_value', 0);

        $this->validateComponent('field_value');
        $this->addFieldValue();
    }
protected function wizardAddFieldValue()
    {
        // Required
        $this->validatePrompt('title', $this->text('Title'), 'field_value');
        $this->validatePrompt('field_id', $this->text('Field ID'), 'field_value');

        // Optional
        $this->validatePrompt('color', $this->text('Color'), 'field_value', '');
        $this->validatePrompt('weight', $this->text('Weight'), 'field_value', 0);

        $this->validateComponent('field_value');
        $this->addFieldValue();
    }
protected function wizardAddFieldValue ( ) { // Required $ this -> validatePrompt ( 'title' , $ this -> text ( 'Title' ) , 'field_value' ) ; $ this -> validatePrompt ( 'field_id' , $ this -> text ( 'Field ID' ) , 'field_value' ) ; // Optional $ this -> validatePrompt ( 'color' , $ this -> text ( 'Color' ) , 'field_value' , '' ) ; $ this -> validatePrompt ( 'weight' , $ this -> text ( 'Weight' ) , 'field_value' , 0 ) ; $ this -> validateComponent ( 'field_value' ) ; $ this -> addFieldValue ( ) ; }
Add a new field value step by step
Add a new field value step by step