PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.13
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.13
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
fluentform / app / Services / FormBuilder / DefaultElements.php

DefaultElements.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.13, at app/Services/FormBuilder/DefaultElements.php

1,955 lines 80.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') or die;
4
5 $fluentformDefaultGlobalMessages = \FluentForm\App\Helpers\Helper::getAllGlobalDefaultMessages();
6 $fluentformDefaultElements = [
7 'general' => [
8 'input_name' => [
9 'index' => 0,
10 'element' => 'input_name',
11 'attributes' => [
12 'name' => 'names',
13 'data-type' => 'name-element',
14 ],
15 'settings' => [
16 'container_class' => '',
17 'admin_field_label' => 'Name',
18 'conditional_logics' => [],
19 ],
20 'fields' => [
21 'first_name' => [
22 'element' => 'input_text',
23 'attributes' => [
24 'type' => 'text',
25 'name' => 'first_name',
26 'value' => '',
27 'id' => '',
28 'class' => '',
29 'placeholder' => __('Enter Your First Name', 'fluentform'),
30 'maxlength' => '',
31 ],
32 'settings' => [
33 'container_class' => '',
34 'label' => __('First Name', 'fluentform'),
35 'help_message' => '',
36 'visible' => true,
37 'label_placement' => 'top',
38 'label_placement_options' => [
39 [
40 'value' => '',
41 'label' => __('Default', 'fluentform'),
42 ],
43 [
44 'value' => 'top',
45 'label' => __('Top', 'fluentform'),
46 ],
47 [
48 'value' => 'right',
49 'label' => __('Right', 'fluentform'),
50 ],
51 [
52 'value' => 'bottom',
53 'label' => __('Bottom', 'fluentform'),
54 ],
55 [
56 'value' => 'left',
57 'label' => __('Left', 'fluentform'),
58 ],
59 [
60 'value' => 'hide_label',
61 'label' => __('Hidden', 'fluentform'),
62 ],
63 ],
64 'validation_rules' => [
65 'required' => [
66 'value' => false,
67 'message' => $fluentformDefaultGlobalMessages['required'],
68 'global_message' => $fluentformDefaultGlobalMessages['required'],
69 'global' => true,
70 ],
71 ],
72 'conditional_logics' => [],
73 ],
74 'editor_options' => [
75 'template' => 'inputText',
76 ],
77 ],
78 'middle_name' => [
79 'element' => 'input_text',
80 'attributes' => [
81 'type' => 'text',
82 'name' => 'middle_name',
83 'value' => '',
84 'id' => '',
85 'class' => '',
86 'placeholder' => __('Enter Your Middle Name', 'fluentform'),
87 'required' => false,
88 'maxlength' => '',
89 ],
90 'settings' => [
91 'container_class' => '',
92 'label' => __('Middle Name', 'fluentform'),
93 'help_message' => '',
94 'error_message' => '',
95 'label_placement' => 'top',
96 'label_placement_options' => [
97 [
98 'value' => '',
99 'label' => __('Default', 'fluentform'),
100 ],
101 [
102 'value' => 'top',
103 'label' => __('Top', 'fluentform'),
104 ],
105 [
106 'value' => 'right',
107 'label' => __('Right', 'fluentform'),
108 ],
109 [
110 'value' => 'bottom',
111 'label' => __('Bottom', 'fluentform'),
112 ],
113 [
114 'value' => 'left',
115 'label' => __('Left', 'fluentform'),
116 ],
117 [
118 'value' => 'hide_label',
119 'label' => __('Hidden', 'fluentform'),
120 ],
121 ],
122 'visible' => false,
123 'validation_rules' => [
124 'required' => [
125 'value' => false,
126 'message' => $fluentformDefaultGlobalMessages['required'],
127 'global_message' => $fluentformDefaultGlobalMessages['required'],
128 'global' => true,
129 ],
130 ],
131 'conditional_logics' => [],
132 ],
133 'editor_options' => [
134 'template' => 'inputText',
135 ],
136 ],
137 'last_name' => [
138 'element' => 'input_text',
139 'attributes' => [
140 'type' => 'text',
141 'name' => 'last_name',
142 'value' => '',
143 'id' => '',
144 'class' => '',
145 'placeholder' => __('Enter Your Last Name', 'fluentform'),
146 'required' => false,
147 'maxlength' => '',
148 ],
149 'settings' => [
150 'container_class' => '',
151 'label' => __('Last Name', 'fluentform'),
152 'help_message' => '',
153 'error_message' => '',
154 'label_placement' => 'top',
155 'label_placement_options' => [
156 [
157 'value' => '',
158 'label' => __('Default', 'fluentform'),
159 ],
160 [
161 'value' => 'top',
162 'label' => __('Top', 'fluentform'),
163 ],
164 [
165 'value' => 'right',
166 'label' => __('Right', 'fluentform'),
167 ],
168 [
169 'value' => 'bottom',
170 'label' => __('Bottom', 'fluentform'),
171 ],
172 [
173 'value' => 'left',
174 'label' => __('Left', 'fluentform'),
175 ],
176 [
177 'value' => 'hide_label',
178 'label' => __('Hidden', 'fluentform'),
179 ],
180 ],
181 'visible' => true,
182 'validation_rules' => [
183 'required' => [
184 'value' => false,
185 'message' => $fluentformDefaultGlobalMessages['required'],
186 'global_message' => $fluentformDefaultGlobalMessages['required'],
187 'global' => true,
188 ],
189 ],
190 'conditional_logics' => [],
191 ],
192 'editor_options' => [
193 'template' => 'inputText',
194 ],
195 ],
196 ],
197 'editor_options' => [
198 'title' => __('Name Fields', 'fluentform'),
199 'element' => 'name-fields',
200 'icon_class' => 'ff-edit-name',
201 'template' => 'nameFields',
202 ],
203 ],
204 'input_email' => [
205 'index' => 1,
206 'element' => 'input_email',
207 'attributes' => [
208 'type' => 'email',
209 'name' => 'email',
210 'value' => '',
211 'id' => '',
212 'class' => '',
213 'placeholder' => 'Email Address',
214 ],
215 'settings' => [
216 'container_class' => '',
217 'label' => __('Email', 'fluentform'),
218 'label_placement' => '',
219 'help_message' => '',
220 'admin_field_label' => '',
221 'prefix_label' => '',
222 'suffix_label' => '',
223 'validation_rules' => [
224 'required' => [
225 'value' => false,
226 'message' => $fluentformDefaultGlobalMessages['required'],
227 'global_message' => $fluentformDefaultGlobalMessages['required'],
228 'global' => true,
229 ],
230 'email' => [
231 'value' => true,
232 'message' => $fluentformDefaultGlobalMessages['email'],
233 'global_message' => $fluentformDefaultGlobalMessages['email'],
234 'global' => true
235 ],
236 ],
237 'conditional_logics' => [],
238 'is_unique' => 'no',
239 'unique_validation_message' => __('Email address need to be unique.', 'fluentform'),
240 ],
241 'editor_options' => [
242 'title' => __('Email', 'fluentform'),
243 'icon_class' => 'ff-edit-email',
244 'template' => 'inputText',
245 ],
246 ],
247 'input_text' => [
248 'index' => 2,
249 'element' => 'input_text',
250 'attributes' => [
251 'type' => 'text',
252 'name' => 'input_text',
253 'value' => '',
254 'class' => '',
255 'placeholder' => '',
256 'maxlength' => '',
257 ],
258 'settings' => [
259 'container_class' => '',
260 'label' => __('Text Input', 'fluentform'),
261 'label_placement' => '',
262 'admin_field_label' => '',
263 'help_message' => '',
264 'prefix_label' => '',
265 'suffix_label' => '',
266 'validation_rules' => [
267 'required' => [
268 'value' => false,
269 'message' => $fluentformDefaultGlobalMessages['required'],
270 'global_message' => $fluentformDefaultGlobalMessages['required'],
271 'global' => true,
272 ],
273 ],
274 'conditional_logics' => [],
275 'is_unique' => 'no',
276 'unique_validation_message' => __('This value need to be unique.', 'fluentform'),
277 ],
278 'editor_options' => [
279 'title' => __('Simple Text', 'fluentform'),
280 'icon_class' => 'ff-edit-text',
281 'template' => 'inputText',
282 ],
283 ],
284 'input_mask' => [
285 'index' => 2,
286 'element' => 'input_text',
287 'attributes' => [
288 'type' => 'text',
289 'name' => 'input_mask',
290 'data-mask' => '',
291 'value' => '',
292 'class' => '',
293 'placeholder' => '',
294 ],
295 'settings' => [
296 'container_class' => '',
297 'label' => __('Mask Input', 'fluentform'),
298 'label_placement' => '',
299 'admin_field_label' => '',
300 'help_message' => '',
301 'temp_mask' => '',
302 'prefix_label' => '',
303 'suffix_label' => '',
304 'mobile_keyboard_type' => '',
305 'data-mask-reverse' => 'no',
306 'data-clear-if-not-match' => 'no',
307 'validation_rules' => [
308 'required' => [
309 'value' => false,
310 'message' => $fluentformDefaultGlobalMessages['required'],
311 'global_message' => $fluentformDefaultGlobalMessages['required'],
312 'global' => true,
313 ],
314 ],
315 'conditional_logics' => [],
316 ],
317 'editor_options' => [
318 'title' => __('Mask Input', 'fluentform'),
319 'icon_class' => 'ff-edit-mask',
320 'template' => 'inputText',
321 ],
322 ],
323 'textarea' => [
324 'index' => 3,
325 'element' => 'textarea',
326 'attributes' => [
327 'name' => 'description',
328 'value' => '',
329 'id' => '',
330 'class' => '',
331 'placeholder' => '',
332 'rows' => 3,
333 'cols' => 2,
334 'maxlength' => '',
335 ],
336 'settings' => [
337 'container_class' => '',
338 'label' => __('Textarea', 'fluentform'),
339 'admin_field_label' => '',
340 'label_placement' => '',
341 'help_message' => '',
342 'prefix_label' => '',
343 'suffix_label' => '',
344 'validation_rules' => [
345 'required' => [
346 'value' => false,
347 'message' => $fluentformDefaultGlobalMessages['required'],
348 'global_message' => $fluentformDefaultGlobalMessages['required'],
349 'global' => true,
350 ],
351 ],
352 'conditional_logics' => [],
353 ],
354 'editor_options' => [
355 'title' => __('Text Area', 'fluentform'),
356 'icon_class' => 'ff-edit-textarea',
357 'template' => 'inputTextarea',
358 ],
359 ],
360 'address' => [
361 'index' => 4,
362 'element' => 'address',
363 'attributes' => [
364 'id' => '',
365 'class' => '',
366 'name' => 'address_1',
367 'data-type' => 'address-element',
368 ],
369 'settings' => [
370 'label' => __('Address', 'fluentform'),
371 'enable_g_autocomplete' => 'no',
372 'autocomplete_provider' => 'none',
373 'enable_auto_locate' => 'on_click',
374 'admin_field_label' => 'Address',
375 'field_order' => [
376 ['id' => 1, 'value' => 'address_line_1'],
377 ['id' => 2, 'value' => 'address_line_2'],
378 ['id' => 3, 'value' => 'city'],
379 ['id' => 4, 'value' => 'state'],
380 ['id' => 5, 'value' => 'zip'],
381 ['id' => 6, 'value' => 'country'],
382 ],
383 'conditional_logics' => [],
384 ],
385 'fields' => [
386 'address_line_1' => [
387 'element' => 'input_text',
388 'attributes' => [
389 'type' => 'text',
390 'name' => 'address_line_1',
391 'value' => '',
392 'id' => '',
393 'class' => '',
394 'placeholder' => __('Address Line 1', 'fluentform'),
395 ],
396 'settings' => [
397 'container_class' => '',
398 'label' => __('Address Line 1', 'fluentform'),
399 'label_placement' => '',
400 'label_placement_options' => [
401 [
402 'value' => '',
403 'label' => __('Default', 'fluentform'),
404 ],
405 [
406 'value' => 'top',
407 'label' => __('Top', 'fluentform'),
408 ],
409 [
410 'value' => 'right',
411 'label' => __('Right', 'fluentform'),
412 ],
413 [
414 'value' => 'bottom',
415 'label' => __('Bottom', 'fluentform'),
416 ],
417 [
418 'value' => 'left',
419 'label' => __('Left', 'fluentform'),
420 ],
421 [
422 'value' => 'hide_label',
423 'label' => __('Hidden', 'fluentform'),
424 ],
425 ],
426 'admin_field_label' => '',
427 'help_message' => '',
428 'visible' => true,
429 'validation_rules' => [
430 'required' => [
431 'value' => false,
432 'message' => $fluentformDefaultGlobalMessages['required'],
433 'global_message' => $fluentformDefaultGlobalMessages['required'],
434 'global' => true,
435 ],
436 ],
437 'conditional_logics' => [],
438 ],
439 'editor_options' => [
440 'template' => 'inputText',
441 ],
442 ],
443 'address_line_2' => [
444 'element' => 'input_text',
445 'attributes' => [
446 'type' => 'text',
447 'name' => 'address_line_2',
448 'value' => '',
449 'id' => '',
450 'class' => '',
451 'placeholder' => __('Address Line 2', 'fluentform'),
452 ],
453 'settings' => [
454 'container_class' => '',
455 'label' => __('Address Line 2', 'fluentform'),
456 'label_placement' => '',
457 'label_placement_options' => [
458 [
459 'value' => '',
460 'label' => __('Default', 'fluentform'),
461 ],
462 [
463 'value' => 'top',
464 'label' => __('Top', 'fluentform'),
465 ],
466 [
467 'value' => 'right',
468 'label' => __('Right', 'fluentform'),
469 ],
470 [
471 'value' => 'bottom',
472 'label' => __('Bottom', 'fluentform'),
473 ],
474 [
475 'value' => 'left',
476 'label' => __('Left', 'fluentform'),
477 ],
478 [
479 'value' => 'hide_label',
480 'label' => __('Hide Label', 'fluentform'),
481 ],
482 ],
483 'admin_field_label' => '',
484 'help_message' => '',
485 'visible' => true,
486 'validation_rules' => [
487 'required' => [
488 'value' => false,
489 'message' => $fluentformDefaultGlobalMessages['required'],
490 'global_message' => $fluentformDefaultGlobalMessages['required'],
491 'global' => true,
492 ],
493 ],
494 'conditional_logics' => [],
495 ],
496 'editor_options' => [
497 'template' => 'inputText',
498 ],
499 ],
500 'city' => [
501 'element' => 'input_text',
502 'attributes' => [
503 'type' => 'text',
504 'name' => 'city',
505 'value' => '',
506 'id' => '',
507 'class' => '',
508 'placeholder' => __('City', 'fluentform'),
509 ],
510 'settings' => [
511 'container_class' => '',
512 'label' => __('City', 'fluentform'),
513 'label_placement' => '',
514 'label_placement_options' => [
515 [
516 'value' => '',
517 'label' => __('Default', 'fluentform'),
518 ],
519 [
520 'value' => 'top',
521 'label' => __('Top', 'fluentform'),
522 ],
523 [
524 'value' => 'right',
525 'label' => __('Right', 'fluentform'),
526 ],
527 [
528 'value' => 'bottom',
529 'label' => __('Bottom', 'fluentform'),
530 ],
531 [
532 'value' => 'left',
533 'label' => __('Left', 'fluentform'),
534 ],
535 [
536 'value' => 'hide_label',
537 'label' => __('Hide Label', 'fluentform'),
538 ],
539 ],
540 'admin_field_label' => '',
541 'help_message' => '',
542 'error_message' => '',
543 'visible' => true,
544 'validation_rules' => [
545 'required' => [
546 'value' => false,
547 'message' => $fluentformDefaultGlobalMessages['required'],
548 'global_message' => $fluentformDefaultGlobalMessages['required'],
549 'global' => true,
550 ],
551 ],
552 'conditional_logics' => [],
553 ],
554 'editor_options' => [
555 'template' => 'inputText',
556 ],
557 ],
558 'state' => [
559 'element' => 'input_text',
560 'attributes' => [
561 'type' => 'text',
562 'name' => 'state',
563 'value' => '',
564 'id' => '',
565 'class' => '',
566 'placeholder' => __('State', 'fluentform'),
567 ],
568 'settings' => [
569 'container_class' => '',
570 'label' => __('State', 'fluentform'),
571 'label_placement' => '',
572 'label_placement_options' => [
573 [
574 'value' => '',
575 'label' => __('Default', 'fluentform'),
576 ],
577 [
578 'value' => 'top',
579 'label' => __('Top', 'fluentform'),
580 ],
581 [
582 'value' => 'right',
583 'label' => __('Right', 'fluentform'),
584 ],
585 [
586 'value' => 'bottom',
587 'label' => __('Bottom', 'fluentform'),
588 ],
589 [
590 'value' => 'left',
591 'label' => __('Left', 'fluentform'),
592 ],
593 [
594 'value' => 'hide_label',
595 'label' => __('Hide Label', 'fluentform'),
596 ],
597 ],
598 'admin_field_label' => '',
599 'help_message' => '',
600 'error_message' => '',
601 'visible' => true,
602 'validation_rules' => [
603 'required' => [
604 'value' => false,
605 'message' => $fluentformDefaultGlobalMessages['required'],
606 'global_message' => $fluentformDefaultGlobalMessages['required'],
607 'global' => true,
608 ],
609 ],
610 'conditional_logics' => [],
611 ],
612 'editor_options' => [
613 'template' => 'inputText',
614 ],
615 ],
616 'zip' => [
617 'element' => 'input_text',
618 'attributes' => [
619 'type' => 'text',
620 'name' => 'zip',
621 'value' => '',
622 'id' => '',
623 'class' => '',
624 'placeholder' => __('Zip', 'fluentform'),
625 'required' => false,
626 ],
627 'settings' => [
628 'container_class' => '',
629 'label' => __('Zip Code', 'fluentform'),
630 'label_placement' => '',
631 'label_placement_options' => [
632 [
633 'value' => '',
634 'label' => __('Default', 'fluentform'),
635 ],
636 [
637 'value' => 'top',
638 'label' => __('Top', 'fluentform'),
639 ],
640 [
641 'value' => 'right',
642 'label' => __('Right', 'fluentform'),
643 ],
644 [
645 'value' => 'bottom',
646 'label' => __('Bottom', 'fluentform'),
647 ],
648 [
649 'value' => 'left',
650 'label' => __('Left', 'fluentform'),
651 ],
652 [
653 'value' => 'hide_label',
654 'label' => __('Hide Label', 'fluentform'),
655 ],
656 ],
657 'admin_field_label' => '',
658 'help_message' => '',
659 'error_message' => '',
660 'visible' => true,
661 'validation_rules' => [
662 'required' => [
663 'value' => false,
664 'message' => $fluentformDefaultGlobalMessages['required'],
665 'global_message' => $fluentformDefaultGlobalMessages['required'],
666 'global' => true,
667 ],
668 ],
669 'conditional_logics' => [],
670 ],
671 'editor_options' => [
672 'template' => 'inputText',
673 ],
674 ],
675 'country' => [
676 'element' => 'select_country',
677 'attributes' => [
678 'name' => 'country',
679 'value' => '',
680 'id' => '',
681 'class' => '',
682 'placeholder' => __('Select Country', 'fluentform'),
683 'required' => false,
684 ],
685 'settings' => [
686 'container_class' => '',
687 'label' => __('Country', 'fluentform'),
688 'label_placement' => '',
689 'label_placement_options' => [
690 [
691 'value' => '',
692 'label' => __('Default', 'fluentform'),
693 ],
694 [
695 'value' => 'top',
696 'label' => __('Top', 'fluentform'),
697 ],
698 [
699 'value' => 'right',
700 'label' => __('Right', 'fluentform'),
701 ],
702 [
703 'value' => 'bottom',
704 'label' => __('Bottom', 'fluentform'),
705 ],
706 [
707 'value' => 'left',
708 'label' => __('Left', 'fluentform'),
709 ],
710 [
711 'value' => 'hide_label',
712 'label' => __('Hide Label', 'fluentform'),
713 ],
714 ],
715 'admin_field_label' => '',
716 'help_message' => '',
717 'error_message' => '',
718 'visible' => true,
719 'validation_rules' => [
720 'required' => [
721 'value' => false,
722 'message' => $fluentformDefaultGlobalMessages['required'],
723 'global_message' => $fluentformDefaultGlobalMessages['required'],
724 'global' => true,
725 ],
726 ],
727 'country_list' => [
728 'active_list' => 'all',
729 'visible_list' => [],
730 'hidden_list' => [],
731 ],
732 'conditional_logics' => [],
733 ],
734 'options' => [
735 'US' => 'US of America',
736 'UK' => 'United Kingdom',
737 ],
738 'editor_options' => [
739 'title' => __('Country List', 'fluentform'),
740 'element' => 'country-list',
741 'icon_class' => 'icon-text-width',
742 'template' => 'selectCountry',
743 ],
744 ],
745 ],
746 'editor_options' => [
747 'title' => __('Address Fields', 'fluentform'),
748 'element' => 'address-fields',
749 'icon_class' => 'ff-edit-address',
750 'template' => 'addressFields',
751 ],
752 ],
753 'input_number' => [
754 'index' => 6,
755 'element' => 'input_number',
756 'attributes' => [
757 'type' => 'number',
758 'name' => 'numeric_field',
759 'value' => '',
760 'id' => '',
761 'class' => '',
762 'placeholder' => '',
763 ],
764 'settings' => [
765 'container_class' => '',
766 'label' => __('Numeric Field', 'fluentform'),
767 'admin_field_label' => '',
768 'label_placement' => '',
769 'help_message' => '',
770 'number_step' => '',
771 'prefix_label' => '',
772 'suffix_label' => '',
773 'numeric_formatter' => '',
774 'mobile_keyboard_type_number' => '',
775 'validation_rules' => [
776 'required' => [
777 'value' => false,
778 'message' => $fluentformDefaultGlobalMessages['required'],
779 'global_message' => $fluentformDefaultGlobalMessages['required'],
780 'global' => true,
781 ],
782 'numeric' => [
783 'value' => true,
784 'message' => $fluentformDefaultGlobalMessages['numeric'],
785 'global_message' => $fluentformDefaultGlobalMessages['numeric'],
786 'global' => true
787 ],
788 'min' => [
789 'value' => '',
790 'message' => $fluentformDefaultGlobalMessages['min'],
791 'global_message' => $fluentformDefaultGlobalMessages['min'],
792 'global' => true
793 ],
794 'max' => [
795 'value' => '',
796 'message' => $fluentformDefaultGlobalMessages['max'],
797 'global_message' => $fluentformDefaultGlobalMessages['max'],
798 'global' => true
799 ],
800 'digits' => [
801 'value' => '',
802 'message' => $fluentformDefaultGlobalMessages['digits'],
803 'global_message' => $fluentformDefaultGlobalMessages['digits'],
804 'global' => true
805 ],
806 ],
807 'conditional_logics' => [],
808 'calculation_settings' => [
809 'status' => false,
810 'formula' => '',
811 ],
812 ],
813 'editor_options' => [
814 'title' => __('Numeric Field', 'fluentform'),
815 'icon_class' => 'ff-edit-numeric',
816 'template' => 'inputText',
817 ],
818 ],
819 'select' => [
820 'index' => 7,
821 'element' => 'select',
822 'attributes' => [
823 'name' => 'dropdown',
824 'value' => '',
825 'id' => '',
826 'class' => '',
827 ],
828 'settings' => [
829 'dynamic_default_value' => '',
830 'label' => __('Dropdown', 'fluentform'),
831 'admin_field_label' => '',
832 'help_message' => '',
833 'container_class' => '',
834 'label_placement' => '',
835 'placeholder' => '- Select -',
836 'advanced_options' => [
837 [
838 'label' => 'Option 1',
839 'value' => 'Option 1',
840 'calc_value' => '',
841 ],
842 [
843 'label' => 'Option 2',
844 'value' => 'Option 2',
845 'calc_value' => '',
846 ],
847 ],
848 'calc_value_status' => false,
849 'enable_image_input' => false,
850 'values_visible' => false,
851 'enable_option_groups' => 'no',
852 'enable_select_2' => 'no',
853 'validation_rules' => [
854 'required' => [
855 'value' => false,
856 'message' => $fluentformDefaultGlobalMessages['required'],
857 'global_message' => $fluentformDefaultGlobalMessages['required'],
858 'global' => true,
859 ],
860 ],
861 'conditional_logics' => [],
862 'randomize_options' => 'no',
863 ],
864 'editor_options' => [
865 'title' => __('Dropdown', 'fluentform'),
866 'icon_class' => 'ff-edit-dropdown',
867 'element' => 'select',
868 'template' => 'select',
869 ],
870 ],
871 'input_radio' => [
872 'index' => 8,
873 'element' => 'input_radio',
874 'attributes' => [
875 'type' => 'radio',
876 'name' => 'input_radio',
877 'value' => '',
878 ],
879 'settings' => [
880 'dynamic_default_value' => '',
881 'container_class' => '',
882 'label' => __('Radio Field', 'fluentform'),
883 'admin_field_label' => '',
884 'label_placement' => '',
885 'display_type' => '',
886 'help_message' => '',
887 'randomize_options' => 'no',
888 'advanced_options' => [
889 [
890 'label' => 'Yes',
891 'value' => 'yes',
892 'calc_value' => '',
893 'image' => '',
894 ],
895 [
896 'label' => 'No',
897 'value' => 'no',
898 'calc_value' => '',
899 'image' => '',
900 ],
901 ],
902 'calc_value_status' => false,
903 'enable_image_input' => false,
904 'values_visible' => false,
905 'randomize_options' => 'no',
906 'enable_other_option' => 'no',
907 'other_option_label' => __('Other', 'fluentform'),
908 'other_option_placeholder' => __('Please specify...', 'fluentform'),
909 'other_option_required_message' => __('Please specify a value for the selected "Other" option', 'fluentform'),
910 'validation_rules' => [
911 'required' => [
912 'value' => false,
913 'message' => $fluentformDefaultGlobalMessages['required'],
914 'global_message' => $fluentformDefaultGlobalMessages['required'],
915 'global' => true,
916 ],
917 ],
918 'conditional_logics' => [],
919 'layout_class' => '',
920 ],
921 'editor_options' => [
922 'title' => __('Radio Field', 'fluentform'),
923 'icon_class' => 'ff-edit-radio',
924 'element' => 'input-radio',
925 'template' => 'inputCheckable',
926 ],
927 ],
928 'input_checkbox' => [
929 'index' => 9,
930 'element' => 'input_checkbox',
931 'attributes' => [
932 'type' => 'checkbox',
933 'name' => 'checkbox',
934 'value' => [],
935 ],
936 'settings' => [
937 'dynamic_default_value' => '',
938 'container_class' => '',
939 'label' => __('Checkbox Field', 'fluentform'),
940 'admin_field_label' => '',
941 'label_placement' => '',
942 'display_type' => '',
943 'help_message' => '',
944 'advanced_options' => [
945 [
946 'label' => 'Item 1',
947 'value' => 'Item 1',
948 'calc_value' => '',
949 'image' => '',
950 ],
951 [
952 'label' => 'Item 2',
953 'value' => 'Item 2',
954 'calc_value' => '',
955 'image' => '',
956 ],
957 [
958 'label' => 'Item 3',
959 'value' => 'Item 3',
960 'calc_value' => '',
961 'image' => '',
962 ],
963 ],
964 'calc_value_status' => false,
965 'enable_image_input' => false,
966 'values_visible' => false,
967 'randomize_options' => 'no',
968 'enable_other_option' => 'no',
969 'other_option_label' => __('Other', 'fluentform'),
970 'other_option_placeholder' => __('Please specify...', 'fluentform'),
971 'other_option_required_message' => __('Please specify a value for the selected "Other" option', 'fluentform'),
972 'validation_rules' => [
973 'required' => [
974 'value' => false,
975 'message' => $fluentformDefaultGlobalMessages['required'],
976 'global_message' => $fluentformDefaultGlobalMessages['required'],
977 'global' => true,
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 ],
992 ],
993 'conditional_logics' => [],
994 'layout_class' => '',
995 ],
996 'editor_options' => [
997 'title' => __('Checkbox', 'fluentform'),
998 'icon_class' => 'ff-edit-checkbox-1',
999 'template' => 'inputCheckable',
1000 ],
1001 ],
1002 'multi_select' => [
1003 'index' => 10,
1004 'element' => 'select',
1005 'attributes' => [
1006 'name' => 'multi_select',
1007 'value' => [],
1008 'id' => '',
1009 'class' => '',
1010 'placeholder' => '',
1011 'multiple' => true,
1012 ],
1013 'settings' => [
1014 'dynamic_default_value' => '',
1015 'help_message' => '',
1016 'container_class' => '',
1017 'label' => __('Multiselect', 'fluentform'),
1018 'admin_field_label' => '',
1019 'label_placement' => '',
1020 'placeholder' => '',
1021 'max_selection' => '',
1022 'advanced_options' => [
1023 [
1024 'label' => 'Option 1',
1025 'value' => 'Option 1',
1026 'calc_value' => '',
1027 ],
1028 [
1029 'label' => 'Option 2',
1030 'value' => 'Option 2',
1031 'calc_value' => '',
1032 ],
1033 ],
1034 'calc_value_status' => false,
1035 'enable_image_input' => false,
1036 'enable_option_groups' => 'no',
1037 'randomize_options' => 'no',
1038 'validation_rules' => [
1039 'required' => [
1040 'value' => false,
1041 'message' => $fluentformDefaultGlobalMessages['required'],
1042 'global_message' => $fluentformDefaultGlobalMessages['required'],
1043 'global' => true,
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 ],
1059 ],
1060 'conditional_logics' => [],
1061 ],
1062 'editor_options' => [
1063 'title' => __('Multiple Choice', 'fluentform'),
1064 'icon_class' => 'ff-edit-multiple-choice',
1065 'element' => 'select',
1066 'template' => 'select',
1067 ],
1068 ],
1069 'input_url' => [
1070 'index' => 11,
1071 'element' => 'input_url',
1072 'attributes' => [
1073 'type' => 'url',
1074 'name' => 'url',
1075 'value' => '',
1076 'class' => '',
1077 'placeholder' => '',
1078 ],
1079 'settings' => [
1080 'container_class' => '',
1081 'label' => __('URL', 'fluentform'),
1082 'admin_field_label' => '',
1083 'label_placement' => '',
1084 'help_message' => '',
1085 'prefix_label' => '',
1086 'suffix_label' => '',
1087 'validation_rules' => [
1088 'required' => [
1089 'value' => false,
1090 'message' => $fluentformDefaultGlobalMessages['required'],
1091 'global_message' => $fluentformDefaultGlobalMessages['required'],
1092 'global' => true,
1093 ],
1094 'url' => [
1095 'value' => true,
1096 'message' => $fluentformDefaultGlobalMessages['url'],
1097 'global_message' => $fluentformDefaultGlobalMessages['url'],
1098 'global' => true
1099 ],
1100 ],
1101 'conditional_logics' => [],
1102 ],
1103 'editor_options' => [
1104 'title' => __('Website URL', 'fluentform'),
1105 'icon_class' => 'ff-edit-website-url',
1106 'template' => 'inputText',
1107 ],
1108 ],
1109 'input_date' => [
1110 'index' => 13,
1111 'element' => 'input_date',
1112 'attributes' => [
1113 'type' => 'text',
1114 'name' => 'datetime',
1115 'value' => '',
1116 'id' => '',
1117 'class' => '',
1118 'placeholder' => '',
1119 ],
1120 'settings' => [
1121 'container_class' => '',
1122 'label' => __('Date / Time', 'fluentform'),
1123 'admin_field_label' => '',
1124 'label_placement' => '',
1125 'date_config' => '',
1126 'date_format' => 'd/m/Y',
1127 'help_message' => '',
1128 'is_time_enabled' => true,
1129 'validation_rules' => [
1130 'required' => [
1131 'value' => false,
1132 'message' => $fluentformDefaultGlobalMessages['required'],
1133 'global_message' => $fluentformDefaultGlobalMessages['required'],
1134 'global' => true,
1135 ],
1136 ],
1137 'conditional_logics' => [],
1138 ],
1139 'editor_options' => [
1140 'title' => __('Time & Date', 'fluentform'),
1141 'icon_class' => 'ff-edit-date',
1142 'template' => 'inputText',
1143 ],
1144 ],
1145 'input_image' => [
1146 'index' => 15,
1147 'element' => 'input_image',
1148 'attributes' => [
1149 'type' => 'file',
1150 'name' => 'image-upload',
1151 'value' => '',
1152 'id' => '',
1153 'class' => '',
1154 'accept' => 'image/*',
1155 ],
1156 'settings' => [
1157 'container_class' => '',
1158 'label' => __('Image Upload', 'fluentform'),
1159 'admin_field_label' => '',
1160 'label_placement' => '',
1161 'btn_text' => 'Choose File',
1162 'upload_file_location' => 'default',
1163 'file_location_type' => 'follow_global_settings',
1164 'help_message' => '',
1165 'upload_bttn_ui' => '',
1166 'enable_crop' => 'no',
1167 'crop_mode' => 'ratio',
1168 'crop_ratio' => 'free',
1169 'enforce_image_dimensions' => 'no',
1170 'crop_width' => '',
1171 'crop_height' => '',
1172 'validation_rules' => [
1173 'required' => [
1174 'value' => false,
1175 'message' => $fluentformDefaultGlobalMessages['required'],
1176 'global_message' => $fluentformDefaultGlobalMessages['required'],
1177 'global' => true,
1178 ],
1179 'max_file_size' => [
1180 'value' => 1048576,
1181 '_valueFrom' => 'MB',
1182 'message' => $fluentformDefaultGlobalMessages['max_file_size'],
1183 'global_message' => $fluentformDefaultGlobalMessages['max_file_size'],
1184 'global' => true
1185 ],
1186 'max_file_count' => [
1187 'value' => 1,
1188 'message' => $fluentformDefaultGlobalMessages['max_file_count'],
1189 'global_message' => $fluentformDefaultGlobalMessages['max_file_count'],
1190 'global' => true
1191 ],
1192 'allowed_image_types' => [
1193 'value' => [],
1194 'message' => $fluentformDefaultGlobalMessages['allowed_image_types'],
1195 'global_message' => $fluentformDefaultGlobalMessages['allowed_image_types'],
1196 'global' => true
1197 ],
1198 ],
1199 'conditional_logics' => [],
1200 ],
1201 'editor_options' => [
1202 'title' => __('Image Upload', 'fluentform'),
1203 'icon_class' => 'ff-edit-images',
1204 'template' => 'inputFile',
1205 ],
1206 ],
1207 'input_file' => [
1208 'index' => 16,
1209 'element' => 'input_file',
1210 'attributes' => [
1211 'type' => 'file',
1212 'name' => 'file-upload',
1213 'value' => '',
1214 'id' => '',
1215 'class' => '',
1216 ],
1217 'settings' => [
1218 'container_class' => '',
1219 'label' => __('File Upload', 'fluentform'),
1220 'admin_field_label' => '',
1221 'label_placement' => '',
1222 'btn_text' => 'Choose File',
1223 'help_message' => '',
1224 'upload_file_location' => 'default',
1225 'file_location_type' => 'follow_global_settings',
1226 'upload_bttn_ui' => '',
1227 'validation_rules' => [
1228 'required' => [
1229 'value' => false,
1230 'message' => $fluentformDefaultGlobalMessages['required'],
1231 'global_message' => $fluentformDefaultGlobalMessages['required'],
1232 'global' => true,
1233 ],
1234 'max_file_size' => [
1235 'value' => 1048576,
1236 '_valueFrom' => 'MB',
1237 'message' => $fluentformDefaultGlobalMessages['max_file_size'],
1238 'global_message' => $fluentformDefaultGlobalMessages['max_file_size'],
1239 'global' => true
1240 ],
1241 'max_file_count' => [
1242 'value' => 1,
1243 'message' => $fluentformDefaultGlobalMessages['max_file_count'],
1244 'global_message' => $fluentformDefaultGlobalMessages['max_file_count'],
1245 'global' => true
1246 ],
1247 'allowed_file_types' => [
1248 'value' => [],
1249 'message' => $fluentformDefaultGlobalMessages['allowed_image_types'],
1250 'global_message' => $fluentformDefaultGlobalMessages['allowed_image_types'],
1251 'global' => true
1252 ],
1253 ],
1254 'conditional_logics' => [],
1255 ],
1256 'editor_options' => [
1257 'title' => __('File Upload', 'fluentform'),
1258 'icon_class' => 'ff-edit-files',
1259 'template' => 'inputFile',
1260 ],
1261 ],
1262 'select_country' => [
1263 'index' => 5,
1264 'element' => 'select_country',
1265 'attributes' => [
1266 'name' => 'country-list',
1267 'value' => '',
1268 'id' => '',
1269 'class' => '',
1270 'placeholder' => __('Select Country', 'fluentform'),
1271 ],
1272 'settings' => [
1273 'container_class' => '',
1274 'label' => __('Country', 'fluentform'),
1275 'admin_field_label' => '',
1276 'label_placement' => '',
1277 'help_message' => '',
1278 'enable_select_2' => 'no',
1279 'validation_rules' => [
1280 'required' => [
1281 'value' => false,
1282 'message' => $fluentformDefaultGlobalMessages['required'],
1283 'global_message' => $fluentformDefaultGlobalMessages['required'],
1284 'global' => true,
1285 ],
1286 ],
1287 'country_list' => [
1288 'active_list' => 'all',
1289 'visible_list' => [],
1290 'hidden_list' => [],
1291 ],
1292 'conditional_logics' => [],
1293 ],
1294 'options' => [
1295 'US' => 'United States of America',
1296 ],
1297 'editor_options' => [
1298 'title' => __('Country List', 'fluentform'),
1299 'element' => 'country-list',
1300 'icon_class' => 'ff-edit-country',
1301 'template' => 'selectCountry',
1302 ],
1303 ],
1304 'custom_html' => [
1305 'index' => 17,
1306 'element' => 'custom_html',
1307 'attributes' => [],
1308 'settings' => [
1309 'html_codes' => '<p>Some description about this section</p>',
1310 'conditional_logics' => [],
1311 'container_class' => '',
1312 ],
1313 'editor_options' => [
1314 'title' => __('Custom HTML', 'fluentform'),
1315 'icon_class' => 'ff-edit-html',
1316 'template' => 'customHTML',
1317 ],
1318 ],
1319 ],
1320 'advanced' => [
1321 'ratings' => [
1322 'index' => 8,
1323 'element' => 'ratings',
1324 'attributes' => [
1325 'class' => '',
1326 'value' => 0,
1327 'name' => 'ratings',
1328 ],
1329 'settings' => [
1330 'label' => __('Ratings', 'fluentform'),
1331 'show_text' => 'no',
1332 'icon_source' => 'preset',
1333 'icon_type' => 'star',
1334 'custom_icon_svg' => '',
1335 'inactive_color' => \FluentForm\App\Services\FormBuilder\RatingIcon::DEFAULT_INACTIVE_COLOR,
1336 'active_color' => \FluentForm\App\Services\FormBuilder\RatingIcon::DEFAULT_ACTIVE_COLOR,
1337 'help_message' => '',
1338 'label_placement' => '',
1339 'admin_field_label' => '',
1340 'container_class' => '',
1341 'conditional_logics' => [],
1342 'validation_rules' => [
1343 'required' => [
1344 'value' => false,
1345 'message' => $fluentformDefaultGlobalMessages['required'],
1346 'global_message' => $fluentformDefaultGlobalMessages['required'],
1347 'global' => true,
1348 ],
1349 ],
1350 ],
1351 'options' => [
1352 '1' => __('Nice', 'fluentform'),
1353 '2' => __('Good', 'fluentform'),
1354 '3' => __('Very Good', 'fluentform'),
1355 '4' => __('Awesome', 'fluentform'),
1356 '5' => __('Amazing', 'fluentform'),
1357 ],
1358 'editor_options' => [
1359 'title' => __('Ratings', 'fluentform'),
1360 'icon_class' => 'ff-edit-rating',
1361 'template' => 'ratings',
1362 ],
1363 ],
1364 'input_hidden' => [
1365 'index' => 0,
1366 'element' => 'input_hidden',
1367 'attributes' => [
1368 'type' => 'hidden',
1369 'name' => 'hidden',
1370 'value' => '',
1371 ],
1372 'settings' => [
1373 'admin_field_label' => '',
1374 ],
1375 'editor_options' => [
1376 'title' => __('Hidden Field', 'fluentform'),
1377 'icon_class' => 'ff-edit-hidden-field',
1378 'template' => 'inputHidden',
1379 ],
1380 ],
1381 'tabular_grid' => [
1382 'index' => 9,
1383 'element' => 'tabular_grid',
1384 'attributes' => [
1385 'name' => 'tabular_grid',
1386 'data-type' => 'tabular-element',
1387 ],
1388 'settings' => [
1389 'tabular_field_type' => 'checkbox',
1390 'container_class' => '',
1391 'label' => __('Checkbox Grid', 'fluentform'),
1392 'admin_field_label' => '',
1393 'label_placement' => '',
1394 'help_message' => '',
1395 'validation_rules' => [
1396 'required' => [
1397 'value' => false,
1398 'message' => $fluentformDefaultGlobalMessages['required'],
1399 'global_message' => $fluentformDefaultGlobalMessages['required'],
1400 'global' => true,
1401 'per_row' => false,
1402 ],
1403 ],
1404 'conditional_logics' => [],
1405 'grid_columns' => [
1406 'Column-1' => 'Column 1',
1407 ],
1408 'grid_rows' => [
1409 'Row-1' => 'Row 1',
1410 ],
1411 'selected_grids' => [],
1412 ],
1413 'editor_options' => [
1414 'title' => __('Checkable Grid', 'fluentform'),
1415 'icon_class' => 'ff-edit-checkable-grid',
1416 'template' => 'checkableGrids',
1417 ],
1418 ],
1419 'section_break' => [
1420 'index' => 1,
1421 'element' => 'section_break',
1422 'attributes' => [
1423 'id' => '',
1424 'class' => '',
1425 ],
1426 'settings' => [
1427 'label' => __('Section Break', 'fluentform'),
1428 'description' => __('Some description about this section', 'fluentform'),
1429 'align' => 'left',
1430 'conditional_logics' => [],
1431 ],
1432 'editor_options' => [
1433 'title' => __('Section Break', 'fluentform'),
1434 'icon_class' => 'ff-edit-section-break',
1435 'template' => 'sectionBreak',
1436 ],
1437 ],
1438 'input_password' => [
1439 'index' => 11,
1440 'element' => 'input_password',
1441 'attributes' => [
1442 'type' => 'password',
1443 'name' => 'password',
1444 'value' => '',
1445 'id' => '',
1446 'class' => '',
1447 'placeholder' => '',
1448 ],
1449 'settings' => [
1450 'container_class' => '',
1451 'label' => __('Password', 'fluentform'),
1452 'admin_field_label' => '',
1453 'label_placement' => '',
1454 'help_message' => '',
1455 'prefix_label' => '',
1456 'suffix_label' => '',
1457 'validation_rules' => [
1458 'required' => [
1459 'value' => false,
1460 'message' => $fluentformDefaultGlobalMessages['required'],
1461 'global_message' => $fluentformDefaultGlobalMessages['required'],
1462 'global' => true,
1463 ],
1464 ],
1465 'conditional_logics' => [],
1466 ],
1467 'editor_options' => [
1468 'title' => __('Password', 'fluentform'),
1469 'icon_class' => 'ff-edit-password',
1470 'template' => 'inputText',
1471 ],
1472 ],
1473 'form_step' => [
1474 'index' => 7,
1475 'element' => 'form_step',
1476 'attributes' => [
1477 'id' => '',
1478 'class' => '',
1479 ],
1480 'settings' => [
1481 'prev_btn' => [
1482 'type' => 'default',
1483 'text' => __('Previous', 'fluentform'),
1484 'img_url' => '',
1485 ],
1486 'next_btn' => [
1487 'type' => 'default',
1488 'text' => __('Next', 'fluentform'),
1489 'img_url' => '',
1490 ],
1491 ],
1492 'editor_options' => [
1493 'title' => __('Form Step', 'fluentform'),
1494 'icon_class' => 'ff-edit-step',
1495 'template' => 'formStep',
1496 ],
1497 ],
1498 'terms_and_condition' => [
1499 'index' => 5,
1500 'element' => 'terms_and_condition',
1501 'attributes' => [
1502 'type' => 'checkbox',
1503 'name' => 'terms-n-condition',
1504 'value' => false,
1505 'class' => '',
1506 ],
1507 'settings' => [
1508 'tnc_html' => 'I have read and agree to the <a target="_blank" rel="noopener" href="#">Terms and Conditions</a> and <a target="_blank" rel="noopener" href="#">Privacy Policy</a>',
1509 'has_checkbox' => true,
1510 'admin_field_label' => __('Terms and Conditions', 'fluentform'),
1511 'container_class' => '',
1512 'validation_rules' => [
1513 'required' => [
1514 'value' => false,
1515 'message' => $fluentformDefaultGlobalMessages['required'],
1516 'global_message' => $fluentformDefaultGlobalMessages['required'],
1517 'global' => true,
1518 ],
1519 ],
1520 'conditional_logics' => [],
1521 ],
1522 'editor_options' => [
1523 'title' => __('Terms & Conditions', 'fluentform'),
1524 'icon_class' => 'ff-edit-terms-condition',
1525 'template' => 'termsCheckbox',
1526 ],
1527 ],
1528 'gdpr_agreement' => [
1529 'index' => 10,
1530 'element' => 'gdpr_agreement',
1531 'attributes' => [
1532 'type' => 'checkbox',
1533 'name' => 'gdpr-agreement',
1534 'value' => false,
1535 'class' => 'ff_gdpr_field',
1536 ],
1537 'settings' => [
1538 'label' => __('GDPR Agreement', 'fluentform'),
1539 'tnc_html' => __('I consent to have this website store my submitted information so they can respond to my inquiry', 'fluentform'),
1540 'admin_field_label' => __('GDPR Agreement', 'fluentform'),
1541 'has_checkbox' => true,
1542 'container_class' => '',
1543 'validation_rules' => [
1544 'required' => [
1545 'value' => true,
1546 'message' => $fluentformDefaultGlobalMessages['required'],
1547 'global_message' => $fluentformDefaultGlobalMessages['required'],
1548 'global' => true,
1549 ],
1550 ],
1551 'required_field_message' => '',
1552 'conditional_logics' => [],
1553 ],
1554 'editor_options' => [
1555 'title' => __('GDPR Agreement', 'fluentform'),
1556 'icon_class' => 'ff-edit-gdpr',
1557 'template' => 'termsCheckbox',
1558 ],
1559 ],
1560 'recaptcha' => [
1561 'index' => 2,
1562 'element' => 'recaptcha',
1563 'attributes' => ['name' => 'g-recaptcha-response'],
1564 'settings' => [
1565 'label' => '',
1566 'label_placement' => '',
1567 'validation_rules' => [],
1568 'render_recaptcha_v3_badge' => false
1569 ],
1570 'editor_options' => [
1571 'title' => __('reCaptcha', 'fluentform'),
1572 'icon_class' => 'ff-edit-recaptha',
1573 'why_disabled_modal' => 'recaptcha',
1574 'template' => 'recaptcha',
1575 ],
1576 ],
1577 'hcaptcha' => [
1578 'index' => 3,
1579 'element' => 'hcaptcha',
1580 'attributes' => ['name' => 'h-captcha-response'],
1581 'settings' => [
1582 'label' => '',
1583 'label_placement' => '',
1584 'validation_rules' => [],
1585 ],
1586 'editor_options' => [
1587 'title' => __('hCaptcha', 'fluentform'),
1588 'icon_class' => 'ff-edit-recaptha',
1589 'why_disabled_modal' => 'hcaptcha',
1590 'template' => 'hcaptcha',
1591 ],
1592 ],
1593 'turnstile' => [
1594 'index' => 3,
1595 'element' => 'turnstile',
1596 'attributes' => ['name' => 'cf-turnstile-response'],
1597 'settings' => [
1598 'label' => '',
1599 'label_placement' => '',
1600 'validation_rules' => []
1601 ],
1602 'editor_options' => [
1603 'title' => __('Turnstile', 'fluentform'),
1604 'icon_class' => 'ff-edit-recaptha',
1605 'why_disabled_modal' => 'turnstile',
1606 'template' => 'turnstile',
1607 ],
1608 ],
1609 'shortcode' => [
1610 'index' => 4,
1611 'element' => 'shortcode',
1612 'attributes' => [
1613 'id' => '',
1614 'class' => '',
1615 ],
1616 'settings' => [
1617 'shortcode' => '[your_shortcode_here]',
1618 'conditional_logics' => [],
1619 ],
1620 'editor_options' => [
1621 'title' => __('Shortcode', 'fluentform'),
1622 'icon_class' => 'ff-edit-shortcode',
1623 'template' => 'shortcode',
1624 ],
1625 ],
1626 'action_hook' => [
1627 'index' => 6,
1628 'element' => 'action_hook',
1629 'attributes' => [
1630 'id' => '',
1631 'class' => '',
1632 ],
1633 'settings' => [
1634 'hook_name' => 'YOUR_CUSTOM_HOOK_NAME',
1635 'conditional_logics' => [],
1636 ],
1637 'editor_options' => [
1638 'title' => __('Action Hook', 'fluentform'),
1639 'icon_class' => 'ff-edit-action-hook',
1640 'template' => 'actionHook',
1641 ],
1642 ],
1643 ],
1644 'container' => [
1645 'container_1_col' => [
1646 'index' => 1,
1647 'element' => 'container',
1648 'attributes' => [],
1649 'settings' => [
1650 'container_class' => '',
1651 'conditional_logics' => [],
1652 'is_width_auto_calc' => true,
1653 ],
1654 'columns' => [
1655 ['width' => 100, 'left' => '', 'fields' => []],
1656 ],
1657 'editor_options' => [
1658 'title' => __('One Column Container', 'fluentform'),
1659 'icon_class' => 'dashicons dashicons-align-center',
1660 ],
1661 ],
1662 'container_2_col' => [
1663 'index' => 1,
1664 'element' => 'container',
1665 'attributes' => [],
1666 'settings' => [
1667 'container_class' => '',
1668 'conditional_logics' => [],
1669 'container_width' => '',
1670 'is_width_auto_calc' => true,
1671 ],
1672 'columns' => [
1673 ['width' => 50, 'fields' => []],
1674 ['width' => 50, 'fields' => []],
1675 ],
1676 'editor_options' => [
1677 'title' => __('Two Column Container', 'fluentform'),
1678 'icon_class' => 'ff-edit-column-2',
1679 ],
1680 ],
1681 'container_3_col' => [
1682 'index' => 2,
1683 'element' => 'container',
1684 'attributes' => [],
1685 'settings' => [
1686 'container_class' => '',
1687 'conditional_logics' => [],
1688 'container_width' => '',
1689 'is_width_auto_calc' => true,
1690 ],
1691 'columns' => [
1692 ['width' => 33.33, 'fields' => []],
1693 ['width' => 33.33, 'fields' => []],
1694 ['width' => 33.33, 'fields' => []],
1695 ],
1696 'editor_options' => [
1697 'title' => __('Three Column Container', 'fluentform'),
1698 'icon_class' => 'ff-edit-three-column',
1699 ],
1700 ],
1701 'container_4_col' => [
1702 'index' => 3,
1703 'element' => 'container',
1704 'attributes' => [],
1705 'settings' => [
1706 'container_class' => '',
1707 'conditional_logics' => [],
1708 'container_width' => '',
1709 'is_width_auto_calc' => true,
1710 ],
1711 'columns' => [
1712 ['width' => 25, 'fields' => []],
1713 ['width' => 25, 'fields' => []],
1714 ['width' => 25, 'fields' => []],
1715 ['width' => 25, 'fields' => []],
1716 ],
1717 'editor_options' => [
1718 'title' => __('Four Column Container', 'fluentform'),
1719 'icon_class' => 'ff-edit-three-column',
1720 ],
1721 ],
1722 'container_5_col' => [
1723 'index' => 5,
1724 'element' => 'container',
1725 'attributes' => [],
1726 'settings' => [
1727 'container_class' => '',
1728 'conditional_logics' => [],
1729 'container_width' => '',
1730 'is_width_auto_calc' => true,
1731 ],
1732 'columns' => [
1733 ['width' => 20, 'fields' => []],
1734 ['width' => 20, 'fields' => []],
1735 ['width' => 20, 'fields' => []],
1736 ['width' => 20, 'fields' => []],
1737 ['width' => 20, 'fields' => []],
1738 ],
1739 'editor_options' => [
1740 'title' => __('Five Column Container', 'fluentform'),
1741 'icon_class' => 'ff-edit-three-column',
1742 ],
1743 ],
1744 'container_6_col' => [
1745 'index' => 6,
1746 'element' => 'container',
1747 'attributes' => [],
1748 'settings' => [
1749 'container_class' => '',
1750 'conditional_logics' => [],
1751 'container_width' => '',
1752 'is_width_auto_calc' => true,
1753 ],
1754 'columns' => [
1755 ['width' => 16.67, 'fields' => []],
1756 ['width' => 16.67, 'fields' => []],
1757 ['width' => 16.67, 'fields' => []],
1758 ['width' => 16.67, 'fields' => []],
1759 ['width' => 16.67, 'fields' => []],
1760 ['width' => 16.67, 'fields' => []],
1761 ],
1762 'editor_options' => [
1763 'title' => __('Six Column Container', 'fluentform'),
1764 'icon_class' => 'ff-edit-three-column',
1765 ],
1766 ],
1767 ],
1768 ];
1769
1770 if (! defined('FLUENTFORMPRO')) {
1771 $fluentformDefaultElements['general']['phone'] = [
1772 'index' => 17,
1773 'element' => 'phone',
1774 'attributes' => [],
1775 'settings' => [],
1776 'editor_options' => [
1777 'title' => __('Phone', 'fluentform'),
1778 'icon_class' => 'el-icon-phone-outline',
1779 'template' => 'inputText',
1780 ],
1781 ];
1782 $fluentformDefaultElements['advanced']['net_promoter_score'] = [
1783 'index' => 14,
1784 'element' => 'net_promoter_score',
1785 'attributes' => [],
1786 'settings' => [],
1787 'options' => [],
1788 'editor_options' => [
1789 'title' => __('Net Promoter Score', 'fluentform'),
1790 'icon_class' => 'ff-edit-rating',
1791 'template' => 'net_promoter',
1792 ],
1793 ];
1794 $fluentformDefaultElements['advanced']['quiz_score'] = [
1795 'index' => 19,
1796 'element' => 'quiz_score',
1797 'attributes' => [],
1798 'settings' => [],
1799 'options' => [],
1800 'editor_options' => [
1801 'title' => __('Quiz Score', 'fluentform'),
1802 'icon_class' => 'el-icon-postcard',
1803 'template' => 'inputHidden',
1804 ],
1805 ];
1806 $fluentformDefaultElements['advanced']['dynamic_field'] = [
1807 'index' => 19,
1808 'element' => 'dynamic_field',
1809 'attributes' => [],
1810 'settings' => [],
1811 'options' => [],
1812 'editor_options' => [
1813 'title' => __('Dynamic Field', 'fluentform'),
1814 'icon_class' => 'ff-edit-repeat',
1815 'template' => 'inputHidden',
1816 ],
1817 ];
1818 $fluentformDefaultElements['advanced']['cpt_selection'] = [
1819 'index' => 18,
1820 'element' => 'cpt_selection',
1821 'attributes' => [],
1822 'settings' => [],
1823 'options' => [],
1824 'editor_options' => [
1825 'title' => __('Post/CPT Selection', 'fluentform'),
1826 'icon_class' => 'ff-edit-dropdown',
1827 'element' => 'select',
1828 'template' => 'select',
1829 ],
1830 ];
1831 $fluentformDefaultElements['advanced']['save_progress_button'] = [
1832 'index' => 20,
1833 'element' => 'save_progress_button',
1834 'attributes' => [],
1835 'settings' => [],
1836 'options' => [],
1837 'editor_options' => [
1838 'title' => __('Save & Resume', 'fluentform'),
1839 'icon_class' => 'dashicons dashicons-arrow-right-alt',
1840 'template' => 'customButton',
1841 ],
1842 ];
1843 $fluentformDefaultElements['advanced']['rich_text_input'] = [
1844 'index' => 19,
1845 'element' => 'rich_text_input',
1846 'attributes' => [],
1847 'settings' => [],
1848 'options' => [],
1849 'editor_options' => [
1850 'title' => __('Rich Text Input', 'fluentform'),
1851 'icon_class' => 'ff-edit-textarea',
1852 'template' => 'inputTextarea',
1853 ],
1854 ];
1855 $fluentformDefaultElements['advanced']['chained_select'] = [
1856 'index' => 15,
1857 'element' => 'chained_select',
1858 'attributes' => [],
1859 'settings' => [],
1860 'options' => [],
1861 'editor_options' => [
1862 'title' => __('Chained Select', 'fluentform'),
1863 'icon_class' => 'ff-edit-link',
1864 'template' => 'chainedSelect',
1865 ],
1866 ];
1867 $fluentformDefaultElements['advanced']['repeater_field'] = [
1868 'index' => 17,
1869 'element' => 'repeater_field',
1870 'attributes' => [],
1871 'settings' => [],
1872 'options' => [],
1873 'editor_options' => [
1874 'title' => __('Repeat Field', 'fluentform'),
1875 'icon_class' => 'ff-edit-repeat',
1876 'template' => 'fieldsRepeatSettings',
1877 ],
1878 ];
1879 $fluentformDefaultElements['advanced']['rangeslider'] = [
1880 'index' => 13,
1881 'element' => 'rangeslider',
1882 'attributes' => [],
1883 'settings' => [],
1884 'editor_options' => [
1885 'title' => __('Range Slider', 'fluentform'),
1886 'icon_class' => 'dashicons dashicons-leftright',
1887 'template' => 'inputSlider',
1888 ],
1889 ];
1890 $fluentformDefaultElements['advanced']['input_ranking'] = [
1891 'index' => 21,
1892 'element' => 'input_ranking',
1893 'attributes' => [],
1894 'settings' => [],
1895 'options' => [],
1896 'editor_options' => [
1897 'title' => __('Ranking Field', 'fluentform'),
1898 'icon_class' => 'dashicons dashicons-sort',
1899 'template' => 'rankingField',
1900 ],
1901 ];
1902 $fluentformDefaultElements['advanced']['color-picker'] = [
1903 'index' => 16,
1904 'element' => 'color-picker',
1905 'attributes' => [],
1906 'settings' => [],
1907 'editor_options' => [
1908 'title' => __('Color Picker', 'fluentform'),
1909 'icon_class' => 'ff-edit-tint',
1910 'template' => 'inputText',
1911 ],
1912 ];
1913 $fluentformDefaultElements['container']['accordion'] = [
1914 'index' => 18,
1915 'element' => 'accordion',
1916 'attributes' => [],
1917 'settings' => [],
1918 'options' => [],
1919 'editor_options' => [
1920 'title' => __('Accordion/Tab', 'fluentform'),
1921 'icon_class' => 'ff-edit-section-break',
1922 'template' => 'CustomEditorField',
1923 ],
1924 ];
1925 }
1926
1927 if (defined('FLUENTFORMPRO')) {
1928 $fluentformDefaultElements['general']['address']['fields']['latitude'] = [
1929 'element' => 'input_hidden',
1930 'attributes' => [
1931 'type' => 'hidden',
1932 'name' => 'latitude',
1933 'value' => '',
1934 ],
1935 'settings' => [
1936 'label' => 'Latitude',
1937 'visible' => false,
1938 ],
1939 ];
1940 $fluentformDefaultElements['general']['address']['fields']['longitude'] = [
1941 'element' => 'input_hidden',
1942 'attributes' => [
1943 'type' => 'hidden',
1944 'name' => 'longitude',
1945 'value' => '',
1946 ],
1947 'settings' => [
1948 'label' => 'Longitude',
1949 'visible' => false,
1950 ],
1951 ];
1952 }
1953
1954 return $fluentformDefaultElements;
1955