← All changes
|
app/Services/FormBuilder/ValidationRuleSettings.php
+12
-0
6.2.5
→
6.2.14
View file →
| @@ -158,8 +158,20 @@ | ||
| 158 | 158 | 'type' => 'number', |
| 159 | 159 | 'label' => __('Max Value', 'fluentform'), |
| 160 | 160 | 'help_text' => __('Maximum value for the input field.', 'fluentform'), |
| 161 | 161 | ], |
| 162 | + 'max_selection' => [ | |
| 163 | + 'template' => 'inputText', | |
| 164 | + 'type' => 'number', | |
| 165 | + 'label' => __('Max Selection', 'fluentform'), | |
| 166 | + 'help_text' => __('The most options a user may select. Leave empty for no maximum.', 'fluentform'), | |
| 167 | + ], | |
| 168 | + 'min_selection' => [ | |
| 169 | + 'template' => 'inputText', | |
| 170 | + 'type' => 'number', | |
| 171 | + 'label' => __('Min Selection', 'fluentform'), | |
| 172 | + 'help_text' => __('The fewest options a user may select. Leave empty for no minimum. A user who selects nothing is treated as having skipped the field, so this does not make an optional field required.', 'fluentform'), | |
| 173 | + ], | |
| 162 | 174 | 'max_file_size' => [ |
| 163 | 175 | 'template' => 'maxFileSize', |
| 164 | 176 | 'label' => __('Max File Size', 'fluentform'), |
| 165 | 177 | 'help_text' => __('The file size limit uploaded by the user.', 'fluentform'), |