# supportcandy/2.3.1/includes/admin/custom_fields/custom_fields.php

SupportCandy – AI Customer Support Ticket System &amp; Live Chatbot Agent, version 2.3.1. 64 lines.

- Page: https://pluginprobe.com/plugins/supportcandy/2.3.1/code/includes/admin/custom_fields/custom_fields.php
- Raw: https://pluginprobe.com/plugins/supportcandy/2.3.1/raw/includes/admin/custom_fields/custom_fields.php
- Modified: 2022-07-21T08:20:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/supportcandy/2.3.1/code/includes/admin/custom_fields/custom_fields.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
  exit; // Exit if accessed directly
}

?>

<div class="wpsc-iso">
  
  <h3>
    <?php _e('Custom Fields','supportcandy');?>
    <a href="https://supportcandy.net/support-ticket/" class="btn btn-info wpsc-help-site-link" style="float:right;margin-right:1% !important;margin-top:-9px !important;"><?php _e('Need Help? Click Here!','supportcandy');?></a>
  </h3>
  
  <div class="wpsc_padding_space"></div>
  <div class="row" style="margin-bottom:20px;">
    <ul class="nav nav-pills wpsc_setting_pills">
      <li id="wpsc_ticket_custom_fields" role="presentation" class="active"><a href="javascript:wpsc_get_ticket_form_fields();"><?php _e('Ticket Form Fields','supportcandy');?></a></li>
      <li id="wpsc_agentonly_fields" role="presentation"><a href="javascript:wpsc_get_agentonly_fields();"><?php _e('Agent Only Fields','supportcandy');?></a></li>
      <?php do_action('wpsc_after_form_setting_pills');?>
    </ul>
  </div>
  <div style="width:95% !important;" class="row wpsc_setting_col2"></div>
  
  <div id="wpsc_alert_success" class="alert alert-success wpsc_alert" style="display:none;" role="alert">
    <i class="fa fa-check-circle"></i> <span class="wpsc_alert_text"></span>
  </div>
  
  <div id="wpsc_alert_error" class="alert alert-danger wpsc_alert" style="display:none;" role="alert">
    <i class="fa fa-exclamation-triangle"></i> <span class="wpsc_alert_text"></span>
  </div>
  
</div>

<!-- Pop-up snippet start -->
<div id="wpsc_popup_background" style="display:none;"></div>
<div id="wpsc_popup_container" style="display:none;">
  <div class="wpsc-iso">
    <div class="row">
      <div id="wpsc_popup" class="col-xs-10 col-xs-offset-1 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
        <div id="wpsc_popup_title" class="row"><h3><?php _e('Modal Title','supportcandy');?></h3></div>
        <div id="wpsc_popup_body" class="row"><?php _e('I am body!','supportcandy');?></div>
        <div id="wpsc_popup_footer" class="row">
          <button type="button" class="btn wpsc_popup_close"><?php _e('Close','supportcandy');?></button>
          <button type="button" class="btn wpsc_popup_action"><?php _e('Save Changes','supportcandy');?></button>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- Pop-up snippet end -->

<?php
add_action('admin_footer', 'wpsc_page_inline_script');
function wpsc_page_inline_script(){
  ?>
  <script>
    jQuery(document).ready(function(){
      wpsc_get_ticket_form_fields();
    });
  </script>
  <?php
}
?>
```
