src/field/Field.php
public function getSubmitted()
    {
        $fieldType = $this->getType();

        $data = array_key_exists($this->getSlug(), $_POST) === true ? $_POST[$this->getSlug()]: "";

        if (in_array($fieldType, [static::TYPE_CHOICE, static::TYPE_MULTIPLE_CHOICE]) === true) {
            $data = $this->parseChoiceSlugs($data);

            if (is_array($data) === true) {
                foreach ($data as $index => $datum) {
                    $data[$index] = $datum->getValue();
                }
            } else {
                $data = $data->getValue();
            }
        }

        return $data;
    }
public function getSubmitted()
    {
        $fieldType = $this->getType();

        $data = array_key_exists($this->getSlug(), $_POST) === true ? $_POST[$this->getSlug()]: "";

        if (in_array($fieldType, [static::TYPE_CHOICE, static::TYPE_MULTIPLE_CHOICE]) === true) {
            $data = $this->parseChoiceSlugs($data);

            if (is_array($data) === true) {
                foreach ($data as $index => $datum) {
                    $data[$index] = $datum->getValue();
                }
            } else {
                $data = $data->getValue();
            }
        }

        return $data;
    }
public function getSubmitted ( ) { $ fieldType = $ this -> getType ( ) ; $ data = array_key_exists ( $ this -> getSlug ( ) , $ _POST ) === true ? $ _POST [ $ this -> getSlug ( ) ] : "" ; if ( in_array ( $ fieldType , [ static :: TYPE_CHOICE , static :: TYPE_MULTIPLE_CHOICE ] ) === true ) { $ data = $ this -> parseChoiceSlugs ( $ data ) ; if ( is_array ( $ data ) === true ) { foreach ( $ data as $ index => $ datum ) { $ data [ $ index ] = $ datum -> getValue ( ) ; } } else { $ data = $ data -> getValue ( ) ; } } return $ data ; }
Provides the data that was submitted to this field, if applicable.

@return string
Provides the data that was submitted to this field if applicable .