public function getTemplateVars($values, $fieldNamePostfix = '', $idPrefix = '') { $ret = parent::getTemplateVars($values, $fieldNamePostfix, $idPrefix); //add additional hidden input field for frontend forms so we know the posted value is from frontend and formatted like current locale $ret['html'] .= "\n<input type=\"hidden\" name=\"" . $this->getFieldName() . $fieldNamePostfix . "-format\" value=\"fe\" />"; return $ret; }