fieldData["values"] as $k => $value) {
                    $values .= $value . "\n";
                }
                ?>
                
                 
            
                
                fieldData["required"], 1, true); ?>
                       name="fieldInputName); ?>[required]"
                       id="fieldInputName); ?>[required]"/>
            
            
                
                fieldData["is_show_sform"], 1, true); ?>
                       name="fieldInputName); ?>[is_show_sform]"
                       id="fieldInputName); ?>[is_show_sform]"/>
            
            
                
                fieldData["is_show_on_comment"], 1, true); ?>
                       name="fieldInputName); ?>[is_show_on_comment]"
                       id="fieldInputName); ?>[is_show_on_comment]"/>
            
            
                
                fieldData["show_for_guests"], 1, true); ?>
                       name="fieldInputName); ?>[show_for_guests]"
                       id="fieldInputName); ?>[show_for_guests]"/>
            
            
                
                fieldData["show_for_users"], 1, true); ?>
                       name="fieldInputName); ?>[show_for_users]"
                       id="fieldInputName); ?>[show_for_users]"/>
            
            
            
         
        isShowForUser($data) || ($comment->comment_parent && !$data["is_show_sform"])) {
            return "";
        }
        $html     = "";
        $html .= "
" . esc_html($args["name"]) . "
  " . esc_html(apply_filters("wpdiscuz_custom_field_select", $value, $args)) . "
";
        $html .= "
 ";
        return $html;
    }
    public function validateFieldData($fieldName, $args, $options, $currentUser) {
        $value = Sanitizer::sanitize(INPUT_POST, $fieldName, FILTER_VALIDATE_INT);
        if (is_int($value) && $value > 0 && key_exists($value - 1, $args["values"])) {
            $value = $args["values"][$value - 1];
        } else {
            $value = "";
        }
        if ($this->isValidateRequired($args, $currentUser) && !$value && $args["required"]) {
            wp_die(esc_html__($args["name"], "wpdiscuz") . " : " . esc_html__("field is required!", "wpdiscuz"));
        }
        return $value;
    }
}