PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.14
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.14
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 3.6.65 All 196 releases
← All changes | app/Services/FormBuilder/ElementCustomization.php +15 -2 6.2.86.2.14 View file →
@@ -17,8 +17,9 @@
17 17 }
18 18
19 19 $fluentformDateFormats = (new \FluentForm\App\Services\FormBuilder\Components\DateTime())->getAvailableDateFormats();
20 20 $fluentformRatingIconOptions = \FluentForm\App\Services\FormBuilder\RatingIcon::getPresetOptions();
21 +$fluentformCanAuthorDateConfig = fluentformCanUnfilteredHTML();
21 22
22 23 $fluentformDateConfigSettings = [
23 24 'template' => 'inputTextarea',
24 25 'label' => __('Advanced Date Configuration', 'fluentform'),
@@ -24,16 +25,18 @@
24 25 'label' => __('Advanced Date Configuration', 'fluentform'),
25 26 'placeholder' => __('Advanced Date Configuration', 'fluentform'),
26 27 'rows' => (defined('FLUENTFORMPRO')) ? 10 : 2,
27 28 'start_text' => (defined('FLUENTFORMPRO')) ? 10 : 2,
28 - 'disabled' => ! defined('FLUENTFORMPRO'),
29 + 'disabled' => ! defined('FLUENTFORMPRO') || ! $fluentformCanAuthorDateConfig,
29 30 'css_class' => 'ff_code_editor',
30 - 'inline_help_text' => 'Only valid JS object will work. Please check <a target="_blank" href="https://wpmanageninja.com/docs/fluent-form/field-types/time-date#advanced_configaration">the documentation for available config options</a>',
31 + 'inline_help_text' => 'Only valid JS object will work. Please check <a target="_blank" href="https://docs.fluentforms.com/time-date-input-field">the documentation for available config options</a>',
31 32 'help_text' => __('You can write your own date configuration as JS object. Please write valid configuration as per flatpickr config.', 'fluentform'),
32 33 ];
33 34
34 35 if (! defined('FLUENTFORMPRO')) {
35 36 $fluentformDateConfigSettings['inline_help_text'] = 'Available on Fluent Forms Pro';
37 +} elseif (! $fluentformCanAuthorDateConfig) {
38 + $fluentformDateConfigSettings['inline_help_text'] = __('Only administrators can edit the Advanced Date Configuration.', 'fluentform');
36 39 }
37 40
38 41 $fluentformElementCustomizationSettings = [
39 42 'name' => [
@@ -910,8 +913,18 @@
910 913 'other_option_placeholder' => [
911 914 'template' => 'inputText',
912 915 'label' => __('Other Option Placeholder', 'fluentform'),
913 916 'help_text' => __('Placeholder text for the "Other" input field', 'fluentform'),
917 + 'dependency' => [
918 + 'depends_on' => 'settings/enable_other_option',
919 + 'value' => 'yes',
920 + 'operator' => '==',
921 + ],
922 + ],
923 + 'other_option_required_message' => [
924 + 'template' => 'inputText',
925 + 'label' => __('Other Option Required Message', 'fluentform'),
926 + 'help_text' => __('Error message shown when the "Other" option is selected but its text field is left empty.', 'fluentform'),
914 927 'dependency' => [
915 928 'depends_on' => 'settings/enable_other_option',
916 929 'value' => 'yes',
917 930 'operator' => '==',