concrete/src/Form/Service/Form.php
public function hidden($key, $value = null, $miscFields = [])
    {
        $requestValue = $this->getRequestValue($key);
        if ($requestValue !== false && (!is_array($requestValue))) {
            $value = $requestValue;
        }

        return '<input type="hidden" id="' . $key . '" name="' . $key . '"' . $this->parseMiscFields('', $miscFields) . ' value="' . $value . '" />';
    }
public function hidden($key, $value = null, $miscFields = [])
    {
        $requestValue = $this->getRequestValue($key);
        if ($requestValue !== false && (!is_array($requestValue))) {
            $value = $requestValue;
        }

        return '<input type="hidden" id="' . $key . '" name="' . $key . '"' . $this->parseMiscFields('', $miscFields) . ' value="' . $value . '" />';
    }
public function hidden ( $ key , $ value = null , $ miscFields = [ ] ) { $ requestValue = $ this -> getRequestValue ( $ key ) ; if ( $ requestValue !== false && ( ! is_array ( $ requestValue ) ) ) { $ value = $ requestValue ; } return '<input type="hidden" id="' . $ key . '" name="' . $ key . '"' . $ this -> parseMiscFields ( '' , $ miscFields ) . ' value="' . $ value . '" />' ; }
Creates a hidden form field.

@param string $key the name/id of the element
@param string $value the value of the element (overriden if we received some data in POST or GET)
@param array $miscFields additional fields appended to the element (a hash array of attributes name => value), possibly including 'class'

@return string
Creates a hidden form field .