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

1,901 lines 77.7 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_select_2' => 'no',
852 'validation_rules' => [
853 'required' => [
854 'value' => false,
855 'message' => $fluentformDefaultGlobalMessages['required'],
856 'global_message' => $fluentformDefaultGlobalMessages['required'],
857 'global' => true,
858 ],
859 ],
860 'conditional_logics' => [],
861 'randomize_options' => 'no',
862 ],
863 'editor_options' => [
864 'title' => __('Dropdown', 'fluentform'),
865 'icon_class' => 'ff-edit-dropdown',
866 'element' => 'select',
867 'template' => 'select',
868 ],
869 ],
870 'input_radio' => [
871 'index' => 8,
872 'element' => 'input_radio',
873 'attributes' => [
874 'type' => 'radio',
875 'name' => 'input_radio',
876 'value' => '',
877 ],
878 'settings' => [
879 'dynamic_default_value' => '',
880 'container_class' => '',
881 'label' => __('Radio Field', 'fluentform'),
882 'admin_field_label' => '',
883 'label_placement' => '',
884 'display_type' => '',
885 'help_message' => '',
886 'randomize_options' => 'no',
887 'advanced_options' => [
888 [
889 'label' => 'Yes',
890 'value' => 'yes',
891 'calc_value' => '',
892 'image' => '',
893 ],
894 [
895 'label' => 'No',
896 'value' => 'no',
897 'calc_value' => '',
898 'image' => '',
899 ],
900 ],
901 'calc_value_status' => false,
902 'enable_image_input' => false,
903 'values_visible' => false,
904 'randomize_options' => 'no',
905 'enable_other_option' => 'no',
906 'other_option_label' => __('Other', 'fluentform'),
907 'other_option_placeholder' => __('Please specify...', 'fluentform'),
908 'validation_rules' => [
909 'required' => [
910 'value' => false,
911 'message' => $fluentformDefaultGlobalMessages['required'],
912 'global_message' => $fluentformDefaultGlobalMessages['required'],
913 'global' => true,
914 ],
915 ],
916 'conditional_logics' => [],
917 'layout_class' => '',
918 ],
919 'editor_options' => [
920 'title' => __('Radio Field', 'fluentform'),
921 'icon_class' => 'ff-edit-radio',
922 'element' => 'input-radio',
923 'template' => 'inputCheckable',
924 ],
925 ],
926 'input_checkbox' => [
927 'index' => 9,
928 'element' => 'input_checkbox',
929 'attributes' => [
930 'type' => 'checkbox',
931 'name' => 'checkbox',
932 'value' => [],
933 ],
934 'settings' => [
935 'dynamic_default_value' => '',
936 'container_class' => '',
937 'label' => __('Checkbox Field', 'fluentform'),
938 'admin_field_label' => '',
939 'label_placement' => '',
940 'display_type' => '',
941 'help_message' => '',
942 'advanced_options' => [
943 [
944 'label' => 'Item 1',
945 'value' => 'Item 1',
946 'calc_value' => '',
947 'image' => '',
948 ],
949 [
950 'label' => 'Item 2',
951 'value' => 'Item 2',
952 'calc_value' => '',
953 'image' => '',
954 ],
955 [
956 'label' => 'Item 3',
957 'value' => 'Item 3',
958 'calc_value' => '',
959 'image' => '',
960 ],
961 ],
962 'calc_value_status' => false,
963 'enable_image_input' => false,
964 'values_visible' => false,
965 'randomize_options' => 'no',
966 'enable_other_option' => 'no',
967 'other_option_label' => __('Other', 'fluentform'),
968 'other_option_placeholder' => __('Please specify...', 'fluentform'),
969 'validation_rules' => [
970 'required' => [
971 'value' => false,
972 'message' => $fluentformDefaultGlobalMessages['required'],
973 'global_message' => $fluentformDefaultGlobalMessages['required'],
974 'global' => true,
975 ],
976 ],
977 'conditional_logics' => [],
978 'layout_class' => '',
979 ],
980 'editor_options' => [
981 'title' => __('Checkbox', 'fluentform'),
982 'icon_class' => 'ff-edit-checkbox-1',
983 'template' => 'inputCheckable',
984 ],
985 ],
986 'multi_select' => [
987 'index' => 10,
988 'element' => 'select',
989 'attributes' => [
990 'name' => 'multi_select',
991 'value' => [],
992 'id' => '',
993 'class' => '',
994 'placeholder' => '',
995 'multiple' => true,
996 ],
997 'settings' => [
998 'dynamic_default_value' => '',
999 'help_message' => '',
1000 'container_class' => '',
1001 'label' => __('Multiselect', 'fluentform'),
1002 'admin_field_label' => '',
1003 'label_placement' => '',
1004 'placeholder' => '',
1005 'max_selection' => '',
1006 'advanced_options' => [
1007 [
1008 'label' => 'Option 1',
1009 'value' => 'Option 1',
1010 'calc_value' => '',
1011 ],
1012 [
1013 'label' => 'Option 2',
1014 'value' => 'Option 2',
1015 'calc_value' => '',
1016 ],
1017 ],
1018 'calc_value_status' => false,
1019 'enable_image_input' => false,
1020 'randomize_options' => 'no',
1021 'validation_rules' => [
1022 'required' => [
1023 'value' => false,
1024 'message' => $fluentformDefaultGlobalMessages['required'],
1025 'global_message' => $fluentformDefaultGlobalMessages['required'],
1026 'global' => true,
1027 ],
1028 ],
1029 'conditional_logics' => [],
1030 ],
1031 'editor_options' => [
1032 'title' => __('Multiple Choice', 'fluentform'),
1033 'icon_class' => 'ff-edit-multiple-choice',
1034 'element' => 'select',
1035 'template' => 'select',
1036 ],
1037 ],
1038 'input_url' => [
1039 'index' => 11,
1040 'element' => 'input_url',
1041 'attributes' => [
1042 'type' => 'url',
1043 'name' => 'url',
1044 'value' => '',
1045 'class' => '',
1046 'placeholder' => '',
1047 ],
1048 'settings' => [
1049 'container_class' => '',
1050 'label' => __('URL', 'fluentform'),
1051 'admin_field_label' => '',
1052 'label_placement' => '',
1053 'help_message' => '',
1054 'prefix_label' => '',
1055 'suffix_label' => '',
1056 'validation_rules' => [
1057 'required' => [
1058 'value' => false,
1059 'message' => $fluentformDefaultGlobalMessages['required'],
1060 'global_message' => $fluentformDefaultGlobalMessages['required'],
1061 'global' => true,
1062 ],
1063 'url' => [
1064 'value' => true,
1065 'message' => $fluentformDefaultGlobalMessages['url'],
1066 'global_message' => $fluentformDefaultGlobalMessages['url'],
1067 'global' => true
1068 ],
1069 ],
1070 'conditional_logics' => [],
1071 ],
1072 'editor_options' => [
1073 'title' => __('Website URL', 'fluentform'),
1074 'icon_class' => 'ff-edit-website-url',
1075 'template' => 'inputText',
1076 ],
1077 ],
1078 'input_date' => [
1079 'index' => 13,
1080 'element' => 'input_date',
1081 'attributes' => [
1082 'type' => 'text',
1083 'name' => 'datetime',
1084 'value' => '',
1085 'id' => '',
1086 'class' => '',
1087 'placeholder' => '',
1088 ],
1089 'settings' => [
1090 'container_class' => '',
1091 'label' => __('Date / Time', 'fluentform'),
1092 'admin_field_label' => '',
1093 'label_placement' => '',
1094 'date_config' => '',
1095 'date_format' => 'd/m/Y',
1096 'help_message' => '',
1097 'is_time_enabled' => true,
1098 'validation_rules' => [
1099 'required' => [
1100 'value' => false,
1101 'message' => $fluentformDefaultGlobalMessages['required'],
1102 'global_message' => $fluentformDefaultGlobalMessages['required'],
1103 'global' => true,
1104 ],
1105 ],
1106 'conditional_logics' => [],
1107 ],
1108 'editor_options' => [
1109 'title' => __('Time & Date', 'fluentform'),
1110 'icon_class' => 'ff-edit-date',
1111 'template' => 'inputText',
1112 ],
1113 ],
1114 'input_image' => [
1115 'index' => 15,
1116 'element' => 'input_image',
1117 'attributes' => [
1118 'type' => 'file',
1119 'name' => 'image-upload',
1120 'value' => '',
1121 'id' => '',
1122 'class' => '',
1123 'accept' => 'image/*',
1124 ],
1125 'settings' => [
1126 'container_class' => '',
1127 'label' => __('Image Upload', 'fluentform'),
1128 'admin_field_label' => '',
1129 'label_placement' => '',
1130 'btn_text' => 'Choose File',
1131 'upload_file_location' => 'default',
1132 'file_location_type' => 'follow_global_settings',
1133 'help_message' => '',
1134 'upload_bttn_ui' => '',
1135 'validation_rules' => [
1136 'required' => [
1137 'value' => false,
1138 'message' => $fluentformDefaultGlobalMessages['required'],
1139 'global_message' => $fluentformDefaultGlobalMessages['required'],
1140 'global' => true,
1141 ],
1142 'max_file_size' => [
1143 'value' => 1048576,
1144 '_valueFrom' => 'MB',
1145 'message' => $fluentformDefaultGlobalMessages['max_file_size'],
1146 'global_message' => $fluentformDefaultGlobalMessages['max_file_size'],
1147 'global' => true
1148 ],
1149 'max_file_count' => [
1150 'value' => 1,
1151 'message' => $fluentformDefaultGlobalMessages['max_file_count'],
1152 'global_message' => $fluentformDefaultGlobalMessages['max_file_count'],
1153 'global' => true
1154 ],
1155 'allowed_image_types' => [
1156 'value' => [],
1157 'message' => $fluentformDefaultGlobalMessages['allowed_image_types'],
1158 'global_message' => $fluentformDefaultGlobalMessages['allowed_image_types'],
1159 'global' => true
1160 ],
1161 ],
1162 'conditional_logics' => [],
1163 ],
1164 'editor_options' => [
1165 'title' => __('Image Upload', 'fluentform'),
1166 'icon_class' => 'ff-edit-images',
1167 'template' => 'inputFile',
1168 ],
1169 ],
1170 'input_file' => [
1171 'index' => 16,
1172 'element' => 'input_file',
1173 'attributes' => [
1174 'type' => 'file',
1175 'name' => 'file-upload',
1176 'value' => '',
1177 'id' => '',
1178 'class' => '',
1179 ],
1180 'settings' => [
1181 'container_class' => '',
1182 'label' => __('File Upload', 'fluentform'),
1183 'admin_field_label' => '',
1184 'label_placement' => '',
1185 'btn_text' => 'Choose File',
1186 'help_message' => '',
1187 'upload_file_location' => 'default',
1188 'file_location_type' => 'follow_global_settings',
1189 'upload_bttn_ui' => '',
1190 'validation_rules' => [
1191 'required' => [
1192 'value' => false,
1193 'message' => $fluentformDefaultGlobalMessages['required'],
1194 'global_message' => $fluentformDefaultGlobalMessages['required'],
1195 'global' => true,
1196 ],
1197 'max_file_size' => [
1198 'value' => 1048576,
1199 '_valueFrom' => 'MB',
1200 'message' => $fluentformDefaultGlobalMessages['max_file_size'],
1201 'global_message' => $fluentformDefaultGlobalMessages['max_file_size'],
1202 'global' => true
1203 ],
1204 'max_file_count' => [
1205 'value' => 1,
1206 'message' => $fluentformDefaultGlobalMessages['max_file_count'],
1207 'global_message' => $fluentformDefaultGlobalMessages['max_file_count'],
1208 'global' => true
1209 ],
1210 'allowed_file_types' => [
1211 'value' => [],
1212 'message' => $fluentformDefaultGlobalMessages['allowed_image_types'],
1213 'global_message' => $fluentformDefaultGlobalMessages['allowed_image_types'],
1214 'global' => true
1215 ],
1216 ],
1217 'conditional_logics' => [],
1218 ],
1219 'editor_options' => [
1220 'title' => __('File Upload', 'fluentform'),
1221 'icon_class' => 'ff-edit-files',
1222 'template' => 'inputFile',
1223 ],
1224 ],
1225 'select_country' => [
1226 'index' => 5,
1227 'element' => 'select_country',
1228 'attributes' => [
1229 'name' => 'country-list',
1230 'value' => '',
1231 'id' => '',
1232 'class' => '',
1233 'placeholder' => __('Select Country', 'fluentform'),
1234 ],
1235 'settings' => [
1236 'container_class' => '',
1237 'label' => __('Country', 'fluentform'),
1238 'admin_field_label' => '',
1239 'label_placement' => '',
1240 'help_message' => '',
1241 'enable_select_2' => 'no',
1242 'validation_rules' => [
1243 'required' => [
1244 'value' => false,
1245 'message' => $fluentformDefaultGlobalMessages['required'],
1246 'global_message' => $fluentformDefaultGlobalMessages['required'],
1247 'global' => true,
1248 ],
1249 ],
1250 'country_list' => [
1251 'active_list' => 'all',
1252 'visible_list' => [],
1253 'hidden_list' => [],
1254 ],
1255 'conditional_logics' => [],
1256 ],
1257 'options' => [
1258 'US' => 'United States of America',
1259 ],
1260 'editor_options' => [
1261 'title' => __('Country List', 'fluentform'),
1262 'element' => 'country-list',
1263 'icon_class' => 'ff-edit-country',
1264 'template' => 'selectCountry',
1265 ],
1266 ],
1267 'custom_html' => [
1268 'index' => 17,
1269 'element' => 'custom_html',
1270 'attributes' => [],
1271 'settings' => [
1272 'html_codes' => '<p>Some description about this section</p>',
1273 'conditional_logics' => [],
1274 'container_class' => '',
1275 ],
1276 'editor_options' => [
1277 'title' => __('Custom HTML', 'fluentform'),
1278 'icon_class' => 'ff-edit-html',
1279 'template' => 'customHTML',
1280 ],
1281 ],
1282 ],
1283 'advanced' => [
1284 'ratings' => [
1285 'index' => 8,
1286 'element' => 'ratings',
1287 'attributes' => [
1288 'class' => '',
1289 'value' => 0,
1290 'name' => 'ratings',
1291 ],
1292 'settings' => [
1293 'label' => __('Ratings', 'fluentform'),
1294 'show_text' => 'no',
1295 'help_message' => '',
1296 'label_placement' => '',
1297 'admin_field_label' => '',
1298 'container_class' => '',
1299 'conditional_logics' => [],
1300 'validation_rules' => [
1301 'required' => [
1302 'value' => false,
1303 'message' => $fluentformDefaultGlobalMessages['required'],
1304 'global_message' => $fluentformDefaultGlobalMessages['required'],
1305 'global' => true,
1306 ],
1307 ],
1308 ],
1309 'options' => [
1310 '1' => __('Nice', 'fluentform'),
1311 '2' => __('Good', 'fluentform'),
1312 '3' => __('Very Good', 'fluentform'),
1313 '4' => __('Awesome', 'fluentform'),
1314 '5' => __('Amazing', 'fluentform'),
1315 ],
1316 'editor_options' => [
1317 'title' => __('Ratings', 'fluentform'),
1318 'icon_class' => 'ff-edit-rating',
1319 'template' => 'ratings',
1320 ],
1321 ],
1322 'input_hidden' => [
1323 'index' => 0,
1324 'element' => 'input_hidden',
1325 'attributes' => [
1326 'type' => 'hidden',
1327 'name' => 'hidden',
1328 'value' => '',
1329 ],
1330 'settings' => [
1331 'admin_field_label' => '',
1332 ],
1333 'editor_options' => [
1334 'title' => __('Hidden Field', 'fluentform'),
1335 'icon_class' => 'ff-edit-hidden-field',
1336 'template' => 'inputHidden',
1337 ],
1338 ],
1339 'tabular_grid' => [
1340 'index' => 9,
1341 'element' => 'tabular_grid',
1342 'attributes' => [
1343 'name' => 'tabular_grid',
1344 'data-type' => 'tabular-element',
1345 ],
1346 'settings' => [
1347 'tabular_field_type' => 'checkbox',
1348 'container_class' => '',
1349 'label' => __('Checkbox Grid', 'fluentform'),
1350 'admin_field_label' => '',
1351 'label_placement' => '',
1352 'help_message' => '',
1353 'validation_rules' => [
1354 'required' => [
1355 'value' => false,
1356 'message' => $fluentformDefaultGlobalMessages['required'],
1357 'global_message' => $fluentformDefaultGlobalMessages['required'],
1358 'global' => true,
1359 'per_row' => false,
1360 ],
1361 ],
1362 'conditional_logics' => [],
1363 'grid_columns' => [
1364 'Column-1' => 'Column 1',
1365 ],
1366 'grid_rows' => [
1367 'Row-1' => 'Row 1',
1368 ],
1369 'selected_grids' => [],
1370 ],
1371 'editor_options' => [
1372 'title' => __('Checkable Grid', 'fluentform'),
1373 'icon_class' => 'ff-edit-checkable-grid',
1374 'template' => 'checkableGrids',
1375 ],
1376 ],
1377 'section_break' => [
1378 'index' => 1,
1379 'element' => 'section_break',
1380 'attributes' => [
1381 'id' => '',
1382 'class' => '',
1383 ],
1384 'settings' => [
1385 'label' => __('Section Break', 'fluentform'),
1386 'description' => __('Some description about this section', 'fluentform'),
1387 'align' => 'left',
1388 'conditional_logics' => [],
1389 ],
1390 'editor_options' => [
1391 'title' => __('Section Break', 'fluentform'),
1392 'icon_class' => 'ff-edit-section-break',
1393 'template' => 'sectionBreak',
1394 ],
1395 ],
1396 'input_password' => [
1397 'index' => 11,
1398 'element' => 'input_password',
1399 'attributes' => [
1400 'type' => 'password',
1401 'name' => 'password',
1402 'value' => '',
1403 'id' => '',
1404 'class' => '',
1405 'placeholder' => '',
1406 ],
1407 'settings' => [
1408 'container_class' => '',
1409 'label' => __('Password', 'fluentform'),
1410 'admin_field_label' => '',
1411 'label_placement' => '',
1412 'help_message' => '',
1413 'prefix_label' => '',
1414 'suffix_label' => '',
1415 'validation_rules' => [
1416 'required' => [
1417 'value' => false,
1418 'message' => $fluentformDefaultGlobalMessages['required'],
1419 'global_message' => $fluentformDefaultGlobalMessages['required'],
1420 'global' => true,
1421 ],
1422 ],
1423 'conditional_logics' => [],
1424 ],
1425 'editor_options' => [
1426 'title' => __('Password', 'fluentform'),
1427 'icon_class' => 'ff-edit-password',
1428 'template' => 'inputText',
1429 ],
1430 ],
1431 'form_step' => [
1432 'index' => 7,
1433 'element' => 'form_step',
1434 'attributes' => [
1435 'id' => '',
1436 'class' => '',
1437 ],
1438 'settings' => [
1439 'prev_btn' => [
1440 'type' => 'default',
1441 'text' => __('Previous', 'fluentform'),
1442 'img_url' => '',
1443 ],
1444 'next_btn' => [
1445 'type' => 'default',
1446 'text' => __('Next', 'fluentform'),
1447 'img_url' => '',
1448 ],
1449 ],
1450 'editor_options' => [
1451 'title' => __('Form Step', 'fluentform'),
1452 'icon_class' => 'ff-edit-step',
1453 'template' => 'formStep',
1454 ],
1455 ],
1456 'terms_and_condition' => [
1457 'index' => 5,
1458 'element' => 'terms_and_condition',
1459 'attributes' => [
1460 'type' => 'checkbox',
1461 'name' => 'terms-n-condition',
1462 'value' => false,
1463 'class' => '',
1464 ],
1465 'settings' => [
1466 '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>',
1467 'has_checkbox' => true,
1468 'admin_field_label' => __('Terms and Conditions', 'fluentform'),
1469 'container_class' => '',
1470 'validation_rules' => [
1471 'required' => [
1472 'value' => false,
1473 'message' => $fluentformDefaultGlobalMessages['required'],
1474 'global_message' => $fluentformDefaultGlobalMessages['required'],
1475 'global' => true,
1476 ],
1477 ],
1478 'conditional_logics' => [],
1479 ],
1480 'editor_options' => [
1481 'title' => __('Terms & Conditions', 'fluentform'),
1482 'icon_class' => 'ff-edit-terms-condition',
1483 'template' => 'termsCheckbox',
1484 ],
1485 ],
1486 'gdpr_agreement' => [
1487 'index' => 10,
1488 'element' => 'gdpr_agreement',
1489 'attributes' => [
1490 'type' => 'checkbox',
1491 'name' => 'gdpr-agreement',
1492 'value' => false,
1493 'class' => 'ff_gdpr_field',
1494 ],
1495 'settings' => [
1496 'label' => __('GDPR Agreement', 'fluentform'),
1497 'tnc_html' => __('I consent to have this website store my submitted information so they can respond to my inquiry', 'fluentform'),
1498 'admin_field_label' => __('GDPR Agreement', 'fluentform'),
1499 'has_checkbox' => true,
1500 'container_class' => '',
1501 'validation_rules' => [
1502 'required' => [
1503 'value' => true,
1504 'message' => $fluentformDefaultGlobalMessages['required'],
1505 'global_message' => $fluentformDefaultGlobalMessages['required'],
1506 'global' => true,
1507 ],
1508 ],
1509 'required_field_message' => '',
1510 'conditional_logics' => [],
1511 ],
1512 'editor_options' => [
1513 'title' => __('GDPR Agreement', 'fluentform'),
1514 'icon_class' => 'ff-edit-gdpr',
1515 'template' => 'termsCheckbox',
1516 ],
1517 ],
1518 'recaptcha' => [
1519 'index' => 2,
1520 'element' => 'recaptcha',
1521 'attributes' => ['name' => 'g-recaptcha-response'],
1522 'settings' => [
1523 'label' => '',
1524 'label_placement' => '',
1525 'validation_rules' => [],
1526 'render_recaptcha_v3_badge' => false
1527 ],
1528 'editor_options' => [
1529 'title' => __('reCaptcha', 'fluentform'),
1530 'icon_class' => 'ff-edit-recaptha',
1531 'why_disabled_modal' => 'recaptcha',
1532 'template' => 'recaptcha',
1533 ],
1534 ],
1535 'hcaptcha' => [
1536 'index' => 3,
1537 'element' => 'hcaptcha',
1538 'attributes' => ['name' => 'h-captcha-response'],
1539 'settings' => [
1540 'label' => '',
1541 'label_placement' => '',
1542 'validation_rules' => [],
1543 ],
1544 'editor_options' => [
1545 'title' => __('hCaptcha', 'fluentform'),
1546 'icon_class' => 'ff-edit-recaptha',
1547 'why_disabled_modal' => 'hcaptcha',
1548 'template' => 'hcaptcha',
1549 ],
1550 ],
1551 'turnstile' => [
1552 'index' => 3,
1553 'element' => 'turnstile',
1554 'attributes' => ['name' => 'cf-turnstile-response'],
1555 'settings' => [
1556 'label' => '',
1557 'label_placement' => '',
1558 'validation_rules' => []
1559 ],
1560 'editor_options' => [
1561 'title' => __('Turnstile', 'fluentform'),
1562 'icon_class' => 'ff-edit-recaptha',
1563 'why_disabled_modal' => 'turnstile',
1564 'template' => 'turnstile',
1565 ],
1566 ],
1567 'shortcode' => [
1568 'index' => 4,
1569 'element' => 'shortcode',
1570 'attributes' => [
1571 'id' => '',
1572 'class' => '',
1573 ],
1574 'settings' => [
1575 'shortcode' => '[your_shortcode_here]',
1576 'conditional_logics' => [],
1577 ],
1578 'editor_options' => [
1579 'title' => __('Shortcode', 'fluentform'),
1580 'icon_class' => 'ff-edit-shortcode',
1581 'template' => 'shortcode',
1582 ],
1583 ],
1584 'action_hook' => [
1585 'index' => 6,
1586 'element' => 'action_hook',
1587 'attributes' => [
1588 'id' => '',
1589 'class' => '',
1590 ],
1591 'settings' => [
1592 'hook_name' => 'YOUR_CUSTOM_HOOK_NAME',
1593 'conditional_logics' => [],
1594 ],
1595 'editor_options' => [
1596 'title' => __('Action Hook', 'fluentform'),
1597 'icon_class' => 'ff-edit-action-hook',
1598 'template' => 'actionHook',
1599 ],
1600 ],
1601 ],
1602 'container' => [
1603 'container_1_col' => [
1604 'index' => 1,
1605 'element' => 'container',
1606 'attributes' => [],
1607 'settings' => [
1608 'container_class' => '',
1609 'conditional_logics' => [],
1610 'is_width_auto_calc' => true,
1611 ],
1612 'columns' => [
1613 ['width' => '', 'left' => '', 'fields' => []],
1614 ],
1615 'editor_options' => [
1616 'title' => __('One Column Container', 'fluentform'),
1617 'icon_class' => 'dashicons dashicons-align-center',
1618 ],
1619 ],
1620 'container_2_col' => [
1621 'index' => 1,
1622 'element' => 'container',
1623 'attributes' => [],
1624 'settings' => [
1625 'container_class' => '',
1626 'conditional_logics' => [],
1627 'container_width' => '',
1628 'is_width_auto_calc' => true,
1629 ],
1630 'columns' => [
1631 ['width' => 50, 'fields' => []],
1632 ['width' => 50, 'fields' => []],
1633 ],
1634 'editor_options' => [
1635 'title' => __('Two Column Container', 'fluentform'),
1636 'icon_class' => 'ff-edit-column-2',
1637 ],
1638 ],
1639 'container_3_col' => [
1640 'index' => 2,
1641 'element' => 'container',
1642 'attributes' => [],
1643 'settings' => [
1644 'container_class' => '',
1645 'conditional_logics' => [],
1646 'container_width' => '',
1647 'is_width_auto_calc' => true,
1648 ],
1649 'columns' => [
1650 ['width' => 33.33, 'fields' => []],
1651 ['width' => 33.33, 'fields' => []],
1652 ['width' => 33.33, 'fields' => []],
1653 ],
1654 'editor_options' => [
1655 'title' => __('Three Column Container', 'fluentform'),
1656 'icon_class' => 'ff-edit-three-column',
1657 ],
1658 ],
1659 'container_4_col' => [
1660 'index' => 3,
1661 'element' => 'container',
1662 'attributes' => [],
1663 'settings' => [
1664 'container_class' => '',
1665 'conditional_logics' => [],
1666 'container_width' => '',
1667 'is_width_auto_calc' => true,
1668 ],
1669 'columns' => [
1670 ['width' => 25, 'fields' => []],
1671 ['width' => 25, 'fields' => []],
1672 ['width' => 25, 'fields' => []],
1673 ['width' => 25, 'fields' => []],
1674 ],
1675 'editor_options' => [
1676 'title' => __('Four Column Container', 'fluentform'),
1677 'icon_class' => 'ff-edit-three-column',
1678 ],
1679 ],
1680 'container_5_col' => [
1681 'index' => 5,
1682 'element' => 'container',
1683 'attributes' => [],
1684 'settings' => [
1685 'container_class' => '',
1686 'conditional_logics' => [],
1687 'container_width' => '',
1688 'is_width_auto_calc' => true,
1689 ],
1690 'columns' => [
1691 ['width' => 20, 'fields' => []],
1692 ['width' => 20, 'fields' => []],
1693 ['width' => 20, 'fields' => []],
1694 ['width' => 20, 'fields' => []],
1695 ['width' => 20, 'fields' => []],
1696 ],
1697 'editor_options' => [
1698 'title' => __('Five Column Container', 'fluentform'),
1699 'icon_class' => 'ff-edit-three-column',
1700 ],
1701 ],
1702 'container_6_col' => [
1703 'index' => 6,
1704 'element' => 'container',
1705 'attributes' => [],
1706 'settings' => [
1707 'container_class' => '',
1708 'conditional_logics' => [],
1709 'container_width' => '',
1710 'is_width_auto_calc' => true,
1711 ],
1712 'columns' => [
1713 ['width' => 16.67, 'fields' => []],
1714 ['width' => 16.67, 'fields' => []],
1715 ['width' => 16.67, 'fields' => []],
1716 ['width' => 16.67, 'fields' => []],
1717 ['width' => 16.67, 'fields' => []],
1718 ['width' => 16.67, 'fields' => []],
1719 ],
1720 'editor_options' => [
1721 'title' => __('Six Column Container', 'fluentform'),
1722 'icon_class' => 'ff-edit-three-column',
1723 ],
1724 ],
1725 ],
1726 ];
1727
1728 if (! defined('FLUENTFORMPRO')) {
1729 $fluentformDefaultElements['general']['phone'] = [
1730 'index' => 17,
1731 'element' => 'phone',
1732 'attributes' => [],
1733 'settings' => [],
1734 'editor_options' => [
1735 'title' => __('Phone', 'fluentform'),
1736 'icon_class' => 'el-icon-phone-outline',
1737 'template' => 'inputText',
1738 ],
1739 ];
1740 $fluentformDefaultElements['advanced']['net_promoter_score'] = [
1741 'index' => 14,
1742 'element' => 'net_promoter_score',
1743 'attributes' => [],
1744 'settings' => [],
1745 'options' => [],
1746 'editor_options' => [
1747 'title' => __('Net Promoter Score', 'fluentform'),
1748 'icon_class' => 'ff-edit-rating',
1749 'template' => 'net_promoter',
1750 ],
1751 ];
1752 $fluentformDefaultElements['advanced']['quiz_score'] = [
1753 'index' => 19,
1754 'element' => 'quiz_score',
1755 'attributes' => [],
1756 'settings' => [],
1757 'options' => [],
1758 'editor_options' => [
1759 'title' => __('Quiz Score', 'fluentform'),
1760 'icon_class' => 'el-icon-postcard',
1761 'template' => 'inputHidden',
1762 ],
1763 ];
1764 $fluentformDefaultElements['advanced']['dynamic_field'] = [
1765 'index' => 19,
1766 'element' => 'dynamic_field',
1767 'attributes' => [],
1768 'settings' => [],
1769 'options' => [],
1770 'editor_options' => [
1771 'title' => __('Dynamic Field', 'fluentform'),
1772 'icon_class' => 'ff-edit-repeat',
1773 'template' => 'inputHidden',
1774 ],
1775 ];
1776 $fluentformDefaultElements['advanced']['cpt_selection'] = [
1777 'index' => 18,
1778 'element' => 'cpt_selection',
1779 'attributes' => [],
1780 'settings' => [],
1781 'options' => [],
1782 'editor_options' => [
1783 'title' => __('Post/CPT Selection', 'fluentform'),
1784 'icon_class' => 'ff-edit-dropdown',
1785 'element' => 'select',
1786 'template' => 'select',
1787 ],
1788 ];
1789 $fluentformDefaultElements['advanced']['save_progress_button'] = [
1790 'index' => 20,
1791 'element' => 'save_progress_button',
1792 'attributes' => [],
1793 'settings' => [],
1794 'options' => [],
1795 'editor_options' => [
1796 'title' => __('Save & Resume', 'fluentform'),
1797 'icon_class' => 'dashicons dashicons-arrow-right-alt',
1798 'template' => 'customButton',
1799 ],
1800 ];
1801 $fluentformDefaultElements['advanced']['rich_text_input'] = [
1802 'index' => 19,
1803 'element' => 'rich_text_input',
1804 'attributes' => [],
1805 'settings' => [],
1806 'options' => [],
1807 'editor_options' => [
1808 'title' => __('Rich Text Input', 'fluentform'),
1809 'icon_class' => 'ff-edit-textarea',
1810 'template' => 'inputTextarea',
1811 ],
1812 ];
1813 $fluentformDefaultElements['advanced']['chained_select'] = [
1814 'index' => 15,
1815 'element' => 'chained_select',
1816 'attributes' => [],
1817 'settings' => [],
1818 'options' => [],
1819 'editor_options' => [
1820 'title' => __('Chained Select', 'fluentform'),
1821 'icon_class' => 'ff-edit-link',
1822 'template' => 'chainedSelect',
1823 ],
1824 ];
1825 $fluentformDefaultElements['advanced']['repeater_field'] = [
1826 'index' => 17,
1827 'element' => 'repeater_field',
1828 'attributes' => [],
1829 'settings' => [],
1830 'options' => [],
1831 'editor_options' => [
1832 'title' => __('Repeat Field', 'fluentform'),
1833 'icon_class' => 'ff-edit-repeat',
1834 'template' => 'fieldsRepeatSettings',
1835 ],
1836 ];
1837 $fluentformDefaultElements['advanced']['rangeslider'] = [
1838 'index' => 13,
1839 'element' => 'rangeslider',
1840 'attributes' => [],
1841 'settings' => [],
1842 'editor_options' => [
1843 'title' => __('Range Slider', 'fluentform'),
1844 'icon_class' => 'dashicons dashicons-leftright',
1845 'template' => 'inputSlider',
1846 ],
1847 ];
1848 $fluentformDefaultElements['advanced']['color-picker'] = [
1849 'index' => 16,
1850 'element' => 'color-picker',
1851 'attributes' => [],
1852 'settings' => [],
1853 'editor_options' => [
1854 'title' => __('Color Picker', 'fluentform'),
1855 'icon_class' => 'ff-edit-tint',
1856 'template' => 'inputText',
1857 ],
1858 ];
1859 $fluentformDefaultElements['container']['accordion'] = [
1860 'index' => 18,
1861 'element' => 'accordion',
1862 'attributes' => [],
1863 'settings' => [],
1864 'options' => [],
1865 'editor_options' => [
1866 'title' => __('Accordion/Tab', 'fluentform'),
1867 'icon_class' => 'ff-edit-section-break',
1868 'template' => 'CustomEditorField',
1869 ],
1870 ];
1871 }
1872
1873 if (defined('FLUENTFORMPRO')) {
1874 $fluentformDefaultElements['general']['address']['fields']['latitude'] = [
1875 'element' => 'input_hidden',
1876 'attributes' => [
1877 'type' => 'hidden',
1878 'name' => 'latitude',
1879 'value' => '',
1880 ],
1881 'settings' => [
1882 'label' => 'Latitude',
1883 'visible' => false,
1884 ],
1885 ];
1886 $fluentformDefaultElements['general']['address']['fields']['longitude'] = [
1887 'element' => 'input_hidden',
1888 'attributes' => [
1889 'type' => 'hidden',
1890 'name' => 'longitude',
1891 'value' => '',
1892 ],
1893 'settings' => [
1894 'label' => 'Longitude',
1895 'visible' => false,
1896 ],
1897 ];
1898 }
1899
1900 return $fluentformDefaultElements;
1901