public function GetFieldInput($id, &$params, $returnid)
 {
     $label = '';
     if (strlen($this->GetOption('label', '')) > 0) {
         $label = '&nbsp;<label for="' . $this->GetCSSId() . '">' . $this->GetOption('label') . '</label>';
     }
     if ($this->Value === false && $this->GetOption('is_checked', '0') == '1') {
         $this->Value = 't';
     }
     $js = $this->GetOption('javascript', '');
     return formbuilder_utils::create_input_checkbox($id, $this->GetCSSId(), 't', $this->Value, $js) . $label;
 }
 public function GetFieldInput($id, &$params, $returnid)
 {
     $mod = $this->form_ptr->module_ptr;
     $js = $this->GetOption('javascript', '');
     $val = '';
     $rq = '';
     $html5 = '';
     if ($this->GetOption('html5', '0') == '1') {
         $val = $this->Value[0];
         $html5 = ' placeholder="' . $this->GetOption('default') . '"';
     } else {
         $val = $this->Value[0] ? $this->Value[0] : $this->GetOption('default');
         if ($this->GetOption('clear_default', '0') == 1) {
             $js .= ' onfocus="if(this.value==this.defaultValue) this.value=\'\';" onblur="if(this.value==\'\') this.value=this.defaultValue;"';
         }
     }
     $input = formbuilder_utils::create_input_text($id, $this->GetCSSId(), $val, 25, 128, $js . $html5, 'email', $this->IsRequired());
     if ($this->GetOption('send_user_copy', 'n') == 'c') {
         $input .= formbuilder_utils::create_input_checkbox($id, $this->GetCSSId(), 1, 0, '', 1);
         $input .= formbuilder_utils::create_label($id, $this->GetCSSId('_1'), $this->GetOption('send_user_label', $mod->Lang('title_send_me_a_copy')));
     }
     return $input;
 }