| Server IP : 198.54.126.161 / Your IP : 216.73.216.7 Web Server : LiteSpeed System : Linux premium12.web-hosting.com 4.18.0-553.94.1.lve.el8.x86_64 #1 SMP Thu Jan 22 12:37:22 UTC 2026 x86_64 User : amerfigf ( 898) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/WP-FormBuilder/admin/classes/fields/ |
Upload File : |
<?php
defined('ABSPATH') || die();
class HashFormFieldHidden extends HashFormFieldType {
protected $type = 'hidden';
public function field_settings_for_type() {
return array(
'max_width' => false,
'css' => false,
'description' => false,
'required' => false,
'label' => false
);
}
public function set_value_before_save($value) {
$val = $this->get_field();
return $val->default_value;
}
protected function input_html() {
if (is_admin() && !HashFormHelper::is_preview_page()) {
?>
<label class="hf-editor-field-label">
<span class="hf-editor-field-label-text"><?php esc_html_e('Hidden', 'hash-form'); ?></span>
</label>
<input type="text" <?php $this->field_attrs(); ?> />
<p class="howto">
<?php esc_html_e('Note: This field will not show in the form. Enter the value to be hidden.', 'hash-form'); ?>
</p>
<?php
} else {
?>
<input type="hidden" <?php $this->field_attrs(); ?> />
<?php
}
}
}