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

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