| @@ -905,8 +905,9 @@ | ||
| 905 | 905 | 'randomize_options' => 'no', |
| 906 | 906 | 'enable_other_option' => 'no', |
| 907 | 907 | 'other_option_label' => __('Other', 'fluentform'), |
| 908 | 908 | 'other_option_placeholder' => __('Please specify...', 'fluentform'), |
| 909 | + 'other_option_required_message' => __('Please specify a value for the selected "Other" option', 'fluentform'), | |
| 909 | 910 | 'validation_rules' => [ |
| 910 | 911 | 'required' => [ |
| 911 | 912 | 'value' => false, |
| 912 | 913 | 'message' => $fluentformDefaultGlobalMessages['required'], |
| @@ -966,8 +967,9 @@ | ||
| 966 | 967 | 'randomize_options' => 'no', |
| 967 | 968 | 'enable_other_option' => 'no', |
| 968 | 969 | 'other_option_label' => __('Other', 'fluentform'), |
| 969 | 970 | 'other_option_placeholder' => __('Please specify...', 'fluentform'), |
| 971 | + 'other_option_required_message' => __('Please specify a value for the selected "Other" option', 'fluentform'), | |
| 970 | 972 | 'validation_rules' => [ |
| 971 | 973 | 'required' => [ |
| 972 | 974 | 'value' => false, |
| 973 | 975 | 'message' => $fluentformDefaultGlobalMessages['required'], |
| @@ -973,8 +975,21 @@ | ||
| 973 | 975 | 'message' => $fluentformDefaultGlobalMessages['required'], |
| 974 | 976 | 'global_message' => $fluentformDefaultGlobalMessages['required'], |
| 975 | 977 | 'global' => true, |
| 976 | 978 | ], |
| 979 | + // Key order is the panel's layout order. | |
| 980 | + 'max_selection' => [ | |
| 981 | + 'value' => '', | |
| 982 | + 'message' => $fluentformDefaultGlobalMessages['max_selection'], | |
| 983 | + 'global_message' => $fluentformDefaultGlobalMessages['max_selection'], | |
| 984 | + 'global' => true, | |
| 985 | + ], | |
| 986 | + 'min_selection' => [ | |
| 987 | + 'value' => '', | |
| 988 | + 'message' => $fluentformDefaultGlobalMessages['min_selection'], | |
| 989 | + 'global_message' => $fluentformDefaultGlobalMessages['min_selection'], | |
| 990 | + 'global' => true, | |
| 991 | + ], | |
| 977 | 992 | ], |
| 978 | 993 | 'conditional_logics' => [], |
| 979 | 994 | 'layout_class' => '', |
| 980 | 995 | ], |
| @@ -1026,8 +1041,22 @@ | ||
| 1026 | 1041 | 'message' => $fluentformDefaultGlobalMessages['required'], |
| 1027 | 1042 | 'global_message' => $fluentformDefaultGlobalMessages['required'], |
| 1028 | 1043 | 'global' => true, |
| 1029 | 1044 | ], |
| 1045 | + // settings.max_selection above stays as the legacy fallback; | |
| 1046 | + // only a rule can carry an editable error message. | |
| 1047 | + 'max_selection' => [ | |
| 1048 | + 'value' => '', | |
| 1049 | + 'message' => $fluentformDefaultGlobalMessages['max_selection'], | |
| 1050 | + 'global_message' => $fluentformDefaultGlobalMessages['max_selection'], | |
| 1051 | + 'global' => true, | |
| 1052 | + ], | |
| 1053 | + 'min_selection' => [ | |
| 1054 | + 'value' => '', | |
| 1055 | + 'message' => $fluentformDefaultGlobalMessages['min_selection'], | |
| 1056 | + 'global_message' => $fluentformDefaultGlobalMessages['min_selection'], | |
| 1057 | + 'global' => true, | |
| 1058 | + ], | |
| 1030 | 1059 | ], |
| 1031 | 1060 | 'conditional_logics' => [], |
| 1032 | 1061 | ], |
| 1033 | 1062 | 'editor_options' => [ |
| @@ -1622,9 +1651,9 @@ | ||
| 1622 | 1651 | 'conditional_logics' => [], |
| 1623 | 1652 | 'is_width_auto_calc' => true, |
| 1624 | 1653 | ], |
| 1625 | 1654 | 'columns' => [ |
| 1626 | - ['width' => '', 'left' => '', 'fields' => []], | |
| 1655 | + ['width' => 100, 'left' => '', 'fields' => []], | |
| 1627 | 1656 | ], |
| 1628 | 1657 | 'editor_options' => [ |
| 1629 | 1658 | 'title' => __('One Column Container', 'fluentform'), |
| 1630 | 1659 | 'icon_class' => 'dashicons dashicons-align-center', |