PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.15
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.15
6.2.15 6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 All 197 releases
← All changes | app/Services/FormBuilder/DefaultElements.php +67 -1 6.2.2 → 6.2.15 View file →
@@ -8,8 +8,9 @@
8 8 'input_name' => [
9 9 'index' => 0,
10 10 'element' => 'input_name',
11 11 'attributes' => [
12 + 'autocomplete' => '',
12 13 'name' => 'names',
13 14 'data-type' => 'name-element',
14 15 ],
15 16 'settings' => [
@@ -204,8 +205,9 @@
204 205 'input_email' => [
205 206 'index' => 1,
206 207 'element' => 'input_email',
207 208 'attributes' => [
209 + 'autocomplete' => '',
208 210 'type' => 'email',
209 211 'name' => 'email',
210 212 'value' => '',
211 213 'id' => '',
@@ -247,8 +249,9 @@
247 249 'input_text' => [
248 250 'index' => 2,
249 251 'element' => 'input_text',
250 252 'attributes' => [
253 + 'autocomplete' => '',
251 254 'type' => 'text',
252 255 'name' => 'input_text',
253 256 'value' => '',
254 257 'class' => '',
@@ -284,8 +287,9 @@
284 287 'input_mask' => [
285 288 'index' => 2,
286 289 'element' => 'input_text',
287 290 'attributes' => [
291 + 'autocomplete' => '',
288 292 'type' => 'text',
289 293 'name' => 'input_mask',
290 294 'data-mask' => '',
291 295 'value' => '',
@@ -323,8 +327,9 @@
323 327 'textarea' => [
324 328 'index' => 3,
325 329 'element' => 'textarea',
326 330 'attributes' => [
331 + 'autocomplete' => '',
327 332 'name' => 'description',
328 333 'value' => '',
329 334 'id' => '',
330 335 'class' => '',
@@ -360,8 +365,9 @@
360 365 'address' => [
361 366 'index' => 4,
362 367 'element' => 'address',
363 368 'attributes' => [
369 + 'autocomplete' => '',
364 370 'id' => '',
365 371 'class' => '',
366 372 'name' => 'address_1',
367 373 'data-type' => 'address-element',
@@ -753,8 +759,9 @@
753 759 'input_number' => [
754 760 'index' => 6,
755 761 'element' => 'input_number',
756 762 'attributes' => [
763 + 'autocomplete' => '',
757 764 'type' => 'number',
758 765 'name' => 'numeric_field',
759 766 'value' => '',
760 767 'id' => '',
@@ -819,8 +826,9 @@
819 826 'select' => [
820 827 'index' => 7,
821 828 'element' => 'select',
822 829 'attributes' => [
830 + 'autocomplete' => '',
823 831 'name' => 'dropdown',
824 832 'value' => '',
825 833 'id' => '',
826 834 'class' => '',
@@ -847,8 +855,9 @@
847 855 ],
848 856 'calc_value_status' => false,
849 857 'enable_image_input' => false,
850 858 'values_visible' => false,
859 + 'enable_option_groups' => 'no',
851 860 'enable_select_2' => 'no',
852 861 'validation_rules' => [
853 862 'required' => [
854 863 'value' => false,
@@ -904,8 +913,9 @@
904 913 'randomize_options' => 'no',
905 914 'enable_other_option' => 'no',
906 915 'other_option_label' => __('Other', 'fluentform'),
907 916 'other_option_placeholder' => __('Please specify...', 'fluentform'),
917 + 'other_option_required_message' => __('Please specify a value for the selected "Other" option', 'fluentform'),
908 918 'validation_rules' => [
909 919 'required' => [
910 920 'value' => false,
911 921 'message' => $fluentformDefaultGlobalMessages['required'],
@@ -965,8 +975,9 @@
965 975 'randomize_options' => 'no',
966 976 'enable_other_option' => 'no',
967 977 'other_option_label' => __('Other', 'fluentform'),
968 978 'other_option_placeholder' => __('Please specify...', 'fluentform'),
979 + 'other_option_required_message' => __('Please specify a value for the selected "Other" option', 'fluentform'),
969 980 'validation_rules' => [
970 981 'required' => [
971 982 'value' => false,
972 983 'message' => $fluentformDefaultGlobalMessages['required'],
@@ -972,8 +983,21 @@
972 983 'message' => $fluentformDefaultGlobalMessages['required'],
973 984 'global_message' => $fluentformDefaultGlobalMessages['required'],
974 985 'global' => true,
975 986 ],
987 + // Key order is the panel's layout order.
988 + 'max_selection' => [
989 + 'value' => '',
990 + 'message' => $fluentformDefaultGlobalMessages['max_selection'],
991 + 'global_message' => $fluentformDefaultGlobalMessages['max_selection'],
992 + 'global' => true,
993 + ],
994 + 'min_selection' => [
995 + 'value' => '',
996 + 'message' => $fluentformDefaultGlobalMessages['min_selection'],
997 + 'global_message' => $fluentformDefaultGlobalMessages['min_selection'],
998 + 'global' => true,
999 + ],
976 1000 ],
977 1001 'conditional_logics' => [],
978 1002 'layout_class' => '',
979 1003 ],
@@ -986,8 +1010,9 @@
986 1010 'multi_select' => [
987 1011 'index' => 10,
988 1012 'element' => 'select',
989 1013 'attributes' => [
1014 + 'autocomplete' => '',
990 1015 'name' => 'multi_select',
991 1016 'value' => [],
992 1017 'id' => '',
993 1018 'class' => '',
@@ -1016,8 +1041,9 @@
1016 1041 ],
1017 1042 ],
1018 1043 'calc_value_status' => false,
1019 1044 'enable_image_input' => false,
1045 + 'enable_option_groups' => 'no',
1020 1046 'randomize_options' => 'no',
1021 1047 'validation_rules' => [
1022 1048 'required' => [
1023 1049 'value' => false,
@@ -1024,8 +1050,22 @@
1024 1050 'message' => $fluentformDefaultGlobalMessages['required'],
1025 1051 'global_message' => $fluentformDefaultGlobalMessages['required'],
1026 1052 'global' => true,
1027 1053 ],
1054 + // settings.max_selection above stays as the legacy fallback;
1055 + // only a rule can carry an editable error message.
1056 + 'max_selection' => [
1057 + 'value' => '',
1058 + 'message' => $fluentformDefaultGlobalMessages['max_selection'],
1059 + 'global_message' => $fluentformDefaultGlobalMessages['max_selection'],
1060 + 'global' => true,
1061 + ],
1062 + 'min_selection' => [
1063 + 'value' => '',
1064 + 'message' => $fluentformDefaultGlobalMessages['min_selection'],
1065 + 'global_message' => $fluentformDefaultGlobalMessages['min_selection'],
1066 + 'global' => true,
1067 + ],
1028 1068 ],
1029 1069 'conditional_logics' => [],
1030 1070 ],
1031 1071 'editor_options' => [
@@ -1038,8 +1078,9 @@
1038 1078 'input_url' => [
1039 1079 'index' => 11,
1040 1080 'element' => 'input_url',
1041 1081 'attributes' => [
1082 + 'autocomplete' => '',
1042 1083 'type' => 'url',
1043 1084 'name' => 'url',
1044 1085 'value' => '',
1045 1086 'class' => '',
@@ -1078,8 +1119,9 @@
1078 1119 'input_date' => [
1079 1120 'index' => 13,
1080 1121 'element' => 'input_date',
1081 1122 'attributes' => [
1123 + 'autocomplete' => '',
1082 1124 'type' => 'text',
1083 1125 'name' => 'datetime',
1084 1126 'value' => '',
1085 1127 'id' => '',
@@ -1131,8 +1173,14 @@
1131 1173 'upload_file_location' => 'default',
1132 1174 'file_location_type' => 'follow_global_settings',
1133 1175 'help_message' => '',
1134 1176 'upload_bttn_ui' => '',
1177 + 'enable_crop' => 'no',
1178 + 'crop_mode' => 'ratio',
1179 + 'crop_ratio' => 'free',
1180 + 'enforce_image_dimensions' => 'no',
1181 + 'crop_width' => '',
1182 + 'crop_height' => '',
1135 1183 'validation_rules' => [
1136 1184 'required' => [
1137 1185 'value' => false,
1138 1186 'message' => $fluentformDefaultGlobalMessages['required'],
@@ -1291,8 +1339,13 @@
1291 1339 ],
1292 1340 'settings' => [
1293 1341 'label' => __('Ratings', 'fluentform'),
1294 1342 'show_text' => 'no',
1343 + 'icon_source' => 'preset',
1344 + 'icon_type' => 'star',
1345 + 'custom_icon_svg' => '',
1346 + 'inactive_color' => \FluentForm\App\Services\FormBuilder\RatingIcon::DEFAULT_INACTIVE_COLOR,
1347 + 'active_color' => \FluentForm\App\Services\FormBuilder\RatingIcon::DEFAULT_ACTIVE_COLOR,
1295 1348 'help_message' => '',
1296 1349 'label_placement' => '',
1297 1350 'admin_field_label' => '',
1298 1351 'container_class' => '',
@@ -1396,8 +1449,9 @@
1396 1449 'input_password' => [
1397 1450 'index' => 11,
1398 1451 'element' => 'input_password',
1399 1452 'attributes' => [
1453 + 'autocomplete' => '',
1400 1454 'type' => 'password',
1401 1455 'name' => 'password',
1402 1456 'value' => '',
1403 1457 'id' => '',
@@ -1609,9 +1663,9 @@
1609 1663 'conditional_logics' => [],
1610 1664 'is_width_auto_calc' => true,
1611 1665 ],
1612 1666 'columns' => [
1613 - ['width' => '', 'left' => '', 'fields' => []],
1667 + ['width' => 100, 'left' => '', 'fields' => []],
1614 1668 ],
1615 1669 'editor_options' => [
1616 1670 'title' => __('One Column Container', 'fluentform'),
1617 1671 'icon_class' => 'dashicons dashicons-align-center',
@@ -1842,8 +1896,20 @@
1842 1896 'editor_options' => [
1843 1897 'title' => __('Range Slider', 'fluentform'),
1844 1898 'icon_class' => 'dashicons dashicons-leftright',
1845 1899 'template' => 'inputSlider',
1900 + ],
1901 + ];
1902 + $fluentformDefaultElements['advanced']['input_ranking'] = [
1903 + 'index' => 21,
1904 + 'element' => 'input_ranking',
1905 + 'attributes' => [],
1906 + 'settings' => [],
1907 + 'options' => [],
1908 + 'editor_options' => [
1909 + 'title' => __('Ranking Field', 'fluentform'),
1910 + 'icon_class' => 'dashicons dashicons-sort',
1911 + 'template' => 'rankingField',
1846 1912 ],
1847 1913 ];
1848 1914 $fluentformDefaultElements['advanced']['color-picker'] = [
1849 1915 'index' => 16,