# weforms/1.6.19/includes/admin/class-pro-upgrade-fields.php

weForms – Easy Drag &amp; Drop Contact Form Builder For WordPress, version 1.6.19. 156 lines.

- Page: https://pluginprobe.com/plugins/weforms/1.6.19/code/includes/admin/class-pro-upgrade-fields.php
- Raw: https://pluginprobe.com/plugins/weforms/1.6.19/raw/includes/admin/class-pro-upgrade-fields.php
- Modified: 2020-10-20T13:26:26+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/weforms/1.6.19/code/includes/admin/class-pro-upgrade-fields.php#L10-L20`.

```php
<?php

/**
 * Address Field Class
 */
class WeForms_Form_Field_Address extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Address Field', 'weforms' );
        $this->input_type = 'address_field';
        $this->icon       = 'address-card-o';
    }
}

/**
 * Country Field Class
 */
class WeForms_Form_Field_Country extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Country List', 'weforms' );
        $this->input_type = 'country_list_field';
        $this->icon       = 'globe';
    }
}

/**
 * File Field Class
 */
class WeForms_Form_Field_File extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'File Upload', 'weforms' );
        $this->input_type = 'file_upload';
        $this->icon       = 'upload';
    }
}

/**
 * Text Field Class
 */
class WeForms_Form_Field_GMap extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Google Map', 'weforms' );
        $this->input_type = 'google_map';
        $this->icon       = 'map-marker';
    }
}

/**
 * Text Field Class
 */
class WeForms_Form_Field_Hook extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Action Hook', 'weforms' );
        $this->input_type = 'action_hook';
        $this->icon       = 'anchor';
    }
}

/**
 * Numeric Field Class
 */
class WeForms_Form_Field_Numeric extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Numeric Field', 'weforms' );
        $this->input_type = 'numeric_text_field';
        $this->icon       = 'hashtag';
    }
}

/**
 * Rating Field Class
 */
class WeForms_Form_Field_Rating extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Ratings', 'weforms' );
        $this->input_type = 'ratings';
        $this->icon       = 'star-half-o';
    }
}

/**
 * Rating Field Class
 */
class WeForms_Form_Field_Linear_Scale extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Linear Scale', 'weforms' );
        $this->input_type = 'linear_scale';
        $this->icon       = 'ellipsis-h';
    }
}

/**
 * Checkbox Grids Field Class
 */
class WeForms_Form_Field_Checkbox_Grid extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Checkbox Grid', 'weforms' );
        $this->input_type = 'checkbox_grid';
        $this->icon       = 'th';
    }
}

/**
 * Multiple Choice Grids Field Class
 */
class WeForms_Form_Field_Multiple_Choice_Grid extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Multiple Choice Grid', 'weforms' );
        $this->input_type = 'multiple_choice_grid';
        $this->icon       = 'braille';
    }
}

/**
 * Repeat Field Class
 */
class WeForms_Form_Field_Repeat extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Repeat Field', 'weforms' );
        $this->input_type = 'repeat_field';
        $this->icon       = 'text-width';
    }
}

/**
 * Shortcode Field Class
 */
class WeForms_Form_Field_Shortcode extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Shortcode', 'weforms' );
        $this->input_type = 'shortcode';
        $this->icon       = 'calendar-o';
    }
}

/**
 * Step Field Class
 */
class WeForms_Form_Field_Step extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Step Start', 'weforms' );
        $this->input_type = 'step_start';
        $this->icon       = 'step-forward';
    }
}

/**
 * TOC Field Class
 */
class WeForms_Form_Field_Toc extends WeForms_Form_Field_Pro {
    public function __construct() {
        $this->name       = __( 'Terms & Conditions', 'weforms' );
        $this->input_type = 'toc';
        $this->icon       = 'file-text';
    }
}

```
