__( 'Number', 'ninja-forms' ), 'sidebar' => 'template_fields', 'edit_function' => 'ninja_forms_field_number_edit', 'edit_options' => array( array( 'type' => 'text', 'class' => 'medium-text', 'name' => 'number_min', 'label' => __( 'Minimum Value', 'ninja-forms' ), ), array( 'type' => 'text', 'class' => 'medium-text', 'name' => 'number_max', 'label' => __( 'Maximum Value', 'ninja-forms' ), ), array( 'type' => 'text', 'class' => 'medium-text', 'name' => 'number_step', 'label' => __( 'Step (amount to increment by)', 'ninja-forms' ), ), ), 'display_function' => 'ninja_forms_field_number_display', 'save_function' => '', 'group' => 'standard_fields', 'edit_label' => true, 'edit_label_pos' => true, 'edit_req' => true, 'edit_custom_class' => true, 'edit_help' => true, 'edit_desc' => true, 'edit_meta' => false, 'edit_conditional' => true, 'conditional' => array( 'value' => array( 'type' => 'textarea', ), ), ); ninja_forms_register_field( '_number', $args ); } add_action( 'init', 'ninja_forms_register_field_number' ); function ninja_forms_field_number_edit( $field_id, $data ) { $plugin_settings = nf_get_settings(); $custom = ''; // Default Value if( isset( $data['default_value'] ) ) { $default_value = $data['default_value']; } else { $default_value = ''; } if( $default_value == 'none' ) { $default_value = ''; } ?>