PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/frm-fields/back-end/number-range.php +12 -1 6.26 → trunk View file →
@@ -1,5 +1,13 @@
1 1 <?php
2 +/**
3 + * Number range setting.
4 + *
5 + * @package Formidable
6 + *
7 + * @var array $field Field data including 'id', 'field_key', 'minnum', 'maxnum', 'step'.
8 + */
9 +
2 10 if ( ! defined( 'ABSPATH' ) ) {
3 11 die( 'You are not allowed to call this page directly.' );
4 12 }
5 13 ?>
@@ -25,6 +33,9 @@
25 33 <p class="frm4 frm_last frm_form_field frm-step frm-self-end">
26 34 <label for="frm_step_<?php echo esc_attr( $field['field_key'] ); ?>">
27 35 <?php esc_html_e( 'Step', 'formidable' ); ?>
28 36 </label>
29 - <input type="number" name="field_options[step_<?php echo absint( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['step'] ); ?>" id="frm_step_<?php echo esc_attr( $field['field_key'] ); ?>" />
37 + <?php
38 + // Make sure to use type="text" for step because we also support "any" as a value.
39 + ?>
40 + <input type="text" name="field_options[step_<?php echo absint( $field['id'] ); ?>]" value="<?php echo esc_attr( $field['step'] ); ?>" id="frm_step_<?php echo esc_attr( $field['field_key'] ); ?>" />
30 41 </p>