Contact Form Plugin – Fastest Contact Form Builder Plugin for WordPress by Fluent Forms - Version 4.3.16

Version Description

(Date: October 16, 2022) = - Adds footer text customization for Slack - Improves Custom Button styles - Fixes conditional field rendering

Download this release

Release Info

Developer adreastrian
Plugin Icon 128x128 Contact Form Plugin – Fastest Contact Form Builder Plugin for WordPress by Fluent Forms
Version 4.3.16
Comparing to
See all releases

Code changes from version 4.3.14 to 4.3.16

.phpcs.xml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <ruleset name="Fluent Standard">
3
+ <description>WordPress Coding Standard that we use in Fluent Team.</description>
4
+ <rule ref="WordPress">
5
+ <exclude name="WordPress.Files.FileName"/>
6
+ <exclude name="WordPress.PHP.DisallowShortTernary"/>
7
+ <exclude name="WordPress.WhiteSpace.OperatorSpacing"/>
8
+ <exclude name="WordPress.WP.EnqueuedResourceParameters"/>
9
+ <exclude name="WordPress.Arrays.ArrayDeclarationSpacing"/>
10
+ <exclude name="WordPress.WhiteSpace.CastStructureSpacing"/>
11
+ <exclude name="WordPress.WhiteSpace.ControlStructureSpacing"/>
12
+ <exclude name="WordPress.Arrays.ArrayKeySpacingRestrictions"/>
13
+ <exclude name="WordPress.NamingConventions.ValidFunctionName"/>
14
+ <exclude name="WordPress.NamingConventions.ValidVariableName"/>
15
+
16
+ <exclude name="PEAR.Functions.FunctionCallSignature"/>
17
+
18
+ <exclude name="Squiz.Commenting"/>
19
+ <exclude name="Squiz.PHP.DisallowMultipleAssignments"/>
20
+ <exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing"/>
21
+
22
+ <exclude name="Generic.Classes.OpeningBraceSameLine"/>
23
+ <exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
24
+ <exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
25
+ <exclude name="Generic.Formatting.MultipleStatementAlignment"/>
26
+ <exclude name="Generic.WhiteSpace.ArbitraryParenthesesSpacing"/>
27
+ <exclude name="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/>
28
+ </rule>
29
+
30
+ <rule ref="WordPress.Security.EscapeOutput">
31
+ <properties>
32
+ <property name="customEscapingFunctions" type="array">
33
+ <element value="fluentformSanitizeCSS"/>
34
+ <element value="fluentform_sanitize_html"/>
35
+ </property>
36
+ </properties>
37
+ </rule>
38
+
39
+ <rule ref="Generic.WhiteSpace.ScopeIndent">
40
+ <properties>
41
+ <property name="indent" value="4"/>
42
+ <property name="tabIndent" value="false"/>
43
+ </properties>
44
+ </rule>
45
+
46
+ <rule ref="Generic.WhiteSpace.DisallowTabIndent" />
47
+
48
+ <!-- We allow empty catch statements -->
49
+ <rule ref="Generic.CodeAnalysis.EmptyStatement.DetectedCATCH">
50
+ <severity>0</severity>
51
+ </rule>
52
+ </ruleset>
app/Api/Entry.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
 
3
  namespace FluentForm\App\Api;
 
4
  use FluentForm\App\Modules\Entries\Report;
5
  use FluentForm\App\Modules\Form\FormDataParser;
6
  use FluentForm\App\Modules\Form\FormFieldsParser;
@@ -16,18 +17,18 @@ class Entry
16
 
17
  public function entries($atts = [], $includeFormats = false)
18
  {
19
- if($includeFormats) {
20
  if (!defined('FLUENTFORM_RENDERING_ENTRIES')) {
21
  define('FLUENTFORM_RENDERING_ENTRIES', true);
22
  }
23
  }
24
 
25
  $atts = wp_parse_args($atts, [
26
- 'per_page' => 10,
27
- 'page' => 1,
28
- 'search' => '',
29
- 'sort_type' => 'DESC',
30
- 'entry_type' => 'all'
31
  ]);
32
 
33
  $offset = $atts['per_page'] * ($atts['page'] - 1);
@@ -40,7 +41,7 @@ class Entry
40
 
41
  $type = $atts['entry_type'];
42
 
43
- if($type && $type != 'all') {
44
  $entryQuery->where('status', $type);
45
  }
46
 
@@ -61,10 +62,10 @@ class Entry
61
 
62
  $from = $dataCount > 0 ? ($atts['page'] - 1) * $atts['per_page'] + 1 : null;
63
 
64
- $to = $dataCount > 0 ? $from + $dataCount - 1 : null;
65
  $lastPage = (int) ceil($count / $atts['per_page']);
66
 
67
- if($includeFormats) {
68
  $data = FormDataParser::parseFormEntries($data, $this->form);
69
  }
70
 
@@ -73,13 +74,13 @@ class Entry
73
  }
74
 
75
  return [
76
- 'current_page' => $atts['page'],
77
- 'per_page' => $atts['per_page'],
78
- 'from' => $from,
79
- 'to' => $to,
80
- 'last_page' => $lastPage,
81
- 'total' => $count,
82
- 'data' => $data,
83
  ];
84
  }
85
 
@@ -90,17 +91,17 @@ class Entry
90
  ->where('id', $entryId)
91
  ->first();
92
 
93
- if(!$submission) {
94
  return null;
95
  }
96
 
97
  $inputs = FormFieldsParser::getEntryInputs($this->form);
98
  $submission = FormDataParser::parseFormEntry($submission, $this->form, $inputs, true);
99
 
100
- if(!$includeFormats) {
101
  $submission->response = json_decode($submission->response, true);
102
  return [
103
- 'submission' => $submission
104
  ];
105
  }
106
 
@@ -110,7 +111,7 @@ class Entry
110
  'name' => $user->display_name,
111
  'email' => $user->user_email,
112
  'ID' => $user->ID,
113
- 'permalink' => get_edit_user_link($user->ID)
114
  ];
115
  $submission->user = $user_data;
116
  }
@@ -123,7 +124,7 @@ class Entry
123
 
124
  return [
125
  'submission' => $submission,
126
- 'labels' => $inputLabels
127
  ];
128
  }
129
 
@@ -132,5 +133,4 @@ class Entry
132
  $reportClass = new Report(wpFluentForm());
133
  return $reportClass->generateReport($this->form, $statuses);
134
  }
135
-
136
- }
1
  <?php
2
 
3
  namespace FluentForm\App\Api;
4
+
5
  use FluentForm\App\Modules\Entries\Report;
6
  use FluentForm\App\Modules\Form\FormDataParser;
7
  use FluentForm\App\Modules\Form\FormFieldsParser;
17
 
18
  public function entries($atts = [], $includeFormats = false)
19
  {
20
+ if ($includeFormats) {
21
  if (!defined('FLUENTFORM_RENDERING_ENTRIES')) {
22
  define('FLUENTFORM_RENDERING_ENTRIES', true);
23
  }
24
  }
25
 
26
  $atts = wp_parse_args($atts, [
27
+ 'per_page' => 10,
28
+ 'page' => 1,
29
+ 'search' => '',
30
+ 'sort_type' => 'DESC',
31
+ 'entry_type' => 'all',
32
  ]);
33
 
34
  $offset = $atts['per_page'] * ($atts['page'] - 1);
41
 
42
  $type = $atts['entry_type'];
43
 
44
+ if ($type && 'all' != $type) {
45
  $entryQuery->where('status', $type);
46
  }
47
 
62
 
63
  $from = $dataCount > 0 ? ($atts['page'] - 1) * $atts['per_page'] + 1 : null;
64
 
65
+ $to = $dataCount > 0 ? $from + $dataCount - 1 : null;
66
  $lastPage = (int) ceil($count / $atts['per_page']);
67
 
68
+ if ($includeFormats) {
69
  $data = FormDataParser::parseFormEntries($data, $this->form);
70
  }
71
 
74
  }
75
 
76
  return [
77
+ 'current_page' => $atts['page'],
78
+ 'per_page' => $atts['per_page'],
79
+ 'from' => $from,
80
+ 'to' => $to,
81
+ 'last_page' => $lastPage,
82
+ 'total' => $count,
83
+ 'data' => $data,
84
  ];
85
  }
86
 
91
  ->where('id', $entryId)
92
  ->first();
93
 
94
+ if (!$submission) {
95
  return null;
96
  }
97
 
98
  $inputs = FormFieldsParser::getEntryInputs($this->form);
99
  $submission = FormDataParser::parseFormEntry($submission, $this->form, $inputs, true);
100
 
101
+ if (!$includeFormats) {
102
  $submission->response = json_decode($submission->response, true);
103
  return [
104
+ 'submission' => $submission,
105
  ];
106
  }
107
 
111
  'name' => $user->display_name,
112
  'email' => $user->user_email,
113
  'ID' => $user->ID,
114
+ 'permalink' => get_edit_user_link($user->ID),
115
  ];
116
  $submission->user = $user_data;
117
  }
124
 
125
  return [
126
  'submission' => $submission,
127
+ 'labels' => $inputLabels,
128
  ];
129
  }
130
 
133
  $reportClass = new Report(wpFluentForm());
134
  return $reportClass->generateReport($this->form, $statuses);
135
  }
136
+ }
 
app/Api/Form.php CHANGED
@@ -10,14 +10,14 @@ class Form
10
  public function forms($atts = [], $withFields = false)
11
  {
12
  $defaultAtts = [
13
- 'search' => '',
14
- 'status' => 'all',
15
  'sort_column' => 'id',
16
- 'filter_by' => 'all',
17
- 'date_range' => [],
18
- 'sort_by' => 'DESC',
19
- 'per_page' => 10,
20
- 'page' => 1
21
  ];
22
 
23
  $atts = wp_parse_args($atts, $defaultAtts);
@@ -26,8 +26,8 @@ class Form
26
  $search = ArrayHelper::get($atts, 'search', '');
27
  $status = ArrayHelper::get($atts, 'status', 'all');
28
  $filter_by = ArrayHelper::get($atts, 'filter_by', 'all');
29
- $dateRange = ArrayHelper::get($atts, 'date_range', []);
30
- $is_filter_by_conv_or_step_form = $filter_by && ($filter_by == 'conv_form' || $filter_by == 'step_form');
31
 
32
  $shortColumn = ArrayHelper::get($atts, 'sort_column', 'id');
33
  $sortBy = ArrayHelper::get($atts, 'sort_by', 'DESC');
@@ -35,33 +35,33 @@ class Form
35
  $query = wpFluent()->table('fluentform_forms')
36
  ->orderBy($shortColumn, $sortBy);
37
 
38
- if ($status && $status != 'all') {
39
  $query->where('status', $status);
40
  }
41
 
42
- if ($filter_by && !$is_filter_by_conv_or_step_form) {
43
- switch ($filter_by) {
44
- case 'published':
45
- $query->where('status', 'published');
46
- break;
47
- case 'unpublished':
48
- $query->where('status', 'unpublished');
49
- break;
50
- case 'post':
51
- $query->where('type', 'post');
52
- break;
53
- case 'is_payment':
54
- $query->where('has_payment', 1);
55
- break;
56
- default:
57
- break;
58
- }
59
- }
60
-
61
- if ($dateRange) {
62
- $query->where('created_at', '>=', $dateRange[0] . ' 00:00:01');
63
- $query->where('created_at', '<=', $dateRange[1] . ' 23:59:59');
64
- }
65
 
66
  if ($search) {
67
  $query->where(function ($q) use ($search) {
@@ -74,24 +74,24 @@ class Form
74
  $total = $query->count();
75
  $skip = $perPage * ($currentPage - 1);
76
 
77
- if ($is_filter_by_conv_or_step_form) {
78
- $data = (array) $query->select('*')->get();
79
- } else {
80
- $data = (array) $query->select('*')->limit($perPage)->offset($skip)->get();
81
- }
82
 
83
- $conversationOrStepForms = [];
84
  foreach ($data as $form) {
85
- $is_conv_form = Helper::isConversionForm($form->id);
86
 
87
  // skip form if filter by conversation form but form is not conversational form
88
- if ($filter_by == 'conv_form' && !$is_conv_form) {
89
- continue;
90
- }
91
  // skip form if filter by step form but form is not step form
92
- if ($filter_by == 'step_form' && !Helper::isMultiStepForm($form->id)) {
93
- continue;
94
- }
95
  $formInstance = $this->form($form);
96
  $form->preview_url = Helper::getPreviewUrl($form->id, 'classic');
97
  $form->edit_url = Helper::getFormAdminPermalink('editor', $form);
@@ -106,34 +106,34 @@ class Form
106
  $form->conversion_preview = Helper::getPreviewUrl($form->id, 'conversational');
107
  }
108
 
109
- if(!$withFields) {
110
  unset($form->form_fields);
111
  }
112
  if ($is_filter_by_conv_or_step_form) {
113
  $conversationOrStepForms[] = $form;
114
  }
115
  }
116
- if ($is_filter_by_conv_or_step_form) {
117
- $total = count($conversationOrStepForms);
118
- $conversationOrStepForms = array_slice($conversationOrStepForms, $skip, $perPage);
119
- $dataCount = count($conversationOrStepForms);
120
- } else {
121
- $dataCount = count($data);
122
- }
123
-
124
- $from = $dataCount > 0 ? ($currentPage - 1) * $perPage + 1 : null;
125
-
126
- $to = $dataCount > 0 ? $from + $dataCount - 1 : null;
127
- $lastPage = (int) ceil($total / $perPage);
128
- return array(
129
- 'current_page' => $currentPage,
130
- 'per_page' => $perPage,
131
- 'from' => $from,
132
- 'to' => $to,
133
- 'last_page' => $lastPage,
134
- 'total' => $total,
135
- 'data' => $is_filter_by_conv_or_step_form ? $conversationOrStepForms : $data,
136
- );
137
  }
138
 
139
  public function find($formId)
@@ -142,13 +142,15 @@ class Form
142
  }
143
 
144
  /**
145
- * get Form Properties instance
 
146
  * @param int|object $form
 
147
  * @return \FluentForm\App\Api\FormProperties
148
  */
149
  public function form($form)
150
  {
151
- if(is_numeric($form)) {
152
  $form = $this->find($form);
153
  }
154
 
@@ -157,11 +159,10 @@ class Form
157
 
158
  public function entryInstance($form)
159
  {
160
- if(is_numeric($form)) {
161
  $form = $this->find($form);
162
  }
163
 
164
  return (new Entry($form));
165
  }
166
-
167
- }
10
  public function forms($atts = [], $withFields = false)
11
  {
12
  $defaultAtts = [
13
+ 'search' => '',
14
+ 'status' => 'all',
15
  'sort_column' => 'id',
16
+ 'filter_by' => 'all',
17
+ 'date_range' => [],
18
+ 'sort_by' => 'DESC',
19
+ 'per_page' => 10,
20
+ 'page' => 1,
21
  ];
22
 
23
  $atts = wp_parse_args($atts, $defaultAtts);
26
  $search = ArrayHelper::get($atts, 'search', '');
27
  $status = ArrayHelper::get($atts, 'status', 'all');
28
  $filter_by = ArrayHelper::get($atts, 'filter_by', 'all');
29
+ $dateRange = ArrayHelper::get($atts, 'date_range', []);
30
+ $is_filter_by_conv_or_step_form = $filter_by && ('conv_form' == $filter_by || 'step_form' == $filter_by);
31
 
32
  $shortColumn = ArrayHelper::get($atts, 'sort_column', 'id');
33
  $sortBy = ArrayHelper::get($atts, 'sort_by', 'DESC');
35
  $query = wpFluent()->table('fluentform_forms')
36
  ->orderBy($shortColumn, $sortBy);
37
 
38
+ if ($status && 'all' != $status) {
39
  $query->where('status', $status);
40
  }
41
 
42
+ if ($filter_by && !$is_filter_by_conv_or_step_form) {
43
+ switch ($filter_by) {
44
+ case 'published':
45
+ $query->where('status', 'published');
46
+ break;
47
+ case 'unpublished':
48
+ $query->where('status', 'unpublished');
49
+ break;
50
+ case 'post':
51
+ $query->where('type', 'post');
52
+ break;
53
+ case 'is_payment':
54
+ $query->where('has_payment', 1);
55
+ break;
56
+ default:
57
+ break;
58
+ }
59
+ }
60
+
61
+ if ($dateRange) {
62
+ $query->where('created_at', '>=', $dateRange[0] . ' 00:00:01');
63
+ $query->where('created_at', '<=', $dateRange[1] . ' 23:59:59');
64
+ }
65
 
66
  if ($search) {
67
  $query->where(function ($q) use ($search) {
74
  $total = $query->count();
75
  $skip = $perPage * ($currentPage - 1);
76
 
77
+ if ($is_filter_by_conv_or_step_form) {
78
+ $data = (array) $query->select('*')->get();
79
+ } else {
80
+ $data = (array) $query->select('*')->limit($perPage)->offset($skip)->get();
81
+ }
82
 
83
+ $conversationOrStepForms = [];
84
  foreach ($data as $form) {
85
+ $is_conv_form = Helper::isConversionForm($form->id);
86
 
87
  // skip form if filter by conversation form but form is not conversational form
88
+ if ('conv_form' == $filter_by && !$is_conv_form) {
89
+ continue;
90
+ }
91
  // skip form if filter by step form but form is not step form
92
+ if ('step_form' == $filter_by && !Helper::isMultiStepForm($form->id)) {
93
+ continue;
94
+ }
95
  $formInstance = $this->form($form);
96
  $form->preview_url = Helper::getPreviewUrl($form->id, 'classic');
97
  $form->edit_url = Helper::getFormAdminPermalink('editor', $form);
106
  $form->conversion_preview = Helper::getPreviewUrl($form->id, 'conversational');
107
  }
108
 
109
+ if (!$withFields) {
110
  unset($form->form_fields);
111
  }
112
  if ($is_filter_by_conv_or_step_form) {
113
  $conversationOrStepForms[] = $form;
114
  }
115
  }
116
+ if ($is_filter_by_conv_or_step_form) {
117
+ $total = count($conversationOrStepForms);
118
+ $conversationOrStepForms = array_slice($conversationOrStepForms, $skip, $perPage);
119
+ $dataCount = count($conversationOrStepForms);
120
+ } else {
121
+ $dataCount = count($data);
122
+ }
123
+
124
+ $from = $dataCount > 0 ? ($currentPage - 1) * $perPage + 1 : null;
125
+
126
+ $to = $dataCount > 0 ? $from + $dataCount - 1 : null;
127
+ $lastPage = (int) ceil($total / $perPage);
128
+ return [
129
+ 'current_page' => $currentPage,
130
+ 'per_page' => $perPage,
131
+ 'from' => $from,
132
+ 'to' => $to,
133
+ 'last_page' => $lastPage,
134
+ 'total' => $total,
135
+ 'data' => $is_filter_by_conv_or_step_form ? $conversationOrStepForms : $data,
136
+ ];
137
  }
138
 
139
  public function find($formId)
142
  }
143
 
144
  /**
145
+ * Get Form Properties instance
146
+ *
147
  * @param int|object $form
148
+ *
149
  * @return \FluentForm\App\Api\FormProperties
150
  */
151
  public function form($form)
152
  {
153
+ if (is_numeric($form)) {
154
  $form = $this->find($form);
155
  }
156
 
159
 
160
  public function entryInstance($form)
161
  {
162
+ if (is_numeric($form)) {
163
  $form = $this->find($form);
164
  }
165
 
166
  return (new Entry($form));
167
  }
168
+ }
 
app/Api/FormProperties.php CHANGED
@@ -16,7 +16,9 @@ class FormProperties
16
 
17
  /**
18
  * Get Form formatted inputs
 
19
  * @param string[] $with
 
20
  * @return array
21
  */
22
  public function inputs($with = ['admin_label', 'raw'])
@@ -26,6 +28,7 @@ class FormProperties
26
 
27
  /**
28
  * Get Form Input labels
 
29
  * @return array
30
  */
31
  public function labels()
@@ -36,6 +39,7 @@ class FormProperties
36
 
37
  /**
38
  * Get Form Fields
 
39
  * @return array
40
  */
41
  public function fields()
@@ -45,6 +49,7 @@ class FormProperties
45
 
46
  /**
47
  * Get Form Settings
 
48
  * @return array
49
  */
50
  public function settings()
@@ -54,7 +59,9 @@ class FormProperties
54
 
55
  /**
56
  * Get Email Notifications as an array
 
57
  * @return array
 
58
  * @throws \WpFluent\Exception
59
  */
60
  public function emailNotifications()
@@ -70,8 +77,8 @@ class FormProperties
70
  foreach ($emailNotifications as $notification) {
71
  $value = \json_decode($notification->value, true);
72
  $formattedNotifications[] = [
73
- 'id' => $notification->id,
74
- 'settings' => $value
75
  ];
76
  }
77
 
@@ -79,9 +86,11 @@ class FormProperties
79
  }
80
 
81
  /**
82
- * get Form metas
 
83
  * @param $metaName
84
  * @param false $default
 
85
  * @return mixed|string
86
  */
87
  public function meta($metaName, $default = false)
@@ -90,24 +99,27 @@ class FormProperties
90
  }
91
 
92
  /**
93
- * get form renerable pass settings as an array
 
94
  * @return array
95
  */
96
  public function renderable()
97
  {
98
- return apply_filters('fluentform_is_form_renderable', array(
99
- 'status' => true,
100
- 'message' => ''
101
- ), $this->form);
102
  }
103
 
104
  public function conversionRate()
105
  {
106
- if (!$this->form->total_Submissions)
107
  return 0;
 
108
 
109
- if (!$this->form->total_views)
110
  return 0;
 
111
 
112
  return ceil(($this->form->total_Submissions / $this->form->total_views) * 100);
113
  }
@@ -144,7 +156,6 @@ class FormProperties
144
  ->count();
145
  }
146
 
147
-
148
  public function __get($name)
149
  {
150
  if (property_exists($this->form, $name)) {
@@ -153,5 +164,4 @@ class FormProperties
153
 
154
  return false;
155
  }
156
-
157
- }
16
 
17
  /**
18
  * Get Form formatted inputs
19
+ *
20
  * @param string[] $with
21
+ *
22
  * @return array
23
  */
24
  public function inputs($with = ['admin_label', 'raw'])
28
 
29
  /**
30
  * Get Form Input labels
31
+ *
32
  * @return array
33
  */
34
  public function labels()
39
 
40
  /**
41
  * Get Form Fields
42
+ *
43
  * @return array
44
  */
45
  public function fields()
49
 
50
  /**
51
  * Get Form Settings
52
+ *
53
  * @return array
54
  */
55
  public function settings()
59
 
60
  /**
61
  * Get Email Notifications as an array
62
+ *
63
  * @return array
64
+ *
65
  * @throws \WpFluent\Exception
66
  */
67
  public function emailNotifications()
77
  foreach ($emailNotifications as $notification) {
78
  $value = \json_decode($notification->value, true);
79
  $formattedNotifications[] = [
80
+ 'id' => $notification->id,
81
+ 'settings' => $value,
82
  ];
83
  }
84
 
86
  }
87
 
88
  /**
89
+ * Get Form metas
90
+ *
91
  * @param $metaName
92
  * @param false $default
93
+ *
94
  * @return mixed|string
95
  */
96
  public function meta($metaName, $default = false)
99
  }
100
 
101
  /**
102
+ * Get form renerable pass settings as an array
103
+ *
104
  * @return array
105
  */
106
  public function renderable()
107
  {
108
+ return apply_filters('fluentform_is_form_renderable', [
109
+ 'status' => true,
110
+ 'message' => '',
111
+ ], $this->form);
112
  }
113
 
114
  public function conversionRate()
115
  {
116
+ if (!$this->form->total_Submissions) {
117
  return 0;
118
+ }
119
 
120
+ if (!$this->form->total_views) {
121
  return 0;
122
+ }
123
 
124
  return ceil(($this->form->total_Submissions / $this->form->total_views) * 100);
125
  }
156
  ->count();
157
  }
158
 
 
159
  public function __get($name)
160
  {
161
  if (property_exists($this->form, $name)) {
164
 
165
  return false;
166
  }
167
+ }
 
app/Api/Submission.php CHANGED
@@ -15,7 +15,7 @@ class Submission
15
  'form_ids' => [],
16
  'sort_type' => 'DESC',
17
  'entry_type' => 'all',
18
- 'user_id' => false
19
  ]);
20
 
21
  $offset = $args['per_page'] * ($args['page'] - 1);
@@ -27,7 +27,7 @@ class Submission
27
 
28
  $type = $args['entry_type'];
29
 
30
- if ($type && $type != 'all') {
31
  $entryQuery->where('status', $type);
32
  }
33
 
@@ -44,7 +44,7 @@ class Submission
44
  });
45
  }
46
 
47
- if($args['user_id']) {
48
  $entryQuery->where('user_id', (int) $args['user_id']);
49
  }
50
 
@@ -57,7 +57,7 @@ class Submission
57
  $from = $dataCount > 0 ? ($args['page'] - 1) * $args['per_page'] + 1 : null;
58
 
59
  $to = $dataCount > 0 ? $from + $dataCount - 1 : null;
60
- $lastPage = (int)ceil($count / $args['per_page']);
61
 
62
  foreach ($data as $datum) {
63
  $datum->response = json_decode($datum->response, true);
@@ -138,7 +138,6 @@ class Submission
138
 
139
  if ($withTransactions) {
140
  $subscription->transactions = $this->transactionsBySubscriptionId($subscription->id);
141
-
142
  }
143
 
144
  return $subscription;
@@ -166,7 +165,7 @@ class Submission
166
  $args = wp_parse_args($args, [
167
  'transaction_types' => [],
168
  'statuses' => [],
169
- 'grouped' => false
170
  ]);
171
 
172
  $query = wpFluent()->table('fluentform_transactions')
@@ -190,7 +189,6 @@ class Submission
190
  }
191
 
192
  return $query->get();
193
-
194
  }
195
 
196
  public function transactionsBySubscriptionId($subscriptionId)
@@ -237,7 +235,7 @@ class Submission
237
 
238
  $args = wp_parse_args($args, [
239
  'statuses' => [],
240
- 'form_title' => false
241
  ]);
242
 
243
  $submissions = wpFluent()->table('fluentform_submissions')
@@ -277,5 +275,4 @@ class Submission
277
  }
278
  return $subscriptions;
279
  }
280
-
281
  }
15
  'form_ids' => [],
16
  'sort_type' => 'DESC',
17
  'entry_type' => 'all',
18
+ 'user_id' => false,
19
  ]);
20
 
21
  $offset = $args['per_page'] * ($args['page'] - 1);
27
 
28
  $type = $args['entry_type'];
29
 
30
+ if ($type && 'all' != $type) {
31
  $entryQuery->where('status', $type);
32
  }
33
 
44
  });
45
  }
46
 
47
+ if ($args['user_id']) {
48
  $entryQuery->where('user_id', (int) $args['user_id']);
49
  }
50
 
57
  $from = $dataCount > 0 ? ($args['page'] - 1) * $args['per_page'] + 1 : null;
58
 
59
  $to = $dataCount > 0 ? $from + $dataCount - 1 : null;
60
+ $lastPage = (int) ceil($count / $args['per_page']);
61
 
62
  foreach ($data as $datum) {
63
  $datum->response = json_decode($datum->response, true);
138
 
139
  if ($withTransactions) {
140
  $subscription->transactions = $this->transactionsBySubscriptionId($subscription->id);
 
141
  }
142
 
143
  return $subscription;
165
  $args = wp_parse_args($args, [
166
  'transaction_types' => [],
167
  'statuses' => [],
168
+ 'grouped' => false,
169
  ]);
170
 
171
  $query = wpFluent()->table('fluentform_transactions')
189
  }
190
 
191
  return $query->get();
 
192
  }
193
 
194
  public function transactionsBySubscriptionId($subscriptionId)
235
 
236
  $args = wp_parse_args($args, [
237
  'statuses' => [],
238
+ 'form_title' => false,
239
  ]);
240
 
241
  $submissions = wpFluent()->table('fluentform_submissions')
275
  }
276
  return $subscriptions;
277
  }
 
278
  }
app/Global/Common.php CHANGED
@@ -9,134 +9,126 @@ use FluentForm\App\Modules\Component\BaseComponent as FluentFormComponent;
9
  use FluentForm\App\Services\FormBuilder\EditorShortCode;
10
  use FluentForm\Framework\Helpers\ArrayHelper;
11
 
12
- if (!function_exists('wpFluentForm')) {
13
- function wpFluentForm($key = null)
14
- {
15
- return FluentForm\App::make($key);
16
- }
17
  }
18
 
19
- if (!function_exists('wpFluentFormAddComponent')) {
20
- function wpFluentFormAddComponent(FluentFormComponent $component)
21
- {
22
- return $component->_init();
23
- }
24
  }
25
 
26
- if (!function_exists('dd')) {
27
  function dd()
28
  {
29
  foreach (func_get_args() as $value) {
30
- echo "<pre>";
31
- print_r($value);
32
- echo "</pre><br>";
33
  }
34
  die;
35
  }
36
  }
37
 
38
- if (!function_exists('fluentformMix')) {
39
- /**
40
- * Get the path to a versioned Mix file.
41
- *
42
- * @param string $path
43
- * @param string $manifestDirectory
44
- *
45
- * @return string
46
- * @throws \Exception
47
- */
48
- function fluentformMix($path, $manifestDirectory = '')
49
- {
50
- $publicUrl = \FluentForm\App::publicUrl();
51
- return $publicUrl . $path;
52
- }
53
  }
54
 
55
- if (!function_exists('fluentFormSanitizer')) {
56
- /**
57
- * Sanitize form inputs recursively.
58
- *
59
- * @param $input
60
- *
61
- * @return string $input
62
- */
63
- function fluentFormSanitizer($input, $attribute = null, $fields = [])
64
- {
65
- if (is_string($input)) {
66
- if (ArrayHelper::get($fields, $attribute . '.element') === 'post_content' || ArrayHelper::get($fields, $attribute . '.element') === 'rich_text_input' ) {
67
- return wp_kses_post($input);
68
- } elseif (ArrayHelper::get($fields, $attribute . '.element') === 'textarea') {
69
- $input = sanitize_textarea_field($input);
70
- } elseif (ArrayHelper::get($fields, $attribute . '.element') === 'input_email') {
71
- $input = strtolower(sanitize_text_field($input));
72
- } elseif (ArrayHelper::get($fields, $attribute . '.element') === 'input_url') {
73
- $input = sanitize_url($input);
74
- } else {
75
- $input = sanitize_text_field($input);
76
- }
77
- } elseif (is_array($input)) {
78
- foreach ($input as $key => &$value) {
79
- $attribute = $attribute ? $attribute . '[' . $key . ']' : $key;
 
80
 
81
- $value = fluentFormSanitizer($value, $attribute, $fields);
82
 
83
- $attribute = null;
84
- }
85
  }
86
-
87
- return $input;
88
  }
 
 
89
  }
90
 
91
- if (!function_exists('fluentFormEditorShortCodes')) {
92
- function fluentFormEditorShortCodes()
93
- {
94
- return apply_filters('fluentform_editor_shortcodes', [
95
- EditorShortCode::getGeneralShortCodes()
96
- ]);
97
- }
98
  }
99
 
100
- if (!function_exists('fluentFormGetAllEditorShortCodes')) {
101
- function fluentFormGetAllEditorShortCodes($form)
102
- {
103
- return apply_filters(
104
- 'fluentform_all_editor_shortcodes',
105
- EditorShortCode::getShortCodes($form),
106
- $form
107
- );
108
- }
109
  }
110
 
111
- if (!function_exists('fluentImplodeRecursive')) {
112
- /**
113
- * Recursively implode a multi-dimentional array
114
- * @param string $glue
115
- * @param array $array
116
- * @return string
117
- */
118
- function fluentImplodeRecursive($glue, array $array)
119
- {
120
- $fn = function ($glue, array $array) use (&$fn) {
121
- $result = '';
122
- foreach ($array as $item) {
123
- if (is_array($item)) {
124
- $result .= $fn($glue, $item);
125
- } else {
126
- $result .= $glue . $item;
127
- }
128
  }
129
- return $result;
130
- };
 
131
 
132
- return ltrim($fn($glue, $array), $glue);
133
- }
134
  }
135
 
136
-
137
  function fluentform_get_active_theme_slug()
138
  {
139
- if ($ins = get_option('_ff_ins_by')) {
 
 
140
  return sanitize_text_field($ins);
141
  }
142
 
@@ -146,39 +138,31 @@ function fluentform_get_active_theme_slug()
146
  return get_option('template');
147
  }
148
 
149
- if (!function_exists('getFluentFormCountryList')) {
150
- function getFluentFormCountryList()
151
- {
152
- static $countries = null;
153
- if (is_null($countries)) {
154
- $countries = require(
155
- FluentForm\App::appPath('/Services/FormBuilder/CountryNames.php')
156
- );
157
- }
158
- return $countries;
159
  }
 
160
  }
161
 
162
- if (!function_exists('fluentFormWasSubmitted')) {
163
- function fluentFormWasSubmitted($action = 'fluentform_submit')
164
- {
165
- return wpFluentForm('request')->get('action') == $action;
166
- }
167
  }
168
 
169
- if (!function_exists('isWpAsyncRequest')) {
170
  function isWpAsyncRequest($action)
171
  {
172
- return strpos(wpFluentForm('request')->get('action'), $action) !== false;
173
  }
174
  }
175
 
176
- if (!function_exists('fluentFormIsHandlingSubmission')) {
177
- function fluentFormIsHandlingSubmission()
178
- {
179
- $status = fluentFormWasSubmitted() || isWpAsyncRequest('fluentform_async_request');
180
- return apply_filters('fluentform_is_handling_submission', $status);
181
- }
182
  }
183
 
184
  function fluentform_mb_strpos($haystack, $needle)
@@ -218,13 +202,13 @@ function fluentform_integrations_url()
218
 
219
  function fluentFormApi($module = 'forms')
220
  {
221
- if ($module == 'forms') {
222
  return (new \FluentForm\App\Api\Form());
223
- } elseif ($module == 'submissions') {
224
  return (new \FluentForm\App\Api\Submission());
225
  }
226
 
227
- throw new \Exception('No Module found with name '. $module);
228
  }
229
 
230
  function fluentFormGetRandomPhoto()
@@ -234,7 +218,7 @@ function fluentFormGetRandomPhoto()
234
  'demo_2.jpg',
235
  'demo_3.jpg',
236
  'demo_4.jpg',
237
- 'demo_5.jpg'
238
  ];
239
 
240
  $selected = array_rand($photos, 1);
@@ -244,21 +228,19 @@ function fluentFormGetRandomPhoto()
244
  return fluentformMix('img/conversational/' . $photoName);
245
  }
246
 
247
- if (! function_exists('fluentFormRender')) {
248
- function fluentFormRender($atts)
249
- {
250
- $shortcodeDefaults = array(
251
- 'id' => null,
252
- 'title' => null,
253
- 'css_classes' => '',
254
- 'permission' => '',
255
- 'type' => 'classic',
256
- 'permission_message' => __('Sorry, You do not have permission to view this form', 'fluentform')
257
- );
258
- $atts = shortcode_atts($shortcodeDefaults, $atts);
259
-
260
- return (new \FluentForm\App\Modules\Component\Component(wpFluentForm()))->renderForm($atts);
261
- }
262
  }
263
 
264
  /**
@@ -266,23 +248,22 @@ if (! function_exists('fluentFormRender')) {
266
  */
267
  function fluentFormPrintUnescapedInternalString($string)
268
  {
269
- echo $string; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
270
  }
271
 
272
-
273
  function fluentform_options_sanitize($options)
274
  {
275
  $maps = [
276
- 'label' => 'wp_kses_post',
277
- 'value' => 'sanitize_text_field',
278
- 'image' => 'sanitize_url',
279
- 'calc_value' => 'sanitize_text_field'
280
  ];
281
 
282
  $mapKeys = array_keys($maps);
283
 
284
  foreach ($options as $optionIndex => $option) {
285
- $attributes = array_filter(\FluentForm\Framework\Helpers\ArrayHelper::only($option, $mapKeys));
286
  foreach ($attributes as $key => $value) {
287
  $options[$optionIndex][$key] = call_user_func($maps[$key], $value);
288
  }
@@ -293,7 +274,7 @@ function fluentform_options_sanitize($options)
293
 
294
  function fluentform_sanitize_html($html)
295
  {
296
- if (!$html) {
297
  return $html;
298
  }
299
 
@@ -320,8 +301,8 @@ function fluentform_sanitize_html($html)
320
 
321
  //svg
322
  if (empty($tags['svg'])) {
323
- $svg_args = array(
324
- 'svg' => array(
325
  'class' => true,
326
  'aria-hidden' => true,
327
  'aria-labelledby' => true,
@@ -330,14 +311,15 @@ function fluentform_sanitize_html($html)
330
  'width' => true,
331
  'height' => true,
332
  'viewbox' => true, // <= Must be lower case!
333
- ),
334
- 'g' => array('fill' => true),
335
- 'title' => array('title' => true),
336
- 'path' => array(
337
- 'd' => true,
338
- 'fill' => true,
339
- )
340
- );
 
341
  $tags = array_merge($tags, $svg_args);
342
  }
343
 
@@ -346,28 +328,42 @@ function fluentform_sanitize_html($html)
346
  return wp_kses($html, $tags);
347
  }
348
 
349
- if (!function_exists('fluentform_backend_sanitizer')) {
350
- /**
351
- * Sanitize inputs recursively.
352
- *
353
- * @param array $input
354
- * @param array $sanitizeMap
355
- * @return array $input
356
- */
357
- function fluentform_backend_sanitizer($array, $sanitizeMap = [])
358
- {
359
- foreach ($array as $key => &$value) {
360
- if (is_array($value)) {
361
- $value = fluentform_backend_sanitizer($value, $sanitizeMap);
362
- } else {
363
- $method = ArrayHelper::get($sanitizeMap, $key);
364
-
365
- if (is_callable($method)) {
366
- $value = call_user_func($method, $value);
367
- }
368
  }
369
  }
370
-
371
- return apply_filters('fluent_backend_sanitized_values', $array);
372
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
373
  }
9
  use FluentForm\App\Services\FormBuilder\EditorShortCode;
10
  use FluentForm\Framework\Helpers\ArrayHelper;
11
 
12
+ function wpFluentForm($key = null)
13
+ {
14
+ return FluentForm\App::make($key);
 
 
15
  }
16
 
17
+ function wpFluentFormAddComponent(FluentFormComponent $component)
18
+ {
19
+ return $component->_init();
 
 
20
  }
21
 
22
+ if (! function_exists('dd')) {
23
  function dd()
24
  {
25
  foreach (func_get_args() as $value) {
26
+ echo '<pre>';
27
+ print_r($value); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $value is only used for debugging in development.
28
+ echo '</pre><br>';
29
  }
30
  die;
31
  }
32
  }
33
 
34
+ /**
35
+ * Get the path to a versioned Mix file.
36
+ *
37
+ * @param string $path
38
+ * @param string $manifestDirectory
39
+ *
40
+ * @return string
41
+ *
42
+ * @throws \Exception
43
+ */
44
+ function fluentformMix($path, $manifestDirectory = '')
45
+ {
46
+ $publicUrl = \FluentForm\App::publicUrl();
47
+ return $publicUrl . $path;
 
48
  }
49
 
50
+ /**
51
+ * Sanitize form inputs recursively.
52
+ *
53
+ * @param $input
54
+ *
55
+ * @return string $input
56
+ */
57
+ function fluentFormSanitizer($input, $attribute = null, $fields = [])
58
+ {
59
+ if (is_string($input)) {
60
+ $element = ArrayHelper::get($fields, $attribute . '.element');
61
+
62
+ if (in_array($element, ['post_content', 'rich_text_input'])) {
63
+ return wp_kses_post($input);
64
+ } elseif ('textarea' === $element) {
65
+ $input = sanitize_textarea_field($input);
66
+ } elseif ('input_email' === $element) {
67
+ $input = strtolower(sanitize_text_field($input));
68
+ } elseif ('input_url' === $element) {
69
+ $input = sanitize_url($input);
70
+ } else {
71
+ $input = sanitize_text_field($input);
72
+ }
73
+ } elseif (is_array($input)) {
74
+ foreach ($input as $key => &$value) {
75
+ $attribute = $attribute ? $attribute . '[' . $key . ']' : $key;
76
 
77
+ $value = fluentFormSanitizer($value, $attribute, $fields);
78
 
79
+ $attribute = null;
 
80
  }
 
 
81
  }
82
+
83
+ return $input;
84
  }
85
 
86
+ function fluentFormEditorShortCodes()
87
+ {
88
+ return apply_filters('fluentform_editor_shortcodes', [
89
+ EditorShortCode::getGeneralShortCodes(),
90
+ ]);
 
 
91
  }
92
 
93
+ function fluentFormGetAllEditorShortCodes($form)
94
+ {
95
+ return apply_filters(
96
+ 'fluentform_all_editor_shortcodes',
97
+ EditorShortCode::getShortCodes($form),
98
+ $form
99
+ );
 
 
100
  }
101
 
102
+ /**
103
+ * Recursively implode a multi-dimentional array
104
+ *
105
+ * @param string $glue
106
+ * @param array $array
107
+ *
108
+ * @return string
109
+ */
110
+ function fluentImplodeRecursive($glue, array $array)
111
+ {
112
+ $fn = function ($glue, array $array) use (&$fn) {
113
+ $result = '';
114
+ foreach ($array as $item) {
115
+ if (is_array($item)) {
116
+ $result .= $fn($glue, $item);
117
+ } else {
118
+ $result .= $glue . $item;
119
  }
120
+ }
121
+ return $result;
122
+ };
123
 
124
+ return ltrim($fn($glue, $array), $glue);
 
125
  }
126
 
 
127
  function fluentform_get_active_theme_slug()
128
  {
129
+ $ins = get_option('_ff_ins_by');
130
+
131
+ if ($ins) {
132
  return sanitize_text_field($ins);
133
  }
134
 
138
  return get_option('template');
139
  }
140
 
141
+ function getFluentFormCountryList()
142
+ {
143
+ static $countries = null;
144
+ if (is_null($countries)) {
145
+ $countries = require FluentForm\App::appPath('/Services/FormBuilder/CountryNames.php');
 
 
 
 
 
146
  }
147
+ return $countries;
148
  }
149
 
150
+ function fluentFormWasSubmitted($action = 'fluentform_submit')
151
+ {
152
+ return wpFluentForm('request')->get('action') == $action;
 
 
153
  }
154
 
155
+ if (! function_exists('isWpAsyncRequest')) {
156
  function isWpAsyncRequest($action)
157
  {
158
+ return false !== strpos(wpFluentForm('request')->get('action'), $action);
159
  }
160
  }
161
 
162
+ function fluentFormIsHandlingSubmission()
163
+ {
164
+ $status = fluentFormWasSubmitted() || isWpAsyncRequest('fluentform_async_request');
165
+ return apply_filters('fluentform_is_handling_submission', $status);
 
 
166
  }
167
 
168
  function fluentform_mb_strpos($haystack, $needle)
202
 
203
  function fluentFormApi($module = 'forms')
204
  {
205
+ if ('forms' == $module) {
206
  return (new \FluentForm\App\Api\Form());
207
+ } elseif ('submissions' == $module) {
208
  return (new \FluentForm\App\Api\Submission());
209
  }
210
 
211
+ throw new \Exception('No Module found with name ' . $module);
212
  }
213
 
214
  function fluentFormGetRandomPhoto()
218
  'demo_2.jpg',
219
  'demo_3.jpg',
220
  'demo_4.jpg',
221
+ 'demo_5.jpg',
222
  ];
223
 
224
  $selected = array_rand($photos, 1);
228
  return fluentformMix('img/conversational/' . $photoName);
229
  }
230
 
231
+ function fluentFormRender($atts)
232
+ {
233
+ $shortcodeDefaults = [
234
+ 'id' => null,
235
+ 'title' => null,
236
+ 'css_classes' => '',
237
+ 'permission' => '',
238
+ 'type' => 'classic',
239
+ 'permission_message' => __('Sorry, You do not have permission to view this form', 'fluentform'),
240
+ ];
241
+ $atts = shortcode_atts($shortcodeDefaults, $atts);
242
+
243
+ return (new \FluentForm\App\Modules\Component\Component(wpFluentForm()))->renderForm($atts);
 
 
244
  }
245
 
246
  /**
248
  */
249
  function fluentFormPrintUnescapedInternalString($string)
250
  {
251
+ echo $string; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- deprecated function, should remove it later.
252
  }
253
 
 
254
  function fluentform_options_sanitize($options)
255
  {
256
  $maps = [
257
+ 'label' => 'wp_kses_post',
258
+ 'value' => 'sanitize_text_field',
259
+ 'image' => 'sanitize_url',
260
+ 'calc_value' => 'sanitize_text_field',
261
  ];
262
 
263
  $mapKeys = array_keys($maps);
264
 
265
  foreach ($options as $optionIndex => $option) {
266
+ $attributes = array_filter(ArrayHelper::only($option, $mapKeys));
267
  foreach ($attributes as $key => $value) {
268
  $options[$optionIndex][$key] = call_user_func($maps[$key], $value);
269
  }
274
 
275
  function fluentform_sanitize_html($html)
276
  {
277
+ if (! $html) {
278
  return $html;
279
  }
280
 
301
 
302
  //svg
303
  if (empty($tags['svg'])) {
304
+ $svg_args = [
305
+ 'svg' => [
306
  'class' => true,
307
  'aria-hidden' => true,
308
  'aria-labelledby' => true,
311
  'width' => true,
312
  'height' => true,
313
  'viewbox' => true, // <= Must be lower case!
314
+ ],
315
+ 'g' => ['fill' => true],
316
+ 'title' => ['title' => true],
317
+ 'path' => [
318
+ 'd' => true,
319
+ 'fill' => true,
320
+ 'transform' => true
321
+ ],
322
+ ];
323
  $tags = array_merge($tags, $svg_args);
324
  }
325
 
328
  return wp_kses($html, $tags);
329
  }
330
 
331
+ /**
332
+ * Sanitize inputs recursively.
333
+ *
334
+ * @param array $input
335
+ * @param array $sanitizeMap
336
+ *
337
+ * @return array $input
338
+ */
339
+ function fluentform_backend_sanitizer($array, $sanitizeMap = [])
340
+ {
341
+ foreach ($array as $key => &$value) {
342
+ if (is_array($value)) {
343
+ $value = fluentform_backend_sanitizer($value, $sanitizeMap);
344
+ } else {
345
+ $method = ArrayHelper::get($sanitizeMap, $key);
346
+
347
+ if (is_callable($method)) {
348
+ $value = call_user_func($method, $value);
 
349
  }
350
  }
 
 
351
  }
352
+
353
+ return apply_filters('fluent_backend_sanitized_values', $array);
354
+ }
355
+
356
+ /**
357
+ * Sanitizes CSS.
358
+ *
359
+ * @return mixed $css
360
+ */
361
+ function fluentformSanitizeCSS($css)
362
+ {
363
+ return preg_match('#</?\w+#', $css) ? '' : $css;
364
+ }
365
+
366
+ function fluentformCanUnfilteredHTML()
367
+ {
368
+ return current_user_can('unfiltered_html') || apply_filters('fluent_form_disable_fields_sanitize', false);
369
  }
app/Helpers/Helper.php CHANGED
@@ -84,18 +84,17 @@ class Helper
84
  return json_last_error() === JSON_ERROR_NONE;
85
  }
86
 
87
-
88
  public static function isSlackEnabled()
89
  {
90
  $globalModules = get_option('fluentform_global_modules_status');
91
- return $globalModules && isset($globalModules['slack']) && $globalModules['slack'] == 'yes';
92
  }
93
 
94
  public static function getEntryStatuses($form_id = false)
95
  {
96
  $statuses = apply_filters('fluentform_entry_statuses_core', [
97
  'unread' => 'Unread',
98
- 'read' => 'Read'
99
  ], $form_id);
100
  $statuses['trashed'] = 'Trashed';
101
  return $statuses;
@@ -110,14 +109,14 @@ class Helper
110
  'ratings',
111
  'net_promoter',
112
  'select_country',
113
- 'net_promoter_score'
114
  ]);
115
  }
116
 
117
  public static function getSubFieldReportableInputs()
118
  {
119
  return apply_filters('fluentform_subfield_reportable_inputs', [
120
- 'tabular_grid'
121
  ]);
122
  }
123
 
@@ -158,14 +157,14 @@ class Helper
158
  ->insert([
159
  'meta_key' => $metaKey,
160
  'form_id' => $formId,
161
- 'value' => $value
162
  ]);
163
  return $insetid;
164
  } else {
165
  wpFluent()->table('fluentform_form_meta')
166
  ->where('id', $meta->id)
167
  ->update([
168
- 'value' => $value
169
  ]);
170
  }
171
 
@@ -201,7 +200,7 @@ class Helper
201
  ->where('id', $meta->id)
202
  ->insert([
203
  'value' => $value,
204
- 'updated_at' => current_time('mysql')
205
  ]);
206
  return $meta->id;
207
  }
@@ -221,7 +220,7 @@ class Helper
221
  'meta_key' => $metaKey,
222
  'value' => $value,
223
  'created_at' => current_time('mysql'),
224
- 'updated_at' => current_time('mysql')
225
  ]);
226
  }
227
 
@@ -262,7 +261,6 @@ class Helper
262
  return '';
263
  }
264
 
265
-
266
  if ($formSettings && $extraClass = ArrayHelper::get($formSettings, 'form_extra_css_class')) {
267
  return esc_attr($extraClass);
268
  }
@@ -300,12 +298,14 @@ class Helper
300
  'fluent_forms_add_ons',
301
  'fluent_forms_docs',
302
  'fluent_forms_payment_entries',
303
- 'fluent_forms_smtp'
304
  ];
305
 
306
  $status = true;
307
 
308
- if (!isset($_GET['page']) || !in_array($_GET['page'], $fluentPages)) {
 
 
309
  $status = false;
310
  }
311
 
@@ -343,7 +343,7 @@ class Helper
343
 
344
  public static function isTabIndexEnabled()
345
  {
346
- if (static::$tabIndexStatus == 'na') {
347
  $globalSettings = get_option('_fluentform_global_form_settings');
348
  static::$tabIndexStatus = ArrayHelper::get($globalSettings, 'misc.tabIndex') == 'yes';
349
  }
@@ -380,7 +380,7 @@ class Helper
380
  ->first();
381
  if ($exist) {
382
  return [
383
- 'unique' => ArrayHelper::get($field, 'raw.settings.unique_validation_message')
384
  ];
385
  }
386
  }
@@ -391,52 +391,52 @@ class Helper
391
 
392
  public static function getNumericFormatters()
393
  {
394
- return apply_filters('fluentform_numeric_styles', array(
395
- 'none' => array(
396
  'value' => '',
397
- 'label' => 'None'
398
- ),
399
- 'comma_dot_style' => array(
400
  'value' => 'comma_dot_style',
401
  'label' => __('US Style with Decimal (EX: 123,456.00)', 'fluentform'),
402
  'settings' => [
403
  'decimal' => '.',
404
  'separator' => ',',
405
  'precision' => 2,
406
- 'symbol' => ''
407
- ]
408
- ),
409
- 'dot_comma_style_zero' => array(
410
  'value' => 'dot_comma_style_zero',
411
  'label' => __('US Style without Decimal (Ex: 123,456,789)', 'fluentform'),
412
  'settings' => [
413
  'decimal' => '.',
414
  'separator' => ',',
415
  'precision' => 0,
416
- 'symbol' => ''
417
- ]
418
- ),
419
- 'dot_comma_style' => array(
420
  'value' => 'dot_comma_style',
421
  'label' => __('EU Style with Decimal (Ex: 123.456,00)', 'fluentform'),
422
  'settings' => [
423
  'decimal' => ',',
424
  'separator' => '.',
425
  'precision' => 2,
426
- 'symbol' => ''
427
- ]
428
- ),
429
- 'comma_dot_style_zero' => array(
430
  'value' => 'comma_dot_style_zero',
431
  'label' => __('EU Style without Decimal (EX: 123.456.789)', 'fluentform'),
432
  'settings' => [
433
  'decimal' => ',',
434
  'separator' => '.',
435
  'precision' => 0,
436
- 'symbol' => ''
437
- ]
438
- )
439
- ));
440
  }
441
 
442
  public static function getNumericValue($input, $formatterName)
@@ -512,9 +512,9 @@ class Helper
512
 
513
  public static function getPreviewUrl($formId, $type = '')
514
  {
515
- if ($type == 'conversational') {
516
  return self::getConversionUrl($formId);
517
- } elseif ($type == 'classic') {
518
  return site_url('?fluent_forms_pages=1&design_mode=1&preview_id=' . $formId) . '#ff_preview';
519
  } else {
520
  if (self::isConversionForm($formId)) {
@@ -542,27 +542,27 @@ class Helper
542
  $meta = self::getFormMeta($formId, 'ffc_form_settings_meta', []);
543
  $key = ArrayHelper::get($meta, 'share_key', '');
544
  $paramKey = apply_filters('fluentform_conversational_url_slug', 'fluent-form');
545
- if ($paramKey == 'form') {
546
  $paramKey = 'fluent-form';
547
  }
548
  if ($key) {
549
- return site_url('?'.$paramKey.'=' . $formId . '&form=' . $key);
550
  }
551
- return site_url('?'.$paramKey.'=' . $formId);
552
  }
553
 
554
  public static function fileUploadLocations()
555
  {
556
- $locations = array(
557
- array(
558
  'value' => 'default',
559
  'label' => __('Fluentforms Default', 'fluentform'),
560
- ),
561
- array(
562
  'value' => 'wp_media',
563
  'label' => __('Media Library', 'fluentform'),
564
- ),
565
- );
566
 
567
  return apply_filters('fluentform_file_upload_options', $locations);
568
  }
@@ -582,13 +582,12 @@ class Helper
582
  ->orderBy('id', 'DESC')
583
  ->get();
584
 
585
-
586
- $forms = array();
587
 
588
  if ($ff_list) {
589
  $forms[0] = esc_html__('Select a Fluent Forms', 'fluentform');
590
  foreach ($ff_list as $form) {
591
- $forms[$form->id] = esc_html($form->title) .' ('.$form->id.')';
592
  }
593
  } else {
594
  $forms[0] = esc_html__('Create a Form First', 'fluentform');
@@ -633,11 +632,20 @@ class Helper
633
 
634
  public static function shouldHidePassword($formId)
635
  {
636
- return apply_filters('fluentform_truncate_password_values', true, $formId) &&
637
  (
638
- (defined('FLUENTFORM_RENDERING_ENTRIES') && FLUENTFORM_RENDERING_ENTRIES) ||
639
  (defined('FLUENTFORM_RENDERING_ENTRY') && FLUENTFORM_RENDERING_ENTRY) ||
640
  (defined('FLUENTFORM_EXPORTING_ENTRIES') && FLUENTFORM_EXPORTING_ENTRIES)
641
  );
642
  }
 
 
 
 
 
 
 
 
 
643
  }
84
  return json_last_error() === JSON_ERROR_NONE;
85
  }
86
 
 
87
  public static function isSlackEnabled()
88
  {
89
  $globalModules = get_option('fluentform_global_modules_status');
90
+ return $globalModules && isset($globalModules['slack']) && 'yes' == $globalModules['slack'];
91
  }
92
 
93
  public static function getEntryStatuses($form_id = false)
94
  {
95
  $statuses = apply_filters('fluentform_entry_statuses_core', [
96
  'unread' => 'Unread',
97
+ 'read' => 'Read',
98
  ], $form_id);
99
  $statuses['trashed'] = 'Trashed';
100
  return $statuses;
109
  'ratings',
110
  'net_promoter',
111
  'select_country',
112
+ 'net_promoter_score',
113
  ]);
114
  }
115
 
116
  public static function getSubFieldReportableInputs()
117
  {
118
  return apply_filters('fluentform_subfield_reportable_inputs', [
119
+ 'tabular_grid',
120
  ]);
121
  }
122
 
157
  ->insert([
158
  'meta_key' => $metaKey,
159
  'form_id' => $formId,
160
+ 'value' => $value,
161
  ]);
162
  return $insetid;
163
  } else {
164
  wpFluent()->table('fluentform_form_meta')
165
  ->where('id', $meta->id)
166
  ->update([
167
+ 'value' => $value,
168
  ]);
169
  }
170
 
200
  ->where('id', $meta->id)
201
  ->insert([
202
  'value' => $value,
203
+ 'updated_at' => current_time('mysql'),
204
  ]);
205
  return $meta->id;
206
  }
220
  'meta_key' => $metaKey,
221
  'value' => $value,
222
  'created_at' => current_time('mysql'),
223
+ 'updated_at' => current_time('mysql'),
224
  ]);
225
  }
226
 
261
  return '';
262
  }
263
 
 
264
  if ($formSettings && $extraClass = ArrayHelper::get($formSettings, 'form_extra_css_class')) {
265
  return esc_attr($extraClass);
266
  }
298
  'fluent_forms_add_ons',
299
  'fluent_forms_docs',
300
  'fluent_forms_payment_entries',
301
+ 'fluent_forms_smtp',
302
  ];
303
 
304
  $status = true;
305
 
306
+ $page = wpFluentForm('request')->get('page');
307
+
308
+ if (!$page || !in_array($page, $fluentPages)) {
309
  $status = false;
310
  }
311
 
343
 
344
  public static function isTabIndexEnabled()
345
  {
346
+ if ('na' == static::$tabIndexStatus) {
347
  $globalSettings = get_option('_fluentform_global_form_settings');
348
  static::$tabIndexStatus = ArrayHelper::get($globalSettings, 'misc.tabIndex') == 'yes';
349
  }
380
  ->first();
381
  if ($exist) {
382
  return [
383
+ 'unique' => ArrayHelper::get($field, 'raw.settings.unique_validation_message'),
384
  ];
385
  }
386
  }
391
 
392
  public static function getNumericFormatters()
393
  {
394
+ return apply_filters('fluentform_numeric_styles', [
395
+ 'none' => [
396
  'value' => '',
397
+ 'label' => 'None',
398
+ ],
399
+ 'comma_dot_style' => [
400
  'value' => 'comma_dot_style',
401
  'label' => __('US Style with Decimal (EX: 123,456.00)', 'fluentform'),
402
  'settings' => [
403
  'decimal' => '.',
404
  'separator' => ',',
405
  'precision' => 2,
406
+ 'symbol' => '',
407
+ ],
408
+ ],
409
+ 'dot_comma_style_zero' => [
410
  'value' => 'dot_comma_style_zero',
411
  'label' => __('US Style without Decimal (Ex: 123,456,789)', 'fluentform'),
412
  'settings' => [
413
  'decimal' => '.',
414
  'separator' => ',',
415
  'precision' => 0,
416
+ 'symbol' => '',
417
+ ],
418
+ ],
419
+ 'dot_comma_style' => [
420
  'value' => 'dot_comma_style',
421
  'label' => __('EU Style with Decimal (Ex: 123.456,00)', 'fluentform'),
422
  'settings' => [
423
  'decimal' => ',',
424
  'separator' => '.',
425
  'precision' => 2,
426
+ 'symbol' => '',
427
+ ],
428
+ ],
429
+ 'comma_dot_style_zero' => [
430
  'value' => 'comma_dot_style_zero',
431
  'label' => __('EU Style without Decimal (EX: 123.456.789)', 'fluentform'),
432
  'settings' => [
433
  'decimal' => ',',
434
  'separator' => '.',
435
  'precision' => 0,
436
+ 'symbol' => '',
437
+ ],
438
+ ],
439
+ ]);
440
  }
441
 
442
  public static function getNumericValue($input, $formatterName)
512
 
513
  public static function getPreviewUrl($formId, $type = '')
514
  {
515
+ if ('conversational' == $type) {
516
  return self::getConversionUrl($formId);
517
+ } elseif ('classic' == $type) {
518
  return site_url('?fluent_forms_pages=1&design_mode=1&preview_id=' . $formId) . '#ff_preview';
519
  } else {
520
  if (self::isConversionForm($formId)) {
542
  $meta = self::getFormMeta($formId, 'ffc_form_settings_meta', []);
543
  $key = ArrayHelper::get($meta, 'share_key', '');
544
  $paramKey = apply_filters('fluentform_conversational_url_slug', 'fluent-form');
545
+ if ('form' == $paramKey) {
546
  $paramKey = 'fluent-form';
547
  }
548
  if ($key) {
549
+ return site_url('?' . $paramKey . '=' . $formId . '&form=' . $key);
550
  }
551
+ return site_url('?' . $paramKey . '=' . $formId);
552
  }
553
 
554
  public static function fileUploadLocations()
555
  {
556
+ $locations = [
557
+ [
558
  'value' => 'default',
559
  'label' => __('Fluentforms Default', 'fluentform'),
560
+ ],
561
+ [
562
  'value' => 'wp_media',
563
  'label' => __('Media Library', 'fluentform'),
564
+ ],
565
+ ];
566
 
567
  return apply_filters('fluentform_file_upload_options', $locations);
568
  }
582
  ->orderBy('id', 'DESC')
583
  ->get();
584
 
585
+ $forms = [];
 
586
 
587
  if ($ff_list) {
588
  $forms[0] = esc_html__('Select a Fluent Forms', 'fluentform');
589
  foreach ($ff_list as $form) {
590
+ $forms[$form->id] = esc_html($form->title) . ' (' . $form->id . ')';
591
  }
592
  } else {
593
  $forms[0] = esc_html__('Create a Form First', 'fluentform');
632
 
633
  public static function shouldHidePassword($formId)
634
  {
635
+ return apply_filters('fluentform_truncate_password_values', true, $formId) &&
636
  (
637
+ (defined('FLUENTFORM_RENDERING_ENTRIES') && FLUENTFORM_RENDERING_ENTRIES) ||
638
  (defined('FLUENTFORM_RENDERING_ENTRY') && FLUENTFORM_RENDERING_ENTRY) ||
639
  (defined('FLUENTFORM_EXPORTING_ENTRIES') && FLUENTFORM_EXPORTING_ENTRIES)
640
  );
641
  }
642
+
643
+ public static function getInputNameFromShortCode($value)
644
+ {
645
+ preg_match('/{+(.*?)}/', $value, $matches);
646
+ if ($matches && strpos($matches[1], 'inputs.') !== false) {
647
+ return substr($matches[1], strlen('inputs.'));
648
+ }
649
+ return '';
650
+ }
651
  }
app/Helpers/Protector.php CHANGED
@@ -22,15 +22,18 @@ class Protector
22
 
23
  /**
24
  * Encryp a text using a predefined salt.
25
- *
26
  * @param string $text
 
27
  * @return string $text
28
  */
29
  public static function encrypt($text)
30
  {
31
  $key = static::getSalt();
32
 
33
- $ivlen = openssl_cipher_iv_length($cipher = "AES-128-CBC");
 
 
34
 
35
  $iv = openssl_random_pseudo_bytes($ivlen);
36
 
@@ -43,8 +46,9 @@ class Protector
43
 
44
  /**
45
  * Decrypt a text using a predefined salt.
46
- *
47
  * @param string $text
 
48
  * @return string $text
49
  */
50
  public static function decrypt($text)
@@ -53,7 +57,9 @@ class Protector
53
 
54
  $c = base64_decode($text);
55
 
56
- $ivlen = openssl_cipher_iv_length($cipher = "AES-128-CBC");
 
 
57
 
58
  $iv = substr($c, 0, $ivlen);
59
 
@@ -65,8 +71,7 @@ class Protector
65
 
66
  $calcmac = hash_hmac('sha256', $ciphertext_raw, $key, $as_binary = true);
67
 
68
- if (hash_equals($hmac, $calcmac)) // timing attack safe comparison
69
- {
70
  return $original_plaintext;
71
  }
72
  }
22
 
23
  /**
24
  * Encryp a text using a predefined salt.
25
+ *
26
  * @param string $text
27
+ *
28
  * @return string $text
29
  */
30
  public static function encrypt($text)
31
  {
32
  $key = static::getSalt();
33
 
34
+ $cipher = 'AES-128-CBC';
35
+
36
+ $ivlen = openssl_cipher_iv_length($cipher);
37
 
38
  $iv = openssl_random_pseudo_bytes($ivlen);
39
 
46
 
47
  /**
48
  * Decrypt a text using a predefined salt.
49
+ *
50
  * @param string $text
51
+ *
52
  * @return string $text
53
  */
54
  public static function decrypt($text)
57
 
58
  $c = base64_decode($text);
59
 
60
+ $cipher = 'AES-128-CBC';
61
+
62
+ $ivlen = openssl_cipher_iv_length($cipher);
63
 
64
  $iv = substr($c, 0, $ivlen);
65
 
71
 
72
  $calcmac = hash_hmac('sha256', $ciphertext_raw, $key, $as_binary = true);
73
 
74
+ if (hash_equals($hmac, $calcmac)) { // timing attack safe comparison
 
75
  return $original_plaintext;
76
  }
77
  }
app/Helpers/Str.php CHANGED
@@ -7,8 +7,9 @@ class Str
7
  /**
8
  * Determine if a given string starts with a given substring.
9
  *
10
- * @param string $haystack
11
  * @param string|array $needles
 
12
  * @return bool
13
  */
14
  public static function startsWith($haystack, $needles)
@@ -18,7 +19,7 @@ class Str
18
  }
19
 
20
  foreach ((array) $needles as $needle) {
21
- if ($needle != '' && substr($haystack, 0, strlen($needle)) === (string) $needle) {
22
  return true;
23
  }
24
  }
@@ -29,8 +30,9 @@ class Str
29
  /**
30
  * Determine if a given string ends with a given substring.
31
  *
32
- * @param string $haystack
33
  * @param string|array $needles
 
34
  * @return bool
35
  */
36
  public static function endsWith($haystack, $needles)
@@ -38,9 +40,9 @@ class Str
38
  if (is_array($haystack)) {
39
  $haystack = implode(' ', $haystack);
40
  }
41
-
42
  foreach ((array) $needles as $needle) {
43
- if (substr($haystack, - strlen($needle)) === (string) $needle) {
44
  return true;
45
  }
46
  }
@@ -51,8 +53,9 @@ class Str
51
  /**
52
  * Determine if a given string contains a given substring.
53
  *
54
- * @param string $haystack
55
  * @param string|array $needles
 
56
  * @return bool
57
  */
58
  public static function contains($haystack, $needles)
@@ -62,7 +65,7 @@ class Str
62
  }
63
 
64
  foreach ((array) $needles as $needle) {
65
- if ($needle != '' && fluentform_mb_strpos($haystack, $needle) !== false) {
66
  return true;
67
  }
68
  }
@@ -73,8 +76,9 @@ class Str
73
  /**
74
  * Determine if a given string does not contain a given substring.
75
  *
76
- * @param string $haystack
77
  * @param string|array $needles
 
78
  * @return bool
79
  */
80
  public static function doNotContains($haystack, $needles)
7
  /**
8
  * Determine if a given string starts with a given substring.
9
  *
10
+ * @param string $haystack
11
  * @param string|array $needles
12
+ *
13
  * @return bool
14
  */
15
  public static function startsWith($haystack, $needles)
19
  }
20
 
21
  foreach ((array) $needles as $needle) {
22
+ if ('' != $needle && substr($haystack, 0, strlen($needle)) === (string) $needle) {
23
  return true;
24
  }
25
  }
30
  /**
31
  * Determine if a given string ends with a given substring.
32
  *
33
+ * @param string $haystack
34
  * @param string|array $needles
35
+ *
36
  * @return bool
37
  */
38
  public static function endsWith($haystack, $needles)
40
  if (is_array($haystack)) {
41
  $haystack = implode(' ', $haystack);
42
  }
43
+
44
  foreach ((array) $needles as $needle) {
45
+ if (substr($haystack, -strlen($needle)) === (string) $needle) {
46
  return true;
47
  }
48
  }
53
  /**
54
  * Determine if a given string contains a given substring.
55
  *
56
+ * @param string $haystack
57
  * @param string|array $needles
58
+ *
59
  * @return bool
60
  */
61
  public static function contains($haystack, $needles)
65
  }
66
 
67
  foreach ((array) $needles as $needle) {
68
+ if ('' != $needle && fluentform_mb_strpos($haystack, $needle) !== false) {
69
  return true;
70
  }
71
  }
76
  /**
77
  * Determine if a given string does not contain a given substring.
78
  *
79
+ * @param string $haystack
80
  * @param string|array $needles
81
+ *
82
  * @return bool
83
  */
84
  public static function doNotContains($haystack, $needles)
app/Hooks/Ajax.php CHANGED
@@ -7,6 +7,8 @@
7
  use FluentForm\App\Modules\Acl\Acl;
8
 
9
  /**
 
 
10
  * @var $app \FluentForm\Framework\Foundation\Application
11
  */
12
 
@@ -115,27 +117,27 @@ $app->addAdminAjaxAction('fluentform-settings-formSettings-remove', function ()
115
 
116
  $app->addAdminAjaxAction('fluentform-get-form-custom_css_js', function () {
117
  Acl::verify('fluentform_forms_manager');
118
- (new \FluentForm\App\Modules\Form\Settings\FormCssJs)->getSettingsAjax();
119
  });
120
 
121
  $app->addAdminAjaxAction('fluentform-save-form-custom_css_js', function () {
122
  Acl::verify('fluentform_forms_manager');
123
- (new \FluentForm\App\Modules\Form\Settings\FormCssJs)->saveSettingsAjax();
124
  });
125
 
126
  $app->addAdminAjaxAction('fluentform-save-form-entry_column_view_settings', function () {
127
  Acl::verify('fluentform_forms_manager');
128
- (new \FluentForm\App\Modules\Form\Settings\EntryColumnViewSettings)->saveVisibleColumnsAjax();
129
  });
130
 
131
  $app->addAdminAjaxAction('fluentform-save-form-entry_column_order_settings', function () {
132
  Acl::verify('fluentform_forms_manager');
133
- (new \FluentForm\App\Modules\Form\Settings\EntryColumnViewSettings)->saveEntryColumnsOrderAjax();
134
  });
135
 
136
  $app->addAdminAjaxAction('fluentform-reset-form-entry_column_order_settings', function () {
137
  Acl::verify('fluentform_forms_manager');
138
- (new \FluentForm\App\Modules\Form\Settings\EntryColumnViewSettings)->resetEntryDisplaySettings();
139
  });
140
 
141
  $app->addAdminAjaxAction('fluentform-load-editor-components', function () use ($app) {
@@ -154,7 +156,7 @@ $app->addAdminAjaxAction('fluentform-form-entries', function () use ($app) {
154
  });
155
 
156
  $app->addAdminAjaxAction('fluentform-form-report', function () use ($app) {
157
- $formId = intval($_REQUEST['form_id']);
158
  Acl::verify('fluentform_entries_viewer', $formId);
159
  (new \FluentForm\App\Modules\Entries\Report($app))->getReport($formId);
160
  });
@@ -191,8 +193,8 @@ $app->addAdminAjaxAction('fluentform-add-entry-note', function () use ($app) {
191
 
192
  $app->addAdminAjaxAction('fluentform-get-entry-logs', function () use ($app) {
193
  Acl::verify('fluentform_entries_viewer');
194
- $entry_id = intval($_REQUEST['entry_id']);
195
- $logType = sanitize_text_field($_REQUEST['log_type']);
196
  (new \FluentForm\App\Modules\Logger\DataLogger($app))->getLogsByEntry($entry_id, $logType);
197
  });
198
 
@@ -278,12 +280,12 @@ $app->addAdminAjaxAction(
278
  $formattedPages[] = [
279
  'ID' => $page->ID,
280
  'post_title' => $page->post_title,
281
- 'guid' => $page->guid
282
  ];
283
  }
284
 
285
  wp_send_json_success([
286
- 'pages' => $formattedPages
287
  ], 200);
288
  }
289
  );
@@ -332,7 +334,6 @@ $app->addAdminAjaxAction('fluentform-predefined-create', function () use ($app)
332
  * slack and mailchimp if the form was submitted.
333
  */
334
 
335
-
336
  // Permission settings
337
  $app->addAdminAjaxAction('fluentform_get_access_roles', function () {
338
  Acl::verify('fluentform_full_access');
@@ -361,7 +362,6 @@ $app->addAdminAjaxAction('fluentform_del_managers', function () {
361
  (new \FluentForm\App\Modules\Acl\Managers())->remove();
362
  });
363
 
364
-
365
  // General Integration Settings Here
366
  $app->addAdminAjaxAction('fluentform_get_global_integration_settings', function () use ($app) {
367
  Acl::verify('fluentform_settings_manager');
@@ -414,7 +414,6 @@ $app->addAdminAjaxAction('fluentform_update_modules', function () {
414
  return (new \FluentForm\App\Modules\AddOnModule())->updateAddOnsStatus();
415
  });
416
 
417
-
418
  /*
419
  * Background Process Receiver
420
  */
@@ -426,4 +425,3 @@ $app->addAdminAjaxAction('fluentform_background_process', function () {
426
  $app->addPublicAjaxAction('fluentform_background_process', function () {
427
  $this->app['fluentFormAsyncRequest']->handleBackgroundCall();
428
  });
429
-
7
  use FluentForm\App\Modules\Acl\Acl;
8
 
9
  /**
10
+ * App instance
11
+ *
12
  * @var $app \FluentForm\Framework\Foundation\Application
13
  */
14
 
117
 
118
  $app->addAdminAjaxAction('fluentform-get-form-custom_css_js', function () {
119
  Acl::verify('fluentform_forms_manager');
120
+ (new \FluentForm\App\Modules\Form\Settings\FormCssJs())->getSettingsAjax();
121
  });
122
 
123
  $app->addAdminAjaxAction('fluentform-save-form-custom_css_js', function () {
124
  Acl::verify('fluentform_forms_manager');
125
+ (new \FluentForm\App\Modules\Form\Settings\FormCssJs())->saveSettingsAjax();
126
  });
127
 
128
  $app->addAdminAjaxAction('fluentform-save-form-entry_column_view_settings', function () {
129
  Acl::verify('fluentform_forms_manager');
130
+ (new \FluentForm\App\Modules\Form\Settings\EntryColumnViewSettings())->saveVisibleColumnsAjax();
131
  });
132
 
133
  $app->addAdminAjaxAction('fluentform-save-form-entry_column_order_settings', function () {
134
  Acl::verify('fluentform_forms_manager');
135
+ (new \FluentForm\App\Modules\Form\Settings\EntryColumnViewSettings())->saveEntryColumnsOrderAjax();
136
  });
137
 
138
  $app->addAdminAjaxAction('fluentform-reset-form-entry_column_order_settings', function () {
139
  Acl::verify('fluentform_forms_manager');
140
+ (new \FluentForm\App\Modules\Form\Settings\EntryColumnViewSettings())->resetEntryDisplaySettings();
141
  });
142
 
143
  $app->addAdminAjaxAction('fluentform-load-editor-components', function () use ($app) {
156
  });
157
 
158
  $app->addAdminAjaxAction('fluentform-form-report', function () use ($app) {
159
+ $formId = intval($app->request->get('form_id'));
160
  Acl::verify('fluentform_entries_viewer', $formId);
161
  (new \FluentForm\App\Modules\Entries\Report($app))->getReport($formId);
162
  });
193
 
194
  $app->addAdminAjaxAction('fluentform-get-entry-logs', function () use ($app) {
195
  Acl::verify('fluentform_entries_viewer');
196
+ $entry_id = intval($app->request->get('entry_id'));
197
+ $logType = sanitize_text_field($app->request->get('log_type'));
198
  (new \FluentForm\App\Modules\Logger\DataLogger($app))->getLogsByEntry($entry_id, $logType);
199
  });
200
 
280
  $formattedPages[] = [
281
  'ID' => $page->ID,
282
  'post_title' => $page->post_title,
283
+ 'guid' => $page->guid,
284
  ];
285
  }
286
 
287
  wp_send_json_success([
288
+ 'pages' => $formattedPages,
289
  ], 200);
290
  }
291
  );
334
  * slack and mailchimp if the form was submitted.
335
  */
336
 
 
337
  // Permission settings
338
  $app->addAdminAjaxAction('fluentform_get_access_roles', function () {
339
  Acl::verify('fluentform_full_access');
362
  (new \FluentForm\App\Modules\Acl\Managers())->remove();
363
  });
364
 
 
365
  // General Integration Settings Here
366
  $app->addAdminAjaxAction('fluentform_get_global_integration_settings', function () use ($app) {
367
  Acl::verify('fluentform_settings_manager');
414
  return (new \FluentForm\App\Modules\AddOnModule())->updateAddOnsStatus();
415
  });
416
 
 
417
  /*
418
  * Background Process Receiver
419
  */
425
  $app->addPublicAjaxAction('fluentform_background_process', function () {
426
  $this->app['fluentFormAsyncRequest']->handleBackgroundCall();
427
  });
 
app/Hooks/Backend.php CHANGED
@@ -8,7 +8,6 @@
8
  * Regitser All Admin Scripts but don't load it
9
  */
10
 
11
-
12
  add_action('admin_init', function () use ($app) {
13
  (new \FluentForm\App\Modules\Registerer\Menu($app))->reisterScripts();
14
  }, 9);
@@ -47,7 +46,7 @@ add_filter('pre_set_site_transient_update_plugins', function ($updates) {
47
  $app->addAction('fluentform_global_menu', function () use ($app) {
48
  $menu = new \FluentForm\App\Modules\Registerer\Menu($app);
49
  $menu->renderGlobalMenu();
50
- if (get_option('fluentform_scheduled_actions_migrated') != 'yes') {
51
  \FluentForm\App\Databases\Migrations\ScheduledActions::migrate();
52
  }
53
 
@@ -69,7 +68,7 @@ $app->addAction('wp_dashboard_setup', function () {
69
  return;
70
  }
71
  wp_add_dashboard_widget('fluentform_stat_widget', __('Fluent Forms Latest Form Submissions', 'fluentform'), function () {
72
- (new \FluentForm\App\Modules\DashboardWidgetModule)->showStat();
73
  }, 10, 1);
74
  });
75
 
@@ -81,10 +80,12 @@ add_action('admin_init', function () {
81
  'fluent_forms_add_ons',
82
  'fluent_forms_docs',
83
  'fluent_forms_all_entries',
84
- 'msformentries'
85
  ];
86
 
87
- if (isset($_GET['page']) && in_array($_GET['page'], $disablePages)) {
 
 
88
  remove_all_actions('admin_notices');
89
  }
90
  });
@@ -92,8 +93,8 @@ add_action('admin_init', function () {
92
  add_action('enqueue_block_editor_assets', function () use ($app) {
93
  wp_enqueue_script(
94
  'fluentform-gutenberg-block',
95
- $app->publicUrl("js/fluent_gutenblock.js"),
96
- array('wp-element', 'wp-polyfill' , 'wp-i18n', 'wp-blocks' ,'wp-components'),
97
  FLUENTFORM_VERSION
98
  );
99
 
@@ -102,20 +103,20 @@ add_action('enqueue_block_editor_assets', function () use ($app) {
102
  ->orderBy('id', 'DESC')
103
  ->get();
104
 
105
- array_unshift($forms, (object)[
106
  'id' => '',
107
- 'title' => __('-- Select a form --', 'fluentform')
108
  ]);
109
 
110
  wp_localize_script('fluentform-gutenberg-block', 'fluentform_block_vars', [
111
  'logo' => $app->publicUrl('img/fluent_icon.png'),
112
- 'forms' => $forms
113
  ]);
114
 
115
  wp_enqueue_style(
116
  'fluentform-gutenberg-block',
117
- $app->publicUrl("css/fluent_gutenblock.css"),
118
- array('wp-edit-blocks')
119
  );
120
  });
121
 
@@ -123,7 +124,7 @@ add_action('wp_print_scripts', function () {
123
  if (is_admin()) {
124
  if (\FluentForm\App\Helpers\Helper::isFluentAdminPage()) {
125
  $option = get_option('_fluentform_global_form_settings');
126
- $isSkip = \FluentForm\Framework\Helpers\ArrayHelper::get($option, 'misc.noConflictStatus') == 'no';
127
  $isSkip = apply_filters('fluentform_skip_no_conflict', $isSkip);
128
 
129
  if ($isSkip) {
@@ -142,7 +143,7 @@ add_action('wp_print_scripts', function () {
142
  }
143
 
144
  $src = $wp_scripts->registered[$script]->src;
145
- if (strpos($src, $pluginUrl) !== false && !strpos($src, 'fluentform') !== false) {
146
  wp_dequeue_script($wp_scripts->registered[$script]->handle);
147
  }
148
  }
@@ -162,7 +163,7 @@ add_action('fluentform_loading_editor_assets', function ($form) {
162
  'input_radio',
163
  'select',
164
  'select_country',
165
- 'input_checkbox'
166
  ];
167
 
168
  foreach ($upgradableCheckInputs as $upgradeElement) {
@@ -175,7 +176,7 @@ add_action('fluentform_loading_editor_assets', function ($form) {
175
  'label' => $label,
176
  'value' => $value,
177
  'calc_value' => '',
178
- 'image' => ''
179
  ];
180
  }
181
  $element['settings']['advanced_options'] = $formattedOptions;
@@ -184,7 +185,7 @@ add_action('fluentform_loading_editor_assets', function ($form) {
184
  $element['settings']['calc_value_status'] = false;
185
  unset($element['options']);
186
 
187
- if ($upgradeElement == 'input_radio' || $upgradeElement == 'input_checkbox') {
188
  $element['editor_options']['template'] = 'inputCheckable';
189
  }
190
  }
@@ -197,26 +198,26 @@ add_action('fluentform_loading_editor_assets', function ($form) {
197
  $element['settings']['dynamic_default_value'] = '';
198
  }
199
 
200
- if ($upgradeElement != 'select_country' && !isset($element['settings']['randomize_options'])) {
201
  $element['settings']['randomize_options'] = 'no';
202
  }
203
 
204
- if ($upgradeElement == 'select' && \FluentForm\Framework\Helpers\ArrayHelper::get($element, 'attributes.multiple') && empty($element['settings']['max_selection'])) {
205
  $element['settings']['max_selection'] = '';
206
  }
207
 
208
- if (($upgradeElement == 'select' || $upgradeElement = 'select_country') && !isset($element['settings']['enable_select_2'])) {
209
  $element['settings']['enable_select_2'] = 'no';
210
  }
211
 
212
- if ($upgradeElement != 'select_country' && !isset($element['settings']['values_visible'])) {
213
  $element['settings']['values_visible'] = false;
214
  }
215
 
216
  return $element;
217
  });
218
  }
219
-
220
  $upgradableFileInputs = [
221
  'input_file',
222
  'input_image',
@@ -265,21 +266,21 @@ add_action('fluentform_loading_editor_assets', function ($form) {
265
  if (!isset($item['settings']['conditional_logics'])) {
266
  $item['settings']['conditional_logics'] = [];
267
  }
268
-
269
  if (!isset($item['settings']['container_width'])) {
270
  $item['settings']['container_width'] = '';
271
  }
272
-
273
  $shouldSetWidth = !empty($item['columns']) && (!isset($item['columns'][0]['width']) || !$item['columns'][0]['width']);
274
-
275
  if ($shouldSetWidth) {
276
  $perColumn = round(100 / count($item['columns']), 2);
277
-
278
  foreach ($item['columns'] as &$column) {
279
  $column['width'] = $perColumn;
280
  }
281
  }
282
-
283
  return $item;
284
  });
285
 
@@ -341,12 +342,12 @@ add_action('fluentform_loading_editor_assets', function ($form) {
341
 
342
  return $item;
343
  });
344
-
345
  add_filter('fluentform_editor_init_element_recaptcha', function ($item, $form) {
346
  $item['attributes']['name'] = 'g-recaptcha-response';
347
  return $item;
348
  }, 10, 2);
349
-
350
  add_filter('fluentform_editor_init_element_hcaptcha', function ($item, $form) {
351
  $item['attributes']['name'] = 'h-captcha-response';
352
  return $item;
@@ -356,11 +357,8 @@ add_action('fluentform_loading_editor_assets', function ($form) {
356
  $item['attributes']['name'] = 'cf-turnstile-response';
357
  return $item;
358
  }, 10, 2);
359
-
360
  }, 10);
361
 
362
-
363
-
364
  add_filter('fluentform_addons_extra_menu', function ($menus) {
365
  $menus['fluentform_pdf'] = __('Fluent Forms PDF', 'fluentform');
366
  return $menus;
@@ -377,7 +375,7 @@ add_action('fluentform_addons_page_render_fluentform_pdf', function () {
377
 
378
  \FluentForm\View::render('admin.addons.pdf_promo', [
379
  'install_url' => $url,
380
- 'is_installed' => defined('FLUENTFORM_PDF_VERSION')
381
  ]);
382
  });
383
 
@@ -398,16 +396,16 @@ add_action('ff_installed_by', function ($by) {
398
  //Enables recaptcha validation when autoload recaptcha enabled for all forms
399
  $autoIncludeRecaptcha = [
400
  [
401
- 'type'=>'hcaptcha',
402
- 'is_disabled'=>!get_option('_fluentform_hCaptcha_keys_status', false)
403
  ],
404
  [
405
- 'type'=>'recaptcha',
406
- 'is_disabled'=>!get_option('_fluentform_reCaptcha_keys_status', false)
407
  ],
408
  [
409
- 'type'=>'turnstile',
410
- 'is_disabled'=>!get_option('_fluentform_turnstile_keys_status', false)
411
  ],
412
  ];
413
 
@@ -419,7 +417,7 @@ foreach ($autoIncludeRecaptcha as $input) {
419
  $option = get_option('_fluentform_global_form_settings');
420
  $autoload = \FluentForm\Framework\Helpers\ArrayHelper::get($option, 'misc.autoload_captcha');
421
  $type = \FluentForm\Framework\Helpers\ArrayHelper::get($option, 'misc.captcha_type');
422
-
423
  if ($autoload && $type == $input['type']) {
424
  return true;
425
  }
8
  * Regitser All Admin Scripts but don't load it
9
  */
10
 
 
11
  add_action('admin_init', function () use ($app) {
12
  (new \FluentForm\App\Modules\Registerer\Menu($app))->reisterScripts();
13
  }, 9);
46
  $app->addAction('fluentform_global_menu', function () use ($app) {
47
  $menu = new \FluentForm\App\Modules\Registerer\Menu($app);
48
  $menu->renderGlobalMenu();
49
+ if ('yes' != get_option('fluentform_scheduled_actions_migrated')) {
50
  \FluentForm\App\Databases\Migrations\ScheduledActions::migrate();
51
  }
52
 
68
  return;
69
  }
70
  wp_add_dashboard_widget('fluentform_stat_widget', __('Fluent Forms Latest Form Submissions', 'fluentform'), function () {
71
+ (new \FluentForm\App\Modules\DashboardWidgetModule())->showStat();
72
  }, 10, 1);
73
  });
74
 
80
  'fluent_forms_add_ons',
81
  'fluent_forms_docs',
82
  'fluent_forms_all_entries',
83
+ 'msformentries',
84
  ];
85
 
86
+ $page = wpFluentForm('request')->get('page');
87
+
88
+ if ($page && in_array($page, $disablePages)) {
89
  remove_all_actions('admin_notices');
90
  }
91
  });
93
  add_action('enqueue_block_editor_assets', function () use ($app) {
94
  wp_enqueue_script(
95
  'fluentform-gutenberg-block',
96
+ $app->publicUrl('js/fluent_gutenblock.js'),
97
+ ['wp-element', 'wp-polyfill', 'wp-i18n', 'wp-blocks', 'wp-components'],
98
  FLUENTFORM_VERSION
99
  );
100
 
103
  ->orderBy('id', 'DESC')
104
  ->get();
105
 
106
+ array_unshift($forms, (object) [
107
  'id' => '',
108
+ 'title' => __('-- Select a form --', 'fluentform'),
109
  ]);
110
 
111
  wp_localize_script('fluentform-gutenberg-block', 'fluentform_block_vars', [
112
  'logo' => $app->publicUrl('img/fluent_icon.png'),
113
+ 'forms' => $forms,
114
  ]);
115
 
116
  wp_enqueue_style(
117
  'fluentform-gutenberg-block',
118
+ $app->publicUrl('css/fluent_gutenblock.css'),
119
+ ['wp-edit-blocks']
120
  );
121
  });
122
 
124
  if (is_admin()) {
125
  if (\FluentForm\App\Helpers\Helper::isFluentAdminPage()) {
126
  $option = get_option('_fluentform_global_form_settings');
127
+ $isSkip = 'no' == \FluentForm\Framework\Helpers\ArrayHelper::get($option, 'misc.noConflictStatus');
128
  $isSkip = apply_filters('fluentform_skip_no_conflict', $isSkip);
129
 
130
  if ($isSkip) {
143
  }
144
 
145
  $src = $wp_scripts->registered[$script]->src;
146
+ if (false !== strpos($src, $pluginUrl) && false !== !strpos($src, 'fluentform')) {
147
  wp_dequeue_script($wp_scripts->registered[$script]->handle);
148
  }
149
  }
163
  'input_radio',
164
  'select',
165
  'select_country',
166
+ 'input_checkbox',
167
  ];
168
 
169
  foreach ($upgradableCheckInputs as $upgradeElement) {
176
  'label' => $label,
177
  'value' => $value,
178
  'calc_value' => '',
179
+ 'image' => '',
180
  ];
181
  }
182
  $element['settings']['advanced_options'] = $formattedOptions;
185
  $element['settings']['calc_value_status'] = false;
186
  unset($element['options']);
187
 
188
+ if ('input_radio' == $upgradeElement || 'input_checkbox' == $upgradeElement) {
189
  $element['editor_options']['template'] = 'inputCheckable';
190
  }
191
  }
198
  $element['settings']['dynamic_default_value'] = '';
199
  }
200
 
201
+ if ('select_country' != $upgradeElement && !isset($element['settings']['randomize_options'])) {
202
  $element['settings']['randomize_options'] = 'no';
203
  }
204
 
205
+ if ('select' == $upgradeElement && \FluentForm\Framework\Helpers\ArrayHelper::get($element, 'attributes.multiple') && empty($element['settings']['max_selection'])) {
206
  $element['settings']['max_selection'] = '';
207
  }
208
 
209
+ if (('select' == $upgradeElement || 'select_country' == $upgradeElement) && !isset($element['settings']['enable_select_2'])) {
210
  $element['settings']['enable_select_2'] = 'no';
211
  }
212
 
213
+ if ('select_country' != $upgradeElement && !isset($element['settings']['values_visible'])) {
214
  $element['settings']['values_visible'] = false;
215
  }
216
 
217
  return $element;
218
  });
219
  }
220
+
221
  $upgradableFileInputs = [
222
  'input_file',
223
  'input_image',
266
  if (!isset($item['settings']['conditional_logics'])) {
267
  $item['settings']['conditional_logics'] = [];
268
  }
269
+
270
  if (!isset($item['settings']['container_width'])) {
271
  $item['settings']['container_width'] = '';
272
  }
273
+
274
  $shouldSetWidth = !empty($item['columns']) && (!isset($item['columns'][0]['width']) || !$item['columns'][0]['width']);
275
+
276
  if ($shouldSetWidth) {
277
  $perColumn = round(100 / count($item['columns']), 2);
278
+
279
  foreach ($item['columns'] as &$column) {
280
  $column['width'] = $perColumn;
281
  }
282
  }
283
+
284
  return $item;
285
  });
286
 
342
 
343
  return $item;
344
  });
345
+
346
  add_filter('fluentform_editor_init_element_recaptcha', function ($item, $form) {
347
  $item['attributes']['name'] = 'g-recaptcha-response';
348
  return $item;
349
  }, 10, 2);
350
+
351
  add_filter('fluentform_editor_init_element_hcaptcha', function ($item, $form) {
352
  $item['attributes']['name'] = 'h-captcha-response';
353
  return $item;
357
  $item['attributes']['name'] = 'cf-turnstile-response';
358
  return $item;
359
  }, 10, 2);
 
360
  }, 10);
361
 
 
 
362
  add_filter('fluentform_addons_extra_menu', function ($menus) {
363
  $menus['fluentform_pdf'] = __('Fluent Forms PDF', 'fluentform');
364
  return $menus;
375
 
376
  \FluentForm\View::render('admin.addons.pdf_promo', [
377
  'install_url' => $url,
378
+ 'is_installed' => defined('FLUENTFORM_PDF_VERSION'),
379
  ]);
380
  });
381
 
396
  //Enables recaptcha validation when autoload recaptcha enabled for all forms
397
  $autoIncludeRecaptcha = [
398
  [
399
+ 'type' => 'hcaptcha',
400
+ 'is_disabled' => !get_option('_fluentform_hCaptcha_keys_status', false),
401
  ],
402
  [
403
+ 'type' => 'recaptcha',
404
+ 'is_disabled' => !get_option('_fluentform_reCaptcha_keys_status', false),
405
  ],
406
  [
407
+ 'type' => 'turnstile',
408
+ 'is_disabled' => !get_option('_fluentform_turnstile_keys_status', false),
409
  ],
410
  ];
411
 
417
  $option = get_option('_fluentform_global_form_settings');
418
  $autoload = \FluentForm\Framework\Helpers\ArrayHelper::get($option, 'misc.autoload_captcha');
419
  $type = \FluentForm\Framework\Helpers\ArrayHelper::get($option, 'misc.captcha_type');
420
+
421
  if ($autoload && $type == $input['type']) {
422
  return true;
423
  }
app/Hooks/Common.php CHANGED
@@ -7,25 +7,31 @@ use FluentForm\App\Modules\Component\Component;
7
  * Declare common actions/filters/shortcodes
8
  */
9
 
10
-
11
  /**
 
 
12
  * @var $app \FluentForm\Framework\Foundation\Application
13
  */
14
 
15
- add_action('save_post', function ($post_id) {
16
- if (isset($_POST['post_content'])) {
17
- $post_content = wp_kses_post(wp_unslash($_POST['post_content']));
 
18
  } else {
19
  $post = get_post($post_id);
20
  $post_content = $post->post_content;
21
  }
22
 
23
- $shortcodeIds = \FluentForm\App\Helpers\Helper::getShortCodeIds(
24
- $post_content, 'fluentform', 'id'
 
 
25
  );
26
 
27
- $shortcodeModalIds = \FluentForm\App\Helpers\Helper::getShortCodeIds(
28
- $post_content, 'fluentform_modal', 'form_id'
 
 
29
  );
30
 
31
  if ($shortcodeModalIds) {
@@ -50,27 +56,24 @@ $component->registerInputSanitizers();
50
 
51
  add_action('wp', function () use ($app) {
52
  // @todo: We will remove the fluentform_pages check from April 2021
53
- if ((isset($_GET['fluent_forms_pages']) || isset($_GET['fluentform_pages']))) {
54
-
55
- if (empty(isset($_GET['fluent_forms_pages'])) && empty($_GET['fluentform_pages'])) {
56
- return;
57
- }
58
 
 
59
  add_action('wp_enqueue_scripts', function () use ($app) {
60
  wp_enqueue_script('jquery');
61
  wp_enqueue_script(
62
  'fluent_forms_global',
63
  $app->publicUrl('js/fluent_forms_global.js'),
64
- array('jquery'),
65
  FLUENTFORM_VERSION,
66
  true
67
  );
68
  wp_localize_script('fluent_forms_global', 'fluent_forms_global_var', [
69
  'fluent_forms_admin_nonce' => wp_create_nonce('fluent_forms_admin_nonce'),
70
- 'ajaxurl' => admin_url('admin-ajax.php')
71
  ]);
72
  wp_enqueue_style('fluent-form-styles');
73
- $form = wpFluent()->table('fluentform_forms')->find(intval($_REQUEST['preview_id']));
74
  if (apply_filters('fluentform_load_default_public', true, $form)) {
75
  wp_enqueue_style('fluentform-public-default');
76
  }
@@ -97,21 +100,21 @@ foreach ($elements as $element) {
97
  $app->addFilter($event, function ($response, $field, $form_id, $isLabel = false) {
98
  $element = $field['element'];
99
 
100
- if ($element == 'address' && !empty($response->country)) {
101
  $countryList = getFluentFormCountryList();
102
  if (isset($countryList[$response->country])) {
103
  $response->country = $countryList[$response->country];
104
  }
105
  }
106
 
107
- if ($element == 'select_country') {
108
  $countryList = getFluentFormCountryList();
109
  if (isset($countryList[$response])) {
110
  $response = $countryList[$response];
111
  }
112
  }
113
 
114
- if (in_array($field['element'], array('gdpr_agreement', 'terms_and_condition'))) {
115
  if (!empty($response)) {
116
  $response = __('Accepted', 'fluentform');
117
  }
@@ -150,7 +153,6 @@ $app->addFilter('fluentform_response_render_input_file', function ($response, $f
150
  return \FluentForm\App\Modules\Form\FormDataParser::formatFileValues($response, $isHtml, $form_id);
151
  }, 10, 4);
152
 
153
-
154
  $app->addFilter('fluentform_response_render_input_image', function ($response, $field, $form_id, $isHtml = false) {
155
  return \FluentForm\App\Modules\Form\FormDataParser::formatImageValues($response, $isHtml, $form_id);
156
  }, 10, 4);
@@ -169,7 +171,7 @@ $app->addFilter('fluentform_response_render_input_name', function ($response) {
169
 
170
  $app->addFilter('fluentform_response_render_input_password', function ($value, $field, $formId) {
171
  if (Helper::shouldHidePassword($formId)) {
172
- $value = str_repeat("*", 6) . ' ' . __('(truncated)', 'fluentform');
173
  }
174
 
175
  return $value;
@@ -187,23 +189,28 @@ $app->addFilter('fluentform_filter_insert_data', function ($data) {
187
  return $data;
188
  });
189
 
190
-
191
  // Register api response log hooks
192
  $app->addAction(
193
  'fluentform_after_submission_api_response_success',
194
- 'fluentform_after_submission_api_response_success', 10, 6
 
 
195
  );
196
 
197
  $app->addAction(
198
  'fluentform_after_submission_api_response_failed',
199
- 'fluentform_after_submission_api_response_failed', 10, 6
 
 
200
  );
201
 
202
  function fluentform_after_submission_api_response_success($form, $entryId, $data, $feed, $res, $msg = '')
203
  {
204
  try {
205
- $isDev = wpFluentForm()->getEnv() != 'production';
206
- if (!apply_filters('fluentform_api_success_log', $isDev, $form, $feed)) return;
 
 
207
 
208
  wpFluent()->table('fluentform_submission_meta')->insert([
209
  'response_id' => $entryId,
@@ -213,7 +220,7 @@ function fluentform_after_submission_api_response_success($form, $entryId, $data
213
  'name' => $feed->formattedValue['name'],
214
  'status' => 'success',
215
  'created_at' => current_time('mysql'),
216
- 'updated_at' => current_time('mysql')
217
  ]);
218
  } catch (Exception $e) {
219
  error_log($e->getMessage());
@@ -223,9 +230,10 @@ function fluentform_after_submission_api_response_success($form, $entryId, $data
223
  function fluentform_after_submission_api_response_failed($form, $entryId, $data, $feed, $res, $msg = '')
224
  {
225
  try {
226
-
227
- $isDev = wpFluentForm()->getEnv() != 'production';
228
- if (!apply_filters('fluentform_api_failed_log', $isDev, $form, $feed)) return;
 
229
 
230
  wpFluent()->table('fluentform_submission_meta')->insert([
231
  'response_id' => $entryId,
@@ -249,7 +257,6 @@ $app->bindInstance(
249
  'FluentForm\App\Services\WPAsync\FluentFormAsyncRequest'
250
  );
251
 
252
-
253
  $app->addFilter('fluentform-disabled_analytics', function ($status) {
254
  $settings = get_option('_fluentform_global_form_settings');
255
  if (isset($settings['misc']['isAnalyticsDisabled']) && $settings['misc']['isAnalyticsDisabled']) {
@@ -280,7 +287,6 @@ $app->addAction('fluentform_submission_inserted', function ($insertId, $formData
280
  $notificationManager->globalNotify($insertId, $formData, $form);
281
  }, 10, 3);
282
 
283
-
284
  $app->addAction('init', function () use ($app) {
285
  new \FluentForm\App\Services\Integrations\MailChimp\MailChimpIntegration($app);
286
  });
@@ -330,10 +336,10 @@ add_filter('fluentform_validate_input_item_input_email', ['\FluentForm\App\Helpe
330
  add_filter('fluentform_validate_input_item_input_text', ['\FluentForm\App\Helpers\Helper', 'isUniqueValidation'], 10, 5);
331
 
332
  add_filter('cron_schedules', function ($schedules) {
333
- $schedules['ff_every_five_minutes'] = array(
334
  'interval' => 300,
335
  'display' => esc_html__('Every 5 minutes (FluentForm)', 'fluentform'),
336
- );
337
  return $schedules;
338
  }, 10, 1);
339
 
@@ -361,7 +367,7 @@ add_action('ff_integration_action_result', function ($feed, $status, $note = '')
361
  ->where('id', $actionId)
362
  ->update([
363
  'status' => $status,
364
- 'note' => $note
365
  ]);
366
  }, 10, 3);
367
 
@@ -383,9 +389,9 @@ if (defined('ELEMENTOR_VERSION')) {
383
  * Oxygen Widget Init
384
  */
385
 
386
- add_action('init', function (){
387
  if (class_exists('OxyEl')) {
388
- if ( file_exists( FLUENTFORM_DIR_PATH.'app/Modules/Widgets/OxygenWidget.php' ) ) {
389
  new FluentForm\App\Modules\Widgets\OxygenWidget();
390
  }
391
  }
@@ -393,14 +399,13 @@ add_action('init', function (){
393
 
394
  (new FluentForm\App\Services\Integrations\Slack\SlackNotificationActions($app))->register();
395
 
396
-
397
  /*
398
  * Smartcode parser shortcodes
399
  */
400
 
401
  add_filter('ff_will_return_html', function ($result, $integration, $key) {
402
  $dictionary = [
403
- 'notifications' => ['message']
404
  ];
405
 
406
  if (!isset($dictionary[$integration])) {
@@ -412,10 +417,8 @@ add_filter('ff_will_return_html', function ($result, $integration, $key) {
412
  }
413
 
414
  return $result;
415
-
416
  }, 10, 3);
417
 
418
-
419
  $app->addFilter('fluentform_response_render_input_number', function ($response, $field, $form_id, $isHtml = false) {
420
  if (!$response || !$isHtml) {
421
  return $response;
@@ -428,13 +431,11 @@ $app->addFilter('fluentform_response_render_input_number', function ($response,
428
  return \FluentForm\App\Helpers\Helper::getNumericFormatted($response, $formatter);
429
  }, 10, 4);
430
 
431
-
432
  new \FluentForm\App\Services\FormBuilder\Components\CustomSubmitButton();
433
 
434
  if (function_exists('register_block_type')) {
435
- register_block_type('fluentfom/guten-block', array(
436
  'render_callback' => function ($atts) {
437
-
438
  if (empty($atts['formId'])) {
439
  return '';
440
  }
@@ -446,25 +447,24 @@ if (function_exists('register_block_type')) {
446
  $className = '';
447
  if (!empty($classes)) {
448
  foreach ($classes as $class) {
449
- $className .= sanitize_html_class($class) . " ";
450
  }
451
  }
452
  }
453
- $type= \FluentForm\App\Helpers\Helper::isConversionForm($atts['formId']) ? 'conversational' : '';
454
- return do_shortcode('[fluentform css_classes="' . $className . ' ff_guten_block" id="' . $atts['formId'] . '" type="' .$type .'"]');
455
  },
456
- 'attributes' => array(
457
- 'formId' => array(
458
- 'type' => 'string'
459
- ),
460
- 'className' => array(
461
- 'type' => 'string'
462
- )
463
- )
464
- ));
465
  }
466
 
467
-
468
  // require the CLI
469
  if (defined('WP_CLI') && WP_CLI) {
470
  \WP_CLI::add_command('fluentform', '\FluentForm\App\Modules\CLI\Commands');
7
  * Declare common actions/filters/shortcodes
8
  */
9
 
 
10
  /**
11
+ * App instance
12
+ *
13
  * @var $app \FluentForm\Framework\Foundation\Application
14
  */
15
 
16
+ add_action('save_post', function ($post_id) use ($app) {
17
+ $post_content = $app->request->get('post_content');
18
+ if ($post_content) {
19
+ $post_content = wp_kses_post(wp_unslash($post_content));
20
  } else {
21
  $post = get_post($post_id);
22
  $post_content = $post->post_content;
23
  }
24
 
25
+ $shortcodeIds = Helper::getShortCodeIds(
26
+ $post_content,
27
+ 'fluentform',
28
+ 'id'
29
  );
30
 
31
+ $shortcodeModalIds = Helper::getShortCodeIds(
32
+ $post_content,
33
+ 'fluentform_modal',
34
+ 'form_id'
35
  );
36
 
37
  if ($shortcodeModalIds) {
56
 
57
  add_action('wp', function () use ($app) {
58
  // @todo: We will remove the fluentform_pages check from April 2021
59
+ $fluentFormPages = $app->request->get('fluent_forms_pages') || $app->request->get('fluentform_pages');
 
 
 
 
60
 
61
+ if ($fluentFormPages) {
62
  add_action('wp_enqueue_scripts', function () use ($app) {
63
  wp_enqueue_script('jquery');
64
  wp_enqueue_script(
65
  'fluent_forms_global',
66
  $app->publicUrl('js/fluent_forms_global.js'),
67
+ ['jquery'],
68
  FLUENTFORM_VERSION,
69
  true
70
  );
71
  wp_localize_script('fluent_forms_global', 'fluent_forms_global_var', [
72
  'fluent_forms_admin_nonce' => wp_create_nonce('fluent_forms_admin_nonce'),
73
+ 'ajaxurl' => admin_url('admin-ajax.php'),
74
  ]);
75
  wp_enqueue_style('fluent-form-styles');
76
+ $form = wpFluent()->table('fluentform_forms')->find(intval($app->request->get('preview_id')));
77
  if (apply_filters('fluentform_load_default_public', true, $form)) {
78
  wp_enqueue_style('fluentform-public-default');
79
  }
100
  $app->addFilter($event, function ($response, $field, $form_id, $isLabel = false) {
101
  $element = $field['element'];
102
 
103
+ if ('address' == $element && !empty($response->country)) {
104
  $countryList = getFluentFormCountryList();
105
  if (isset($countryList[$response->country])) {
106
  $response->country = $countryList[$response->country];
107
  }
108
  }
109
 
110
+ if ('select_country' == $element) {
111
  $countryList = getFluentFormCountryList();
112
  if (isset($countryList[$response])) {
113
  $response = $countryList[$response];
114
  }
115
  }
116
 
117
+ if (in_array($field['element'], ['gdpr_agreement', 'terms_and_condition'])) {
118
  if (!empty($response)) {
119
  $response = __('Accepted', 'fluentform');
120
  }
153
  return \FluentForm\App\Modules\Form\FormDataParser::formatFileValues($response, $isHtml, $form_id);
154
  }, 10, 4);
155
 
 
156
  $app->addFilter('fluentform_response_render_input_image', function ($response, $field, $form_id, $isHtml = false) {
157
  return \FluentForm\App\Modules\Form\FormDataParser::formatImageValues($response, $isHtml, $form_id);
158
  }, 10, 4);
171
 
172
  $app->addFilter('fluentform_response_render_input_password', function ($value, $field, $formId) {
173
  if (Helper::shouldHidePassword($formId)) {
174
+ $value = str_repeat('*', 6) . ' ' . __('(truncated)', 'fluentform');
175
  }
176
 
177
  return $value;
189
  return $data;
190
  });
191
 
 
192
  // Register api response log hooks
193
  $app->addAction(
194
  'fluentform_after_submission_api_response_success',
195
+ 'fluentform_after_submission_api_response_success',
196
+ 10,
197
+ 6
198
  );
199
 
200
  $app->addAction(
201
  'fluentform_after_submission_api_response_failed',
202
+ 'fluentform_after_submission_api_response_failed',
203
+ 10,
204
+ 6
205
  );
206
 
207
  function fluentform_after_submission_api_response_success($form, $entryId, $data, $feed, $res, $msg = '')
208
  {
209
  try {
210
+ $isDev = 'production' != wpFluentForm()->getEnv();
211
+ if (!apply_filters('fluentform_api_success_log', $isDev, $form, $feed)) {
212
+ return;
213
+ }
214
 
215
  wpFluent()->table('fluentform_submission_meta')->insert([
216
  'response_id' => $entryId,
220
  'name' => $feed->formattedValue['name'],
221
  'status' => 'success',
222
  'created_at' => current_time('mysql'),
223
+ 'updated_at' => current_time('mysql'),
224
  ]);
225
  } catch (Exception $e) {
226
  error_log($e->getMessage());
230
  function fluentform_after_submission_api_response_failed($form, $entryId, $data, $feed, $res, $msg = '')
231
  {
232
  try {
233
+ $isDev = 'production' != wpFluentForm()->getEnv();
234
+ if (!apply_filters('fluentform_api_failed_log', $isDev, $form, $feed)) {
235
+ return;
236
+ }
237
 
238
  wpFluent()->table('fluentform_submission_meta')->insert([
239
  'response_id' => $entryId,
257
  'FluentForm\App\Services\WPAsync\FluentFormAsyncRequest'
258
  );
259
 
 
260
  $app->addFilter('fluentform-disabled_analytics', function ($status) {
261
  $settings = get_option('_fluentform_global_form_settings');
262
  if (isset($settings['misc']['isAnalyticsDisabled']) && $settings['misc']['isAnalyticsDisabled']) {
287
  $notificationManager->globalNotify($insertId, $formData, $form);
288
  }, 10, 3);
289
 
 
290
  $app->addAction('init', function () use ($app) {
291
  new \FluentForm\App\Services\Integrations\MailChimp\MailChimpIntegration($app);
292
  });
336
  add_filter('fluentform_validate_input_item_input_text', ['\FluentForm\App\Helpers\Helper', 'isUniqueValidation'], 10, 5);
337
 
338
  add_filter('cron_schedules', function ($schedules) {
339
+ $schedules['ff_every_five_minutes'] = [
340
  'interval' => 300,
341
  'display' => esc_html__('Every 5 minutes (FluentForm)', 'fluentform'),
342
+ ];
343
  return $schedules;
344
  }, 10, 1);
345
 
367
  ->where('id', $actionId)
368
  ->update([
369
  'status' => $status,
370
+ 'note' => $note,
371
  ]);
372
  }, 10, 3);
373
 
389
  * Oxygen Widget Init
390
  */
391
 
392
+ add_action('init', function () {
393
  if (class_exists('OxyEl')) {
394
+ if (file_exists(FLUENTFORM_DIR_PATH . 'app/Modules/Widgets/OxygenWidget.php')) {
395
  new FluentForm\App\Modules\Widgets\OxygenWidget();
396
  }
397
  }
399
 
400
  (new FluentForm\App\Services\Integrations\Slack\SlackNotificationActions($app))->register();
401
 
 
402
  /*
403
  * Smartcode parser shortcodes
404
  */
405
 
406
  add_filter('ff_will_return_html', function ($result, $integration, $key) {
407
  $dictionary = [
408
+ 'notifications' => ['message'],
409
  ];
410
 
411
  if (!isset($dictionary[$integration])) {
417
  }
418
 
419
  return $result;
 
420
  }, 10, 3);
421
 
 
422
  $app->addFilter('fluentform_response_render_input_number', function ($response, $field, $form_id, $isHtml = false) {
423
  if (!$response || !$isHtml) {
424
  return $response;
431
  return \FluentForm\App\Helpers\Helper::getNumericFormatted($response, $formatter);
432
  }, 10, 4);
433
 
 
434
  new \FluentForm\App\Services\FormBuilder\Components\CustomSubmitButton();
435
 
436
  if (function_exists('register_block_type')) {
437
+ register_block_type('fluentfom/guten-block', [
438
  'render_callback' => function ($atts) {
 
439
  if (empty($atts['formId'])) {
440
  return '';
441
  }
447
  $className = '';
448
  if (!empty($classes)) {
449
  foreach ($classes as $class) {
450
+ $className .= sanitize_html_class($class) . ' ';
451
  }
452
  }
453
  }
454
+ $type = \FluentForm\App\Helpers\Helper::isConversionForm($atts['formId']) ? 'conversational' : '';
455
+ return do_shortcode('[fluentform css_classes="' . $className . ' ff_guten_block" id="' . $atts['formId'] . '" type="' . $type . '"]');
456
  },
457
+ 'attributes' => [
458
+ 'formId' => [
459
+ 'type' => 'string',
460
+ ],
461
+ 'className' => [
462
+ 'type' => 'string',
463
+ ],
464
+ ],
465
+ ]);
466
  }
467
 
 
468
  // require the CLI
469
  if (defined('WP_CLI') && WP_CLI) {
470
  \WP_CLI::add_command('fluentform', '\FluentForm\App\Modules\CLI\Commands');
app/Hooks/Frontend.php CHANGED
@@ -4,19 +4,18 @@
4
  * Declare frontend actions/filters/shortcodes
5
  */
6
 
7
- //if ($app->getEnv() == 'dev') {
8
- // add_filter('init', function() use ($app) {
9
- // if ($header = $app->request->header('X-HOOK')) {
10
- // error_log($header);
11
- // }
12
- // });
13
- //}
14
-
15
 
16
  /*
17
  * Exclude For WP Rocket Settings
18
  */
19
- if(defined('WP_ROCKET_VERSION')) {
20
  add_filter('rocket_excluded_inline_js_content', function ($lines) {
21
  $lines[] = 'fluent_form_ff_form_instance';
22
  $lines[] = 'fluentFormVars';
@@ -35,36 +34,36 @@ add_filter('fluentform_rendering_form', function ($form) {
35
  }
36
  $type = \FluentForm\Framework\Helpers\ArrayHelper::get($option, 'misc.captcha_type');
37
  $reCaptcha = [
38
- "element" => "recaptcha",
39
- "attributes" => [
40
- "name" => "recaptcha",
41
  ],
42
  ];
43
  $hCaptcha = [
44
- "element" => "hcaptcha",
45
- "attributes" => [
46
- "name" => "hcaptcha",
47
  ],
48
  ];
49
  $turnstile = [
50
- "element" => "turnstile",
51
- "attributes" => [
52
- "name" => "turnstile",
53
  ],
54
  ];
55
-
56
- if ($type == 'recaptcha') {
57
  $captcha = $reCaptcha;
58
- } elseif ($type == 'hcaptcha') {
59
  $captcha = $hCaptcha;
60
- } elseif ($type == 'turnstile') {
61
  $captcha = $turnstile;
62
  }
63
-
64
  // place recaptcha below custom submit button
65
  $hasCustomSubmit = false;
66
  foreach ($form->fields['fields'] as $index => $field) {
67
- if ($field['element'] == 'custom_submit_button') {
68
  $hasCustomSubmit = true;
69
  array_splice($form->fields['fields'], $index, 0, [$captcha]);
70
  break;
@@ -73,6 +72,6 @@ add_filter('fluentform_rendering_form', function ($form) {
73
  if (!$hasCustomSubmit) {
74
  $form->fields['fields'][] = $captcha;
75
  }
76
-
77
  return $form;
78
  }, 10, 1);
4
  * Declare frontend actions/filters/shortcodes
5
  */
6
 
7
+ // if ('dev' == $app->getEnv()) {
8
+ // add_filter('init', function () use ($app) {
9
+ // if ($header = $app->request->header('X-HOOK')) {
10
+ // error_log($header);
11
+ // }
12
+ // });
13
+ // }
 
14
 
15
  /*
16
  * Exclude For WP Rocket Settings
17
  */
18
+ if (defined('WP_ROCKET_VERSION')) {
19
  add_filter('rocket_excluded_inline_js_content', function ($lines) {
20
  $lines[] = 'fluent_form_ff_form_instance';
21
  $lines[] = 'fluentFormVars';
34
  }
35
  $type = \FluentForm\Framework\Helpers\ArrayHelper::get($option, 'misc.captcha_type');
36
  $reCaptcha = [
37
+ 'element' => 'recaptcha',
38
+ 'attributes' => [
39
+ 'name' => 'recaptcha',
40
  ],
41
  ];
42
  $hCaptcha = [
43
+ 'element' => 'hcaptcha',
44
+ 'attributes' => [
45
+ 'name' => 'hcaptcha',
46
  ],
47
  ];
48
  $turnstile = [
49
+ 'element' => 'turnstile',
50
+ 'attributes' => [
51
+ 'name' => 'turnstile',
52
  ],
53
  ];
54
+
55
+ if ('recaptcha' == $type) {
56
  $captcha = $reCaptcha;
57
+ } elseif ('hcaptcha' == $type) {
58
  $captcha = $hCaptcha;
59
+ } elseif ('turnstile' == $type) {
60
  $captcha = $turnstile;
61
  }
62
+
63
  // place recaptcha below custom submit button
64
  $hasCustomSubmit = false;
65
  foreach ($form->fields['fields'] as $index => $field) {
66
+ if ('custom_submit_button' == $field['element']) {
67
  $hasCustomSubmit = true;
68
  array_splice($form->fields['fields'], $index, 0, [$captcha]);
69
  break;
72
  if (!$hasCustomSubmit) {
73
  $form->fields['fields'][] = $captcha;
74
  }
75
+
76
  return $form;
77
  }, 10, 1);
app/Modules/Acl/Acl.php CHANGED
@@ -6,9 +6,9 @@ use FluentForm\Framework\Helpers\ArrayHelper;
6
 
7
  class Acl
8
  {
9
- static $capability = '';
10
-
11
- static $role = '';
12
 
13
  public static function getPermissionSet()
14
  {
@@ -56,9 +56,9 @@ class Acl
56
  * Verify if current user has a fluentform permission.
57
  *
58
  * @param $permission
59
- * @param null $formId
60
  * @param string $message
61
- * @param bool $json
62
  *
63
  * @throws \Exception
64
  */
@@ -67,16 +67,15 @@ class Acl
67
  $formId = null,
68
  $message = 'You do not have permission to perform this action.',
69
  $json = true
70
- )
71
- {
72
- static::verifyNonce();
73
 
74
  $allowed = static::hasPermission($permission, $formId);
75
-
76
  if (!$allowed) {
77
  if ($json) {
78
  wp_send_json_error([
79
- 'message' => $message
80
  ], 422);
81
  } else {
82
  throw new \Exception($message);
@@ -87,7 +86,7 @@ class Acl
87
  public static function hasPermission($permissions, $formId = false)
88
  {
89
  $userCapability = static::getCurrentUserCapability();
90
-
91
  if ($userCapability) {
92
  return $userCapability;
93
  } else {
@@ -148,15 +147,15 @@ class Acl
148
  }
149
 
150
  $capabilities = get_option('_fluentform_form_permission');
151
-
152
  if (is_string($capabilities)) {
153
  $capabilities = (array) $capabilities;
154
  }
155
-
156
  if (!$capabilities) {
157
  return false;
158
  }
159
-
160
  foreach ($capabilities as $capability) {
161
  if ($user->has_cap($capability)) {
162
  return $capability;
@@ -173,68 +172,68 @@ class Acl
173
  return static::$role = $user->roles[0];
174
  }
175
 
176
- public static function verifyNonce($key = 'fluent_forms_admin_nonce')
177
- {
178
- if (!wp_doing_ajax()) {
179
- return;
180
- }
181
 
182
- $nonce = ArrayHelper::get($_REQUEST, $key);
183
 
184
- if (!wp_verify_nonce($nonce, $key)) {
185
- $message = apply_filters('fluentform_nonce_error', __('Nonce verification failed, please try again.', 'fluentform'));
186
 
187
- wp_send_json_error([
188
- 'message' => $message
189
- ], 422);
190
- }
191
- }
192
 
193
  public static function getReadablePermissions()
194
  {
195
  return [
196
  'fluentform_dashboard_access' => [
197
- 'title' => __('View Forms', 'fluentform'),
198
- 'depends' => []
199
  ],
200
  'fluentform_forms_manager' => [
201
- 'title' => __('Manage Forms', 'fluentform'),
202
  'depends' => [
203
- 'fluentform_dashboard_access'
204
- ]
205
  ],
206
  'fluentform_entries_viewer' => [
207
- 'title' => __('View Entries', 'fluentform'),
208
  'depends' => [
209
- 'fluentform_dashboard_access'
210
- ]
211
  ],
212
  'fluentform_manage_entries' => [
213
- 'title' => __('Manage Entries', 'fluentform'),
214
  'depends' => [
215
- 'fluentform_entries_viewer'
216
- ]
217
  ],
218
  'fluentform_view_payments' => [
219
- 'title' => __('View Payments', 'fluentform'),
220
  'depends' => [
221
  'fluentform_dashboard_access',
222
- 'fluentform_entries_viewer'
223
- ]
224
  ],
225
  'fluentform_manage_payments' => [
226
- 'title' => __('Manage Payments', 'fluentform'),
227
  'depends' => [
228
- 'fluentform_view_payments'
229
- ]
230
  ],
231
  'fluentform_settings_manager' => [
232
- 'title' => __('Manage Settings', 'fluentform'),
233
- 'depends' => []
234
  ],
235
  'fluentform_full_access' => [
236
  'title' => __('Full Access', 'fluentform'),
237
- 'depends' => []
238
  ],
239
  ];
240
  }
6
 
7
  class Acl
8
  {
9
+ public static $capability = '';
10
+
11
+ public static $role = '';
12
 
13
  public static function getPermissionSet()
14
  {
56
  * Verify if current user has a fluentform permission.
57
  *
58
  * @param $permission
59
+ * @param null $formId
60
  * @param string $message
61
+ * @param bool $json
62
  *
63
  * @throws \Exception
64
  */
67
  $formId = null,
68
  $message = 'You do not have permission to perform this action.',
69
  $json = true
70
+ ) {
71
+ static::verifyNonce();
 
72
 
73
  $allowed = static::hasPermission($permission, $formId);
74
+
75
  if (!$allowed) {
76
  if ($json) {
77
  wp_send_json_error([
78
+ 'message' => $message,
79
  ], 422);
80
  } else {
81
  throw new \Exception($message);
86
  public static function hasPermission($permissions, $formId = false)
87
  {
88
  $userCapability = static::getCurrentUserCapability();
89
+
90
  if ($userCapability) {
91
  return $userCapability;
92
  } else {
147
  }
148
 
149
  $capabilities = get_option('_fluentform_form_permission');
150
+
151
  if (is_string($capabilities)) {
152
  $capabilities = (array) $capabilities;
153
  }
154
+
155
  if (!$capabilities) {
156
  return false;
157
  }
158
+
159
  foreach ($capabilities as $capability) {
160
  if ($user->has_cap($capability)) {
161
  return $capability;
172
  return static::$role = $user->roles[0];
173
  }
174
 
175
+ public static function verifyNonce($key = 'fluent_forms_admin_nonce')
176
+ {
177
+ if (!wp_doing_ajax()) {
178
+ return;
179
+ }
180
 
181
+ $nonce = wpFluentForm('request')->get($key);
182
 
183
+ if (!wp_verify_nonce($nonce, $key)) {
184
+ $message = apply_filters('fluentform_nonce_error', __('Nonce verification failed, please try again.', 'fluentform'));
185
 
186
+ wp_send_json_error([
187
+ 'message' => $message,
188
+ ], 422);
189
+ }
190
+ }
191
 
192
  public static function getReadablePermissions()
193
  {
194
  return [
195
  'fluentform_dashboard_access' => [
196
+ 'title' => __('View Forms', 'fluentform'),
197
+ 'depends' => [],
198
  ],
199
  'fluentform_forms_manager' => [
200
+ 'title' => __('Manage Forms', 'fluentform'),
201
  'depends' => [
202
+ 'fluentform_dashboard_access',
203
+ ],
204
  ],
205
  'fluentform_entries_viewer' => [
206
+ 'title' => __('View Entries', 'fluentform'),
207
  'depends' => [
208
+ 'fluentform_dashboard_access',
209
+ ],
210
  ],
211
  'fluentform_manage_entries' => [
212
+ 'title' => __('Manage Entries', 'fluentform'),
213
  'depends' => [
214
+ 'fluentform_entries_viewer',
215
+ ],
216
  ],
217
  'fluentform_view_payments' => [
218
+ 'title' => __('View Payments', 'fluentform'),
219
  'depends' => [
220
  'fluentform_dashboard_access',
221
+ 'fluentform_entries_viewer',
222
+ ],
223
  ],
224
  'fluentform_manage_payments' => [
225
+ 'title' => __('Manage Payments', 'fluentform'),
226
  'depends' => [
227
+ 'fluentform_view_payments',
228
+ ],
229
  ],
230
  'fluentform_settings_manager' => [
231
+ 'title' => __('Manage Settings', 'fluentform'),
232
+ 'depends' => [],
233
  ],
234
  'fluentform_full_access' => [
235
  'title' => __('Full Access', 'fluentform'),
236
+ 'depends' => [],
237
  ],
238
  ];
239
  }
app/Modules/Acl/Managers.php CHANGED
@@ -8,6 +8,8 @@ use FluentForm\Framework\Helpers\ArrayHelper;
8
  class Managers
9
  {
10
  /**
 
 
11
  * @var \FluentForm\Framework\Request\Request $request
12
  */
13
  protected $request;
@@ -27,7 +29,7 @@ class Managers
27
  'meta_value' => 1,
28
  'meta_compare' => '=',
29
  'number' => $limit,
30
- 'paged' => $page
31
  ]);
32
 
33
  $managers = [];
@@ -38,16 +40,16 @@ class Managers
38
  'first_name' => $user->first_name,
39
  'last_name' => $user->last_name,
40
  'email' => $user->user_email,
41
- 'permissions' => Acl::getUserPermissions($user)
42
  ];
43
  }
44
 
45
  wp_send_json([
46
  'managers' => [
47
  'data' => $managers,
48
- 'total' => $query->get_total()
49
  ],
50
- 'permissions' => Acl::getReadablePermissions()
51
  ], 200);
52
  }
53
 
@@ -66,7 +68,7 @@ class Managers
66
  update_user_meta($user->ID, '_fluent_forms_has_role', 1);
67
 
68
  wp_send_json([
69
- 'message' => __('Manager has been saved.', 'fluentform')
70
  ], 200);
71
  }
72
 
@@ -76,7 +78,7 @@ class Managers
76
 
77
  if (!$user) {
78
  return $this->sendError([
79
- 'message' => __('Associate user could not be found', 'fluentform')
80
  ]);
81
  }
82
 
@@ -85,7 +87,7 @@ class Managers
85
  delete_user_meta($user->ID, '_fluent_forms_has_role');
86
 
87
  wp_send_json([
88
- 'message' => __('Manager has been removed.', 'fluentform')
89
  ], 200);
90
  }
91
 
@@ -95,7 +97,7 @@ class Managers
95
 
96
  $rules = [
97
  'permissions' => 'required',
98
- 'email' => 'required|email'
99
  ];
100
 
101
  $validator = Validator::make($manager, $rules);
@@ -111,7 +113,7 @@ class Managers
111
 
112
  if (!$user) {
113
  $errors['email'] = [
114
- 'no_user' => __('We could not found any user with this email.', 'fluentform')
115
  ];
116
  }
117
  }
@@ -121,14 +123,14 @@ class Managers
121
 
122
  if ($message) {
123
  $errors['permissions'] = [
124
- 'dependency' => $message
125
  ];
126
  }
127
  }
128
 
129
  if ($errors) {
130
  $this->sendError([
131
- 'errors' => $errors
132
  ]);
133
  }
134
 
8
  class Managers
9
  {
10
  /**
11
+ * Request object
12
+ *
13
  * @var \FluentForm\Framework\Request\Request $request
14
  */
15
  protected $request;
29
  'meta_value' => 1,
30
  'meta_compare' => '=',
31
  'number' => $limit,
32
+ 'paged' => $page,
33
  ]);
34
 
35
  $managers = [];
40
  'first_name' => $user->first_name,
41
  'last_name' => $user->last_name,
42
  'email' => $user->user_email,
43
+ 'permissions' => Acl::getUserPermissions($user),
44
  ];
45
  }
46
 
47
  wp_send_json([
48
  'managers' => [
49
  'data' => $managers,
50
+ 'total' => $query->get_total(),
51
  ],
52
+ 'permissions' => Acl::getReadablePermissions(),
53
  ], 200);
54
  }
55
 
68
  update_user_meta($user->ID, '_fluent_forms_has_role', 1);
69
 
70
  wp_send_json([
71
+ 'message' => __('Manager has been saved.', 'fluentform'),
72
  ], 200);
73
  }
74
 
78
 
79
  if (!$user) {
80
  return $this->sendError([
81
+ 'message' => __('Associate user could not be found', 'fluentform'),
82
  ]);
83
  }
84
 
87
  delete_user_meta($user->ID, '_fluent_forms_has_role');
88
 
89
  wp_send_json([
90
+ 'message' => __('Manager has been removed.', 'fluentform'),
91
  ], 200);
92
  }
93
 
97
 
98
  $rules = [
99
  'permissions' => 'required',
100
+ 'email' => 'required|email',
101
  ];
102
 
103
  $validator = Validator::make($manager, $rules);
113
 
114
  if (!$user) {
115
  $errors['email'] = [
116
+ 'no_user' => __('We could not found any user with this email.', 'fluentform'),
117
  ];
118
  }
119
  }
123
 
124
  if ($message) {
125
  $errors['permissions'] = [
126
+ 'dependency' => $message,
127
  ];
128
  }
129
  }
130
 
131
  if ($errors) {
132
  $this->sendError([
133
+ 'errors' => $errors,
134
  ]);
135
  }
136
 
app/Modules/Acl/RoleManager.php CHANGED
@@ -7,23 +7,23 @@ class RoleManager
7
  public function getRoles()
8
  {
9
  if (!current_user_can('manage_options')) {
10
- wp_send_json_success(array(
11
- 'capability' => array(),
12
- 'roles' => array()
13
- ), 200);
14
  }
15
 
16
  $roles = \get_editable_roles();
17
- $formatted = array();
18
  foreach ($roles as $key => $role) {
19
- if ($key == 'administrator') {
20
  continue;
21
  }
22
- if ($key != 'subscriber') {
23
- $formatted[] = array(
24
  'name' => $role['name'],
25
- 'key' => $key
26
- );
27
  }
28
  }
29
 
@@ -33,33 +33,33 @@ class RoleManager
33
  $capability = [];
34
  }
35
 
36
- wp_send_json_success(array(
37
  'capability' => $capability,
38
- 'roles' => $formatted
39
- ), 200);
40
  }
41
 
42
  public function setRoles()
43
  {
44
  if (current_user_can('manage_options')) {
45
- $capability = isset($_REQUEST['capability']) ? wp_unslash($_REQUEST['capability']) : [];
46
 
47
  foreach ($capability as $item) {
48
- if (strtolower($item) == 'subscriber') {
49
- wp_send_json_error(array(
50
- 'message' => __('Sorry, you can not give access to the Subscriber role.', 'fluentform')
51
- ), 423);
52
  }
53
  }
54
 
55
  update_option('_fluentform_form_permission', $capability, 'no');
56
- wp_send_json_success(array(
57
- 'message' => __('Successfully saved the role(s).', 'fluentform')
58
- ), 200);
59
  } else {
60
- wp_send_json_error(array(
61
- 'message' => __('Sorry, You can not update permissions. Only administrators can update permissions', 'fluentform')
62
- ), 423);
63
  }
64
  }
65
 
@@ -73,7 +73,7 @@ class RoleManager
73
 
74
  // Give permission to internal issues
75
  foreach ($availablePermissions as $permission) {
76
- add_filter('fluentform_verify_user_permission_'.$permission, function ($allowed) {
77
  return true;
78
  });
79
  }
7
  public function getRoles()
8
  {
9
  if (!current_user_can('manage_options')) {
10
+ wp_send_json_success([
11
+ 'capability' => [],
12
+ 'roles' => [],
13
+ ], 200);
14
  }
15
 
16
  $roles = \get_editable_roles();
17
+ $formatted = [];
18
  foreach ($roles as $key => $role) {
19
+ if ('administrator' == $key) {
20
  continue;
21
  }
22
+ if ('subscriber' != $key) {
23
+ $formatted[] = [
24
  'name' => $role['name'],
25
+ 'key' => $key,
26
+ ];
27
  }
28
  }
29
 
33
  $capability = [];
34
  }
35
 
36
+ wp_send_json_success([
37
  'capability' => $capability,
38
+ 'roles' => $formatted,
39
+ ], 200);
40
  }
41
 
42
  public function setRoles()
43
  {
44
  if (current_user_can('manage_options')) {
45
+ $capability = wp_unslash(wpFluentForm('request')->get('capability', []));
46
 
47
  foreach ($capability as $item) {
48
+ if ('subscriber' == strtolower($item)) {
49
+ wp_send_json_error([
50
+ 'message' => __('Sorry, you can not give access to the Subscriber role.', 'fluentform'),
51
+ ], 423);
52
  }
53
  }
54
 
55
  update_option('_fluentform_form_permission', $capability, 'no');
56
+ wp_send_json_success([
57
+ 'message' => __('Successfully saved the role(s).', 'fluentform'),
58
+ ], 200);
59
  } else {
60
+ wp_send_json_error([
61
+ 'message' => __('Sorry, You can not update permissions. Only administrators can update permissions', 'fluentform'),
62
+ ], 423);
63
  }
64
  }
65
 
73
 
74
  // Give permission to internal issues
75
  foreach ($availablePermissions as $permission) {
76
+ add_filter('fluentform_verify_user_permission_' . $permission, function ($allowed) {
77
  return true;
78
  });
79
  }
app/Modules/Activator.php CHANGED
@@ -12,6 +12,7 @@ class Activator
12
  {
13
  /**
14
  * This method will be called on plugin activation
 
15
  * @return void
16
  */
17
  public function handleActivation($network_wide)
@@ -20,7 +21,7 @@ class Activator
20
  if ($network_wide) {
21
  // Retrieve all site IDs from this network (WordPress >= 4.6 provides easy to use functions for that).
22
  if (function_exists('get_sites') && function_exists('get_current_network_id')) {
23
- $site_ids = get_sites(array('fields' => 'ids', 'network_id' => get_current_network_id()));
24
  } else {
25
  $site_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs WHERE site_id = $wpdb->siteid;");
26
  }
@@ -77,13 +78,13 @@ class Activator
77
  'campaign_monitor' => '_fluentform_campaignmonitor_settings',
78
  'constatantcontact' => '_fluentform_constantcontact_settings',
79
  'getresponse' => '_fluentform_getresponse_settings',
80
- 'icontact' => '_fluentform_icontact_settings'
81
  ];
82
 
83
  $possibleMetaModules = [
84
  'webhook' => 'fluentform_webhook_feed',
85
  'zapier' => 'fluentform_zapier_feed',
86
- 'slack' => 'slack'
87
  ];
88
 
89
  $moduleStatuses = [];
@@ -113,15 +114,15 @@ class Activator
113
  private function setDefaultGlobalSettings()
114
  {
115
  if (!get_option('_fluentform_global_form_settings')) {
116
- update_option('__fluentform_global_form_settings', array(
117
- 'layout' => array(
118
  'labelPlacement' => 'top',
119
  'asteriskPlacement' => 'asterisk-right',
120
  'helpMessagePlacement' => 'with_label',
121
  'errorMessagePlacement' => 'inline',
122
- 'cssClassName' => ''
123
- )
124
- ), 'no');
125
  }
126
  }
127
 
@@ -133,10 +134,10 @@ class Activator
133
  public static function setCronSchedule()
134
  {
135
  add_filter('cron_schedules', function ($schedules) {
136
- $schedules['ff_every_five_minutes'] = array(
137
  'interval' => 300,
138
  'display' => esc_html__('Every 5 Minutes (FluentForm)', 'fluentform'),
139
- );
140
  return $schedules;
141
  }, 10, 1);
142
 
@@ -160,7 +161,7 @@ class Activator
160
  if (!$firstForm) {
161
  $forms = [
162
  '[{"id":"9","title":"Contact Form Demo","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name"},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_1570866006692"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_1570866012914"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"subject","value":"","class":"","placeholder":"Subject"},"settings":{"container_class":"","label":"Subject","label_placement":"","admin_field_label":"Subject","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"uniqElKey":"el_1570878958648"},{"index":3,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Your Message","rows":4,"cols":2},"settings":{"container_class":"","label":"Your Message","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Text Area","icon_class":"ff-edit-textarea","template":"inputTextarea"},"uniqElKey":"el_1570879001207"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"","conditions":null,"created_by":"1","created_at":"2021-06-08 04:56:28","updated_at":"2021-06-08 04:56:28","metas":[{"meta_key": "template_name","value": "basic_contact_form"},{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"Thank you for your message. We will get in touch with you shortly\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"selectedDays\":[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"],\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"cssClassName\":\"\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"double_optin_settings","value":"{\"status\":\"no\",\"confirmation_message\":\"Please check your email inbox to confirm this submission\",\"email_body_type\":\"global\",\"email_subject\":\"Please confirm your form submission\",\"email_body\":\"<h2>Please Confirm Your Submission<\/h2><p>&nbsp;<\/p><p style=\"text-align: center;\"><a style=\"color: #ffffff; background-color: #454545; font-size: 16px; border-radius: 5px; text-decoration: none; font-weight: normal; font-style: normal; padding: 0.8rem 1rem; border-color: #0072ff;\" href=\"#confirmation_url#\">Confirm Submission<\/a><\/p><p>&nbsp;<\/p><p>If you received this email by mistake, simply delete it. Your form submission won\'t proceed if you don\'t click the confirmation link above.<\/p>\",\"email_field\":\"\",\"skip_if_logged_in\":\"yes\",\"skip_if_fc_subscribed\":\"no\"}"}]}]',
163
- '[{"id":"8","title":"Subscription Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":1,"element":"container","attributes":[],"settings":{"container_class":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"columns":[{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Your Email Address"},"settings":{"container_class":"","label":"","label_placement":"","help_message":"","admin_field_label":"Email","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_16231279686950.8779857923682932"}]},{"fields":[{"index":15,"element":"custom_submit_button","attributes":{"class":"","type":"submit"},"settings":{"button_style":"","button_size":"md","align":"left","container_class":"","current_state":"normal_styles","background_color":"","color":"","hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":"100%"},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":"100%"},"button_ui":{"text":"Subscribe","type":"default","img_url":""},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom Submit Button","icon_class":"dashicons dashicons-arrow-right-alt","template":"customButton"},"uniqElKey":"el_16231279798380.5947400167493171"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_16231279284710.40955091024524304"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Subscribe","img_url":""}},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"form","conditions":null,"created_by":"1","created_at":"2021-06-08 04:51:36","updated_at":"2021-06-08 04:54:02","metas":[{"meta_key": "template_name","value": "inline_subscription"},{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"Thank you for your message. We will get in touch with you shortly\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<p>{all_data}<\\\/p>\\n<p>This form submitted at: {embed_post.permalink}<\\\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\"}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_primary_email_field","value":"email"}]}]'
164
  ];
165
 
166
  foreach ($forms as $index => $formJson) {
@@ -173,7 +174,7 @@ class Activator
173
  'created_by' => get_current_user_id(),
174
  'created_at' => current_time('mysql'),
175
  'updated_at' => current_time('mysql'),
176
- 'form_fields' => json_encode($structure['form_fields'])
177
  ];
178
 
179
  $wpdb->insert($formsTable, $insertData, [
@@ -183,23 +184,22 @@ class Activator
183
  '%d',
184
  '%s',
185
  '%s',
186
- '%s'
187
  ]);
188
 
189
-
190
  $formId = $wpdb->insert_id;
191
 
192
  foreach ($structure['metas'] as $meta) {
193
  $meta['value'] = trim(preg_replace('/\s+/', ' ', $meta['value']));
194
 
195
- $wpdb->insert($wpdb->prefix . 'fluentform_form_meta', array(
196
  'form_id' => $formId,
197
  'meta_key' => $meta['meta_key'],
198
- 'value' => $meta['value']
199
- ), [
200
  '%d',
201
  '%s',
202
- '%s'
203
  ]);
204
  }
205
  }
12
  {
13
  /**
14
  * This method will be called on plugin activation
15
+ *
16
  * @return void
17
  */
18
  public function handleActivation($network_wide)
21
  if ($network_wide) {
22
  // Retrieve all site IDs from this network (WordPress >= 4.6 provides easy to use functions for that).
23
  if (function_exists('get_sites') && function_exists('get_current_network_id')) {
24
+ $site_ids = get_sites(['fields' => 'ids', 'network_id' => get_current_network_id()]);
25
  } else {
26
  $site_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs WHERE site_id = $wpdb->siteid;");
27
  }
78
  'campaign_monitor' => '_fluentform_campaignmonitor_settings',
79
  'constatantcontact' => '_fluentform_constantcontact_settings',
80
  'getresponse' => '_fluentform_getresponse_settings',
81
+ 'icontact' => '_fluentform_icontact_settings',
82
  ];
83
 
84
  $possibleMetaModules = [
85
  'webhook' => 'fluentform_webhook_feed',
86
  'zapier' => 'fluentform_zapier_feed',
87
+ 'slack' => 'slack',
88
  ];
89
 
90
  $moduleStatuses = [];
114
  private function setDefaultGlobalSettings()
115
  {
116
  if (!get_option('_fluentform_global_form_settings')) {
117
+ update_option('__fluentform_global_form_settings', [
118
+ 'layout' => [
119
  'labelPlacement' => 'top',
120
  'asteriskPlacement' => 'asterisk-right',
121
  'helpMessagePlacement' => 'with_label',
122
  'errorMessagePlacement' => 'inline',
123
+ 'cssClassName' => '',
124
+ ],
125
+ ], 'no');
126
  }
127
  }
128
 
134
  public static function setCronSchedule()
135
  {
136
  add_filter('cron_schedules', function ($schedules) {
137
+ $schedules['ff_every_five_minutes'] = [
138
  'interval' => 300,
139
  'display' => esc_html__('Every 5 Minutes (FluentForm)', 'fluentform'),
140
+ ];
141
  return $schedules;
142
  }, 10, 1);
143
 
161
  if (!$firstForm) {
162
  $forms = [
163
  '[{"id":"9","title":"Contact Form Demo","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name"},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_1570866006692"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_1570866012914"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"subject","value":"","class":"","placeholder":"Subject"},"settings":{"container_class":"","label":"Subject","label_placement":"","admin_field_label":"Subject","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"uniqElKey":"el_1570878958648"},{"index":3,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Your Message","rows":4,"cols":2},"settings":{"container_class":"","label":"Your Message","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Text Area","icon_class":"ff-edit-textarea","template":"inputTextarea"},"uniqElKey":"el_1570879001207"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"","conditions":null,"created_by":"1","created_at":"2021-06-08 04:56:28","updated_at":"2021-06-08 04:56:28","metas":[{"meta_key": "template_name","value": "basic_contact_form"},{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"Thank you for your message. We will get in touch with you shortly\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"selectedDays\":[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"],\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"cssClassName\":\"\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"double_optin_settings","value":"{\"status\":\"no\",\"confirmation_message\":\"Please check your email inbox to confirm this submission\",\"email_body_type\":\"global\",\"email_subject\":\"Please confirm your form submission\",\"email_body\":\"<h2>Please Confirm Your Submission<\/h2><p>&nbsp;<\/p><p style=\"text-align: center;\"><a style=\"color: #ffffff; background-color: #454545; font-size: 16px; border-radius: 5px; text-decoration: none; font-weight: normal; font-style: normal; padding: 0.8rem 1rem; border-color: #0072ff;\" href=\"#confirmation_url#\">Confirm Submission<\/a><\/p><p>&nbsp;<\/p><p>If you received this email by mistake, simply delete it. Your form submission won\'t proceed if you don\'t click the confirmation link above.<\/p>\",\"email_field\":\"\",\"skip_if_logged_in\":\"yes\",\"skip_if_fc_subscribed\":\"no\"}"}]}]',
164
+ '[{"id":"8","title":"Subscription Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":1,"element":"container","attributes":[],"settings":{"container_class":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"columns":[{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Your Email Address"},"settings":{"container_class":"","label":"","label_placement":"","help_message":"","admin_field_label":"Email","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_16231279686950.8779857923682932"}]},{"fields":[{"index":15,"element":"custom_submit_button","attributes":{"class":"","type":"submit"},"settings":{"button_style":"","button_size":"md","align":"left","container_class":"","current_state":"normal_styles","background_color":"","color":"","hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":"100%"},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":"100%"},"button_ui":{"text":"Subscribe","type":"default","img_url":""},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom Submit Button","icon_class":"dashicons dashicons-arrow-right-alt","template":"customButton"},"uniqElKey":"el_16231279798380.5947400167493171"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_16231279284710.40955091024524304"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Subscribe","img_url":""}},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"form","conditions":null,"created_by":"1","created_at":"2021-06-08 04:51:36","updated_at":"2021-06-08 04:54:02","metas":[{"meta_key": "template_name","value": "inline_subscription"},{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"Thank you for your message. We will get in touch with you shortly\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<p>{all_data}<\\\/p>\\n<p>This form submitted at: {embed_post.permalink}<\\\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\"}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_primary_email_field","value":"email"}]}]',
165
  ];
166
 
167
  foreach ($forms as $index => $formJson) {
174
  'created_by' => get_current_user_id(),
175
  'created_at' => current_time('mysql'),
176
  'updated_at' => current_time('mysql'),
177
+ 'form_fields' => json_encode($structure['form_fields']),
178
  ];
179
 
180
  $wpdb->insert($formsTable, $insertData, [
184
  '%d',
185
  '%s',
186
  '%s',
187
+ '%s',
188
  ]);
189
 
 
190
  $formId = $wpdb->insert_id;
191
 
192
  foreach ($structure['metas'] as $meta) {
193
  $meta['value'] = trim(preg_replace('/\s+/', ' ', $meta['value']));
194
 
195
+ $wpdb->insert($wpdb->prefix . 'fluentform_form_meta', [
196
  'form_id' => $formId,
197
  'meta_key' => $meta['meta_key'],
198
+ 'value' => $meta['value'],
199
+ ], [
200
  '%d',
201
  '%s',
202
+ '%s',
203
  ]);
204
  }
205
  }
app/Modules/AddOnModule.php CHANGED
@@ -30,17 +30,18 @@ class AddOnModule
30
 
31
  $extraMenus = apply_filters('fluentform_addons_extra_menu', $extraMenus);
32
 
33
-
34
  $current_menu_item = 'fluentform_add_ons';
35
 
36
- if (isset($_GET['sub_page']) && $_GET['sub_page']) {
37
- $current_menu_item = sanitize_key($_GET['sub_page']);
 
 
38
  }
39
 
40
- return View::make('admin.addons.index', [
41
  'menus' => $extraMenus,
42
  'base_url' => admin_url('admin.php?page=fluent_forms_add_ons'),
43
- 'current_menu_item' => $current_menu_item
44
  ]);
45
  }
46
 
@@ -59,7 +60,7 @@ class AddOnModule
59
  'logo' => App::publicUrl('img/integrations/slack.png'),
60
  'enabled' => App\Helpers\Helper::isSlackEnabled() ? 'yes' : 'no',
61
  'config_url' => '',
62
- 'category' => 'crm'
63
  ];
64
 
65
  if (!defined('FLUENTFORMPRO')) {
@@ -67,8 +68,8 @@ class AddOnModule
67
  }
68
 
69
  wp_localize_script('fluentform-modules', 'fluent_addon_modules', [
70
- 'addons' => $addOns,
71
- 'has_pro' => defined('FLUENTFORMPRO'),
72
  'addOnModule_str' => App\Modules\Registerer\TranslationString::getAddOnModuleI18n(),
73
  ]);
74
 
@@ -77,306 +78,306 @@ class AddOnModule
77
 
78
  public function updateAddOnsStatus()
79
  {
80
- $addons = wp_unslash($_REQUEST['addons']);
81
  update_option('fluentform_global_modules_status', $addons, 'no');
82
 
83
  wp_send_json_success([
84
- 'message' => 'Status successfully updated'
85
  ], 200);
86
  }
87
 
88
  public function getPremiumAddOns()
89
  {
90
  $purchaseUrl = fluentform_upgrade_url();
91
- return array(
92
- 'paypal' => array(
93
  'title' => __('PayPal', 'fluentform'),
94
  'description' => __('Accept Payments via paypal as a part of your form submission', 'fluentform'),
95
  'logo' => App::publicUrl('img/integrations/paypal.png'),
96
  'enabled' => 'no',
97
  'purchase_url' => $purchaseUrl,
98
- 'category' => 'payment'
99
- ),
100
- 'stripe' => array(
101
  'title' => __('Stripe', 'fluentform'),
102
  'description' => __('Accept Payments via stripe as a part of your form submission', 'fluentform'),
103
  'logo' => App::publicUrl('img/integrations/stripe.png'),
104
  'enabled' => 'no',
105
  'purchase_url' => $purchaseUrl,
106
- 'category' => 'payment'
107
- ),
108
- 'UserRegistration' => array(
109
  'title' => __('User Registration', 'fluentform'),
110
  'description' => __('Create WordPress user when when a form is submitted', 'fluentform'),
111
  'logo' => App::publicUrl('img/integrations/user_registration.png'),
112
  'enabled' => 'no',
113
  'purchase_url' => $purchaseUrl,
114
- 'category' => 'wp_core'
115
- ),
116
- 'PostFeeds' => array(
117
  'title' => __('Advanced Post/CPT Creation', 'fluentform'),
118
  'description' => __('Create post/any cpt on form submission. It will enable many new features including dedicated post fields.', 'fluentform'),
119
  'logo' => App::publicUrl('img/integrations/post-creation.png'),
120
  'enabled' => 'no',
121
  'purchase_url' => $purchaseUrl,
122
- 'category' => 'wp_core'
123
- ),
124
- 'sharePages' => array(
125
- 'title' => __('Landing Pages', 'fluentform'),
126
- 'description' => __('Create completely custom "distraction-free" form landing pages to boost conversions', 'fluentform'),
127
- 'logo' => App::publicUrl('img/integrations/landing_pages.png'),
128
- 'enabled' => 'no',
129
  'purchase_url' => $purchaseUrl,
130
- 'category' => 'wp_core'
131
- ),
132
- 'webhook' => array(
133
  'title' => __('WebHooks', 'fluentform'),
134
  'description' => __('Broadcast your Fluent Forms Submission to any web api endpoint with the powerful webhook module.', 'fluentform'),
135
  'logo' => App::publicUrl('img/integrations/webhook.png'),
136
  'enabled' => 'no',
137
  'purchase_url' => $purchaseUrl,
138
- 'category' => 'crm'
139
- ),
140
- 'zapier' => array(
141
  'title' => __('Zapier', 'fluentform'),
142
  'description' => __('Connect your Fluent Forms data with Zapier and push data to thousands of online softwares.', 'fluentform'),
143
  'logo' => App::publicUrl('img/integrations/zapier.png'),
144
  'enabled' => 'no',
145
  'purchase_url' => $purchaseUrl,
146
- 'category' => 'crm'
147
- ),
148
- 'trello' => array(
149
  'title' => __('Trello', 'fluentform'),
150
  'description' => __('Fluent Forms Trello Module allows you to create Trello card from submiting forms.', 'fluentform'),
151
  'logo' => App::publicUrl('img/integrations/trello.png'),
152
  'enabled' => 'no',
153
  'purchase_url' => $purchaseUrl,
154
- 'category' => 'crm'
155
- ),
156
- 'google_sheet' => array(
157
  'title' => __('Google Sheet', 'fluentform'),
158
  'description' => __('Add Fluent Forms Submission to Google sheets when a form is submitted.', 'fluentform'),
159
  'logo' => App::publicUrl('img/integrations/google-sheets.png'),
160
  'enabled' => 'no',
161
  'purchase_url' => $purchaseUrl,
162
- 'category' => 'crm'
163
- ),
164
- 'activecampaign' => array(
165
  'title' => __('ActiveCampaign', 'fluentform'),
166
  'description' => __('Fluent Forms ActiveCampaign Module allows you to create ActiveCampaign list signup forms in WordPress, so you can grow your email list.', 'fluentform'),
167
  'logo' => App::publicUrl('img/integrations/activecampaign.png'),
168
  'enabled' => 'no',
169
  'purchase_url' => $purchaseUrl,
170
- 'category' => 'crm'
171
- ),
172
- 'campaign_monitor' => array(
173
  'title' => __('Campaign Monitor', 'fluentform'),
174
  'description' => __('Fluent Forms Campaign Monitor module allows you to create Campaign Monitor newsletter signup forms in WordPress, so you can grow your email list.', 'fluentform'),
175
  'logo' => App::publicUrl('img/integrations/campaignmonitor.png'),
176
  'enabled' => 'no',
177
  'purchase_url' => $purchaseUrl,
178
- 'category' => 'crm'
179
- ),
180
- 'constatantcontact' => array(
181
  'title' => __('Constant Contact', 'fluentform'),
182
  'description' => __('Connect Constant Contact with Fluent Forms and create subscriptions forms right into WordPress and grow your list.', 'fluentform'),
183
  'logo' => App::publicUrl('img/integrations/constantcontact.png'),
184
  'enabled' => 'no',
185
  'purchase_url' => $purchaseUrl,
186
- 'category' => 'crm'
187
- ),
188
- 'convertkit' => array(
189
  'title' => __('ConvertKit', 'fluentform'),
190
  'description' => __('Connect ConvertKit with Fluent Forms and create subscription forms right into WordPress and grow your list.', 'fluentform'),
191
  'logo' => App::publicUrl('img/integrations/convertkit.png'),
192
  'enabled' => 'no',
193
  'purchase_url' => $purchaseUrl,
194
- 'category' => 'crm'
195
- ),
196
- 'getresponse' => array(
197
  'title' => __('GetResponse', 'fluentform'),
198
  'description' => __('Fluent Forms GetResponse module allows you to create GetResponse newsletter signup forms in WordPress, so you can grow your email list.', 'fluentform'),
199
  'logo' => App::publicUrl('img/integrations/getresponse.png'),
200
  'enabled' => 'no',
201
  'purchase_url' => $purchaseUrl,
202
- 'category' => 'crm'
203
- ),
204
- 'hubspot' => array(
205
  'title' => __('Hubspot', 'fluentform'),
206
  'description' => __('Connect HubSpot with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
207
  'logo' => App::publicUrl('img/integrations/hubspot.png'),
208
  'enabled' => 'no',
209
  'purchase_url' => $purchaseUrl,
210
- 'category' => 'crm'
211
- ),
212
- 'icontact' => array(
213
  'title' => __('iContact', 'fluentform'),
214
  'description' => __('Connect iContact with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
215
  'logo' => App::publicUrl('img/integrations/icontact.png'),
216
  'enabled' => 'no',
217
  'purchase_url' => $purchaseUrl,
218
- 'category' => 'crm'
219
- ),
220
- 'platformly' => array(
221
  'title' => __('Platformly', 'fluentform'),
222
  'description' => __('Connect Platform.ly with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
223
  'logo' => App::publicUrl('img/integrations/platformly.png'),
224
  'enabled' => 'no',
225
  'purchase_url' => $purchaseUrl,
226
- 'category' => 'crm'
227
- ),
228
- 'moosend' => array(
229
  'title' => __('MooSend', 'fluentform'),
230
  'description' => 'Connect MooSend with Fluent Forms and subscribe a contact when a form is submitted.',
231
  'logo' => App::publicUrl('img/integrations/moosend_logo.png'),
232
  'enabled' => 'no',
233
  'purchase_url' => $purchaseUrl,
234
- 'category' => 'crm'
235
- ),
236
- 'sendfox' => array(
237
  'title' => __('SendFox', 'fluentform'),
238
  'description' => __('Connect SendFox with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
239
  'logo' => App::publicUrl('img/integrations/sendfox.png'),
240
  'enabled' => 'no',
241
  'purchase_url' => $purchaseUrl,
242
- 'category' => 'crm'
243
- ),
244
- 'mailerlite' => array(
245
  'title' => __('MailerLite', 'fluentform'),
246
  'description' => __('Connect your Fluent Forms with MailerLite and add subscribers easily.', 'fluentform'),
247
  'logo' => App::publicUrl('img/integrations/mailerlite.png'),
248
  'enabled' => 'no',
249
  'purchase_url' => $purchaseUrl,
250
- 'category' => 'crm'
251
- ),
252
- 'sms_notifications' => array(
253
  'title' => __('SMS Notification', 'fluentform'),
254
  'description' => __('Send SMS in real time when a form is submitted with Twilio.', 'fluentform'),
255
  'logo' => App::publicUrl('img/integrations/twilio.png'),
256
  'enabled' => 'no',
257
  'purchase_url' => $purchaseUrl,
258
- 'category' => 'crm'
259
- ),
260
- 'get_gist' => array(
261
  'title' => __('Gist', 'fluentform'),
262
  'description' => __('GetGist is Easy to use all-in-one software for live chat, email marketing automation, forms, knowledge base, and more for a complete 360° view of your contacts.', 'fluentform'),
263
  'logo' => App::publicUrl('img/integrations/getgist.png'),
264
  'enabled' => 'no',
265
  'purchase_url' => $purchaseUrl,
266
- 'category' => 'crm'
267
- ),
268
- 'sendinblue' => array(
269
  'title' => __('SendInBlue', 'fluentform'),
270
  'description' => __('Fluent Forms Sendinblue Module allows you to create contacts on your list, so you can grow your email list.', 'fluentform'),
271
  'logo' => App::publicUrl('img/integrations/sendinblue.png'),
272
  'enabled' => 'no',
273
  'purchase_url' => $purchaseUrl,
274
- 'category' => 'crm'
275
- ),
276
- 'drip' => array(
277
  'title' => __('Drip', 'fluentform'),
278
  'description' => __('Fluent Forms Drip Module allows you to create contacts on your Drip list, so you can grow your email list.', 'fluentform'),
279
  'logo' => App::publicUrl('img/integrations/drip.png'),
280
  'enabled' => 'no',
281
  'purchase_url' => $purchaseUrl,
282
- 'category' => 'crm'
283
- ),
284
- 'discord' => array(
285
  'title' => __('Discord', 'fluentform'),
286
  'description' => __('Send notification with form data to your Discord channel when a form is submitted', 'fluentform'),
287
  'logo' => App::publicUrl('img/integrations/discord.png'),
288
  'enabled' => 'no',
289
  'purchase_url' => $purchaseUrl,
290
- 'category' => 'crm'
291
- ),
292
- 'telegram' => array(
293
  'title' => __('Telegram', 'fluentform'),
294
  'description' => __('Send notification to Telegram channel or group when a form is submitted', 'fluentform'),
295
  'logo' => App::publicUrl('img/integrations/telegram.png'),
296
  'enabled' => 'no',
297
  'purchase_url' => $purchaseUrl,
298
- 'category' => 'crm'
299
- ),
300
- 'affiliateWp' => array(
301
  'title' => __('AffiliateWP', 'fluentform'),
302
  'description' => __('Generate AffiliateWP referrals automatically when a customer is referred to your site via an affiliate link', 'fluentform'),
303
  'logo' => App::publicUrl('img/integrations/affiliatewp.png'),
304
  'enabled' => 'no',
305
  'purchase_url' => $purchaseUrl,
306
- 'category' => 'crm'
307
- ),
308
- 'clicksend_sms_notification' => array(
309
  'title' => __('ClickSend', 'fluentform'),
310
  'description' => __('Send SMS in real time when a form is submitted with ClickSend', 'fluentform'),
311
  'logo' => App::publicUrl('img/integrations/clicksend.png'),
312
  'enabled' => 'no',
313
  'purchase_url' => $purchaseUrl,
314
- 'category' => 'crm'
315
- ),
316
- 'zohocrm' => array(
317
  'title' => __('Zoho CRM', 'fluentform'),
318
  'description' => __('Zoho CRM is an online Sales CRM software that manages your sales, marketing and support in one CRM platform.', 'fluentform'),
319
  'logo' => App::publicUrl('img/integrations/zohocrm.png'),
320
  'enabled' => 'no',
321
  'purchase_url' => $purchaseUrl,
322
- 'category' => 'crm'
323
- ),
324
- 'cleverreach' => array(
325
  'title' => __('CleverReach', 'fluentform'),
326
  'description' => __('CleverReach is web-based email marketing software for managing email campaigns and contacts. Use Fluent Forms to grow your CleverReach subscriber list', 'fluentform'),
327
  'logo' => App::publicUrl('img/integrations/clever_reach.png'),
328
  'enabled' => 'no',
329
  'purchase_url' => $purchaseUrl,
330
- 'category' => 'crm'
331
- ),
332
- 'salesflare' => array(
333
  'title' => __('Salesflare', 'fluentform'),
334
  'description' => __('Create Salesflare contact from WordPress, so you can grow your contact list', 'fluentform'),
335
  'logo' => App::publicUrl('img/integrations/salesflare.png'),
336
  'enabled' => 'no',
337
  'purchase_url' => $purchaseUrl,
338
- 'category' => 'crm'
339
- ),
340
- 'automizy' => array(
341
  'title' => __('Automizy', 'fluentform'),
342
  'description' => __('Connect Automizy with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
343
  'logo' => App::publicUrl('img/integrations/automizy.png'),
344
  'enabled' => 'no',
345
  'purchase_url' => $purchaseUrl,
346
- 'category' => 'crm'
347
- ),
348
- 'salesforce' => array(
349
  'title' => __('Salesforce', 'fluentform'),
350
  'description' => __('Salesforce helps your marketing, sales, commerce, service and IT teams work as one from anywhere — so you can keep your customers happy everywhere.', 'fluentform'),
351
  'logo' => App::publicUrl('img/integrations/salesforce.png'),
352
  'enabled' => 'no',
353
  'purchase_url' => $purchaseUrl,
354
- 'category' => 'crm'
355
- ),
356
- 'airtable' => array(
357
  'title' => __('Airtable', 'fluentform'),
358
  'description' => __('Airtable is a low-code platform for building collaborative apps. Customize your workflow, collaborate, and achieve ambitious outcomes.', 'fluentform'),
359
  'logo' => App::publicUrl('img/integrations/airtable.png'),
360
  'enabled' => 'no',
361
  'purchase_url' => $purchaseUrl,
362
- 'category' => 'crm'
363
- ),
364
- 'mailjet' => array(
365
  'title' => __('Mailjet', 'fluentform'),
366
  'description' => __('Mailjet is an easy-to-use all-in-one e-mail platform.', 'fluentform'),
367
  'logo' => App::publicUrl('img/integrations/mailjet.png'),
368
  'enabled' => 'no',
369
  'purchase_url' => $purchaseUrl,
370
- 'category' => 'crm'
371
- ),
372
- 'quiz_addon' => array(
373
  'title' => __('Quiz Module', 'fluentform'),
374
  'description' => __('With this module, you can create quizzes and show scores with grades, points, fractions, or percentages', 'fluentform'),
375
  'logo' => App::publicUrl('img/integrations/quiz-icon.svg'),
376
  'enabled' => 'no',
377
  'purchase_url' => $purchaseUrl,
378
- 'category' => 'wp_core'
379
- ),
380
- );
381
  }
382
  }
30
 
31
  $extraMenus = apply_filters('fluentform_addons_extra_menu', $extraMenus);
32
 
 
33
  $current_menu_item = 'fluentform_add_ons';
34
 
35
+ $subPage = wpFluentForm('request')->get('sub_page');
36
+
37
+ if ($subPage) {
38
+ $current_menu_item = sanitize_key($subPage);
39
  }
40
 
41
+ View::render('admin.addons.index', [
42
  'menus' => $extraMenus,
43
  'base_url' => admin_url('admin.php?page=fluent_forms_add_ons'),
44
+ 'current_menu_item' => $current_menu_item,
45
  ]);
46
  }
47
 
60
  'logo' => App::publicUrl('img/integrations/slack.png'),
61
  'enabled' => App\Helpers\Helper::isSlackEnabled() ? 'yes' : 'no',
62
  'config_url' => '',
63
+ 'category' => 'crm',
64
  ];
65
 
66
  if (!defined('FLUENTFORMPRO')) {
68
  }
69
 
70
  wp_localize_script('fluentform-modules', 'fluent_addon_modules', [
71
+ 'addons' => $addOns,
72
+ 'has_pro' => defined('FLUENTFORMPRO'),
73
  'addOnModule_str' => App\Modules\Registerer\TranslationString::getAddOnModuleI18n(),
74
  ]);
75
 
78
 
79
  public function updateAddOnsStatus()
80
  {
81
+ $addons = wp_unslash(wpFluentForm('request')->get('addons'));
82
  update_option('fluentform_global_modules_status', $addons, 'no');
83
 
84
  wp_send_json_success([
85
+ 'message' => 'Status successfully updated',
86
  ], 200);
87
  }
88
 
89
  public function getPremiumAddOns()
90
  {
91
  $purchaseUrl = fluentform_upgrade_url();
92
+ return [
93
+ 'paypal' => [
94
  'title' => __('PayPal', 'fluentform'),
95
  'description' => __('Accept Payments via paypal as a part of your form submission', 'fluentform'),
96
  'logo' => App::publicUrl('img/integrations/paypal.png'),
97
  'enabled' => 'no',
98
  'purchase_url' => $purchaseUrl,
99
+ 'category' => 'payment',
100
+ ],
101
+ 'stripe' => [
102
  'title' => __('Stripe', 'fluentform'),
103
  'description' => __('Accept Payments via stripe as a part of your form submission', 'fluentform'),
104
  'logo' => App::publicUrl('img/integrations/stripe.png'),
105
  'enabled' => 'no',
106
  'purchase_url' => $purchaseUrl,
107
+ 'category' => 'payment',
108
+ ],
109
+ 'UserRegistration' => [
110
  'title' => __('User Registration', 'fluentform'),
111
  'description' => __('Create WordPress user when when a form is submitted', 'fluentform'),
112
  'logo' => App::publicUrl('img/integrations/user_registration.png'),
113
  'enabled' => 'no',
114
  'purchase_url' => $purchaseUrl,
115
+ 'category' => 'wp_core',
116
+ ],
117
+ 'PostFeeds' => [
118
  'title' => __('Advanced Post/CPT Creation', 'fluentform'),
119
  'description' => __('Create post/any cpt on form submission. It will enable many new features including dedicated post fields.', 'fluentform'),
120
  'logo' => App::publicUrl('img/integrations/post-creation.png'),
121
  'enabled' => 'no',
122
  'purchase_url' => $purchaseUrl,
123
+ 'category' => 'wp_core',
124
+ ],
125
+ 'sharePages' => [
126
+ 'title' => __('Landing Pages', 'fluentform'),
127
+ 'description' => __('Create completely custom "distraction-free" form landing pages to boost conversions', 'fluentform'),
128
+ 'logo' => App::publicUrl('img/integrations/landing_pages.png'),
129
+ 'enabled' => 'no',
130
  'purchase_url' => $purchaseUrl,
131
+ 'category' => 'wp_core',
132
+ ],
133
+ 'webhook' => [
134
  'title' => __('WebHooks', 'fluentform'),
135
  'description' => __('Broadcast your Fluent Forms Submission to any web api endpoint with the powerful webhook module.', 'fluentform'),
136
  'logo' => App::publicUrl('img/integrations/webhook.png'),
137
  'enabled' => 'no',
138
  'purchase_url' => $purchaseUrl,
139
+ 'category' => 'crm',
140
+ ],
141
+ 'zapier' => [
142
  'title' => __('Zapier', 'fluentform'),
143
  'description' => __('Connect your Fluent Forms data with Zapier and push data to thousands of online softwares.', 'fluentform'),
144
  'logo' => App::publicUrl('img/integrations/zapier.png'),
145
  'enabled' => 'no',
146
  'purchase_url' => $purchaseUrl,
147
+ 'category' => 'crm',
148
+ ],
149
+ 'trello' => [
150
  'title' => __('Trello', 'fluentform'),
151
  'description' => __('Fluent Forms Trello Module allows you to create Trello card from submiting forms.', 'fluentform'),
152
  'logo' => App::publicUrl('img/integrations/trello.png'),
153
  'enabled' => 'no',
154
  'purchase_url' => $purchaseUrl,
155
+ 'category' => 'crm',
156
+ ],
157
+ 'google_sheet' => [
158
  'title' => __('Google Sheet', 'fluentform'),
159
  'description' => __('Add Fluent Forms Submission to Google sheets when a form is submitted.', 'fluentform'),
160
  'logo' => App::publicUrl('img/integrations/google-sheets.png'),
161
  'enabled' => 'no',
162
  'purchase_url' => $purchaseUrl,
163
+ 'category' => 'crm',
164
+ ],
165
+ 'activecampaign' => [
166
  'title' => __('ActiveCampaign', 'fluentform'),
167
  'description' => __('Fluent Forms ActiveCampaign Module allows you to create ActiveCampaign list signup forms in WordPress, so you can grow your email list.', 'fluentform'),
168
  'logo' => App::publicUrl('img/integrations/activecampaign.png'),
169
  'enabled' => 'no',
170
  'purchase_url' => $purchaseUrl,
171
+ 'category' => 'crm',
172
+ ],
173
+ 'campaign_monitor' => [
174
  'title' => __('Campaign Monitor', 'fluentform'),
175
  'description' => __('Fluent Forms Campaign Monitor module allows you to create Campaign Monitor newsletter signup forms in WordPress, so you can grow your email list.', 'fluentform'),
176
  'logo' => App::publicUrl('img/integrations/campaignmonitor.png'),
177
  'enabled' => 'no',
178
  'purchase_url' => $purchaseUrl,
179
+ 'category' => 'crm',
180
+ ],
181
+ 'constatantcontact' => [
182
  'title' => __('Constant Contact', 'fluentform'),
183
  'description' => __('Connect Constant Contact with Fluent Forms and create subscriptions forms right into WordPress and grow your list.', 'fluentform'),
184
  'logo' => App::publicUrl('img/integrations/constantcontact.png'),
185
  'enabled' => 'no',
186
  'purchase_url' => $purchaseUrl,
187
+ 'category' => 'crm',
188
+ ],
189
+ 'convertkit' => [
190
  'title' => __('ConvertKit', 'fluentform'),
191
  'description' => __('Connect ConvertKit with Fluent Forms and create subscription forms right into WordPress and grow your list.', 'fluentform'),
192
  'logo' => App::publicUrl('img/integrations/convertkit.png'),
193
  'enabled' => 'no',
194
  'purchase_url' => $purchaseUrl,
195
+ 'category' => 'crm',
196
+ ],
197
+ 'getresponse' => [
198
  'title' => __('GetResponse', 'fluentform'),
199
  'description' => __('Fluent Forms GetResponse module allows you to create GetResponse newsletter signup forms in WordPress, so you can grow your email list.', 'fluentform'),
200
  'logo' => App::publicUrl('img/integrations/getresponse.png'),
201
  'enabled' => 'no',
202
  'purchase_url' => $purchaseUrl,
203
+ 'category' => 'crm',
204
+ ],
205
+ 'hubspot' => [
206
  'title' => __('Hubspot', 'fluentform'),
207
  'description' => __('Connect HubSpot with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
208
  'logo' => App::publicUrl('img/integrations/hubspot.png'),
209
  'enabled' => 'no',
210
  'purchase_url' => $purchaseUrl,
211
+ 'category' => 'crm',
212
+ ],
213
+ 'icontact' => [
214
  'title' => __('iContact', 'fluentform'),
215
  'description' => __('Connect iContact with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
216
  'logo' => App::publicUrl('img/integrations/icontact.png'),
217
  'enabled' => 'no',
218
  'purchase_url' => $purchaseUrl,
219
+ 'category' => 'crm',
220
+ ],
221
+ 'platformly' => [
222
  'title' => __('Platformly', 'fluentform'),
223
  'description' => __('Connect Platform.ly with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
224
  'logo' => App::publicUrl('img/integrations/platformly.png'),
225
  'enabled' => 'no',
226
  'purchase_url' => $purchaseUrl,
227
+ 'category' => 'crm',
228
+ ],
229
+ 'moosend' => [
230
  'title' => __('MooSend', 'fluentform'),
231
  'description' => 'Connect MooSend with Fluent Forms and subscribe a contact when a form is submitted.',
232
  'logo' => App::publicUrl('img/integrations/moosend_logo.png'),
233
  'enabled' => 'no',
234
  'purchase_url' => $purchaseUrl,
235
+ 'category' => 'crm',
236
+ ],
237
+ 'sendfox' => [
238
  'title' => __('SendFox', 'fluentform'),
239
  'description' => __('Connect SendFox with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
240
  'logo' => App::publicUrl('img/integrations/sendfox.png'),
241
  'enabled' => 'no',
242
  'purchase_url' => $purchaseUrl,
243
+ 'category' => 'crm',
244
+ ],
245
+ 'mailerlite' => [
246
  'title' => __('MailerLite', 'fluentform'),
247
  'description' => __('Connect your Fluent Forms with MailerLite and add subscribers easily.', 'fluentform'),
248
  'logo' => App::publicUrl('img/integrations/mailerlite.png'),
249
  'enabled' => 'no',
250
  'purchase_url' => $purchaseUrl,
251
+ 'category' => 'crm',
252
+ ],
253
+ 'sms_notifications' => [
254
  'title' => __('SMS Notification', 'fluentform'),
255
  'description' => __('Send SMS in real time when a form is submitted with Twilio.', 'fluentform'),
256
  'logo' => App::publicUrl('img/integrations/twilio.png'),
257
  'enabled' => 'no',
258
  'purchase_url' => $purchaseUrl,
259
+ 'category' => 'crm',
260
+ ],
261
+ 'get_gist' => [
262
  'title' => __('Gist', 'fluentform'),
263
  'description' => __('GetGist is Easy to use all-in-one software for live chat, email marketing automation, forms, knowledge base, and more for a complete 360° view of your contacts.', 'fluentform'),
264
  'logo' => App::publicUrl('img/integrations/getgist.png'),
265
  'enabled' => 'no',
266
  'purchase_url' => $purchaseUrl,
267
+ 'category' => 'crm',
268
+ ],
269
+ 'sendinblue' => [
270
  'title' => __('SendInBlue', 'fluentform'),
271
  'description' => __('Fluent Forms Sendinblue Module allows you to create contacts on your list, so you can grow your email list.', 'fluentform'),
272
  'logo' => App::publicUrl('img/integrations/sendinblue.png'),
273
  'enabled' => 'no',
274
  'purchase_url' => $purchaseUrl,
275
+ 'category' => 'crm',
276
+ ],
277
+ 'drip' => [
278
  'title' => __('Drip', 'fluentform'),
279
  'description' => __('Fluent Forms Drip Module allows you to create contacts on your Drip list, so you can grow your email list.', 'fluentform'),
280
  'logo' => App::publicUrl('img/integrations/drip.png'),
281
  'enabled' => 'no',
282
  'purchase_url' => $purchaseUrl,
283
+ 'category' => 'crm',
284
+ ],
285
+ 'discord' => [
286
  'title' => __('Discord', 'fluentform'),
287
  'description' => __('Send notification with form data to your Discord channel when a form is submitted', 'fluentform'),
288
  'logo' => App::publicUrl('img/integrations/discord.png'),
289
  'enabled' => 'no',
290
  'purchase_url' => $purchaseUrl,
291
+ 'category' => 'crm',
292
+ ],
293
+ 'telegram' => [
294
  'title' => __('Telegram', 'fluentform'),
295
  'description' => __('Send notification to Telegram channel or group when a form is submitted', 'fluentform'),
296
  'logo' => App::publicUrl('img/integrations/telegram.png'),
297
  'enabled' => 'no',
298
  'purchase_url' => $purchaseUrl,
299
+ 'category' => 'crm',
300
+ ],
301
+ 'affiliateWp' => [
302
  'title' => __('AffiliateWP', 'fluentform'),
303
  'description' => __('Generate AffiliateWP referrals automatically when a customer is referred to your site via an affiliate link', 'fluentform'),
304
  'logo' => App::publicUrl('img/integrations/affiliatewp.png'),
305
  'enabled' => 'no',
306
  'purchase_url' => $purchaseUrl,
307
+ 'category' => 'crm',
308
+ ],
309
+ 'clicksend_sms_notification' => [
310
  'title' => __('ClickSend', 'fluentform'),
311
  'description' => __('Send SMS in real time when a form is submitted with ClickSend', 'fluentform'),
312
  'logo' => App::publicUrl('img/integrations/clicksend.png'),
313
  'enabled' => 'no',
314
  'purchase_url' => $purchaseUrl,
315
+ 'category' => 'crm',
316
+ ],
317
+ 'zohocrm' => [
318
  'title' => __('Zoho CRM', 'fluentform'),
319
  'description' => __('Zoho CRM is an online Sales CRM software that manages your sales, marketing and support in one CRM platform.', 'fluentform'),
320
  'logo' => App::publicUrl('img/integrations/zohocrm.png'),
321
  'enabled' => 'no',
322
  'purchase_url' => $purchaseUrl,
323
+ 'category' => 'crm',
324
+ ],
325
+ 'cleverreach' => [
326
  'title' => __('CleverReach', 'fluentform'),
327
  'description' => __('CleverReach is web-based email marketing software for managing email campaigns and contacts. Use Fluent Forms to grow your CleverReach subscriber list', 'fluentform'),
328
  'logo' => App::publicUrl('img/integrations/clever_reach.png'),
329
  'enabled' => 'no',
330
  'purchase_url' => $purchaseUrl,
331
+ 'category' => 'crm',
332
+ ],
333
+ 'salesflare' => [
334
  'title' => __('Salesflare', 'fluentform'),
335
  'description' => __('Create Salesflare contact from WordPress, so you can grow your contact list', 'fluentform'),
336
  'logo' => App::publicUrl('img/integrations/salesflare.png'),
337
  'enabled' => 'no',
338
  'purchase_url' => $purchaseUrl,
339
+ 'category' => 'crm',
340
+ ],
341
+ 'automizy' => [
342
  'title' => __('Automizy', 'fluentform'),
343
  'description' => __('Connect Automizy with Fluent Forms and subscribe a contact when a form is submitted.', 'fluentform'),
344
  'logo' => App::publicUrl('img/integrations/automizy.png'),
345
  'enabled' => 'no',
346
  'purchase_url' => $purchaseUrl,
347
+ 'category' => 'crm',
348
+ ],
349
+ 'salesforce' => [
350
  'title' => __('Salesforce', 'fluentform'),
351
  'description' => __('Salesforce helps your marketing, sales, commerce, service and IT teams work as one from anywhere — so you can keep your customers happy everywhere.', 'fluentform'),
352
  'logo' => App::publicUrl('img/integrations/salesforce.png'),
353
  'enabled' => 'no',
354
  'purchase_url' => $purchaseUrl,
355
+ 'category' => 'crm',
356
+ ],
357
+ 'airtable' => [
358
  'title' => __('Airtable', 'fluentform'),
359
  'description' => __('Airtable is a low-code platform for building collaborative apps. Customize your workflow, collaborate, and achieve ambitious outcomes.', 'fluentform'),
360
  'logo' => App::publicUrl('img/integrations/airtable.png'),
361
  'enabled' => 'no',
362
  'purchase_url' => $purchaseUrl,
363
+ 'category' => 'crm',
364
+ ],
365
+ 'mailjet' => [
366
  'title' => __('Mailjet', 'fluentform'),
367
  'description' => __('Mailjet is an easy-to-use all-in-one e-mail platform.', 'fluentform'),
368
  'logo' => App::publicUrl('img/integrations/mailjet.png'),
369
  'enabled' => 'no',
370
  'purchase_url' => $purchaseUrl,
371
+ 'category' => 'crm',
372
+ ],
373
+ 'quiz_addon' => [
374
  'title' => __('Quiz Module', 'fluentform'),
375
  'description' => __('With this module, you can create quizzes and show scores with grades, points, fractions, or percentages', 'fluentform'),
376
  'logo' => App::publicUrl('img/integrations/quiz-icon.svg'),
377
  'enabled' => 'no',
378
  'purchase_url' => $purchaseUrl,
379
+ 'category' => 'wp_core',
380
+ ],
381
+ ];
382
  }
383
  }
app/Modules/CLI/Commands.php CHANGED
@@ -2,7 +2,6 @@
2
 
3
  namespace FluentForm\App\Modules\CLI;
4
 
5
-
6
  class Commands
7
  {
8
  public function stats($args, $assoc_args)
@@ -21,7 +20,7 @@ class Commands
21
  'count' => wpFluent()->table('fluentform_submissions')
22
  ->where('status', 'unread')
23
  ->count(),
24
- ]
25
  ];
26
 
27
  $format = \WP_CLI\Utils\get_flag_value($assoc_args, 'format', 'table');
@@ -56,7 +55,6 @@ class Commands
56
 
57
  $response = fluentFormProActivateLicense($licenseKey);
58
 
59
-
60
  if (is_wp_error($response)) {
61
  \WP_CLI::error($response->get_error_message());
62
  return;
@@ -71,7 +69,6 @@ class Commands
71
 
72
  public function license_status()
73
  {
74
-
75
  if (!defined('FLUENTFORMPRO')) {
76
  \WP_CLI::line('Fluent Forms pro is not available');
77
  return;
@@ -98,7 +95,6 @@ class Commands
98
  return;
99
  }
100
 
101
-
102
  \WP_CLI::line('Your License Status: ' . $response->license);
103
  \WP_CLI::line('Expires: ' . $response->expires);
104
  return;
2
 
3
  namespace FluentForm\App\Modules\CLI;
4
 
 
5
  class Commands
6
  {
7
  public function stats($args, $assoc_args)
20
  'count' => wpFluent()->table('fluentform_submissions')
21
  ->where('status', 'unread')
22
  ->count(),
23
+ ],
24
  ];
25
 
26
  $format = \WP_CLI\Utils\get_flag_value($assoc_args, 'format', 'table');
55
 
56
  $response = fluentFormProActivateLicense($licenseKey);
57
 
 
58
  if (is_wp_error($response)) {
59
  \WP_CLI::error($response->get_error_message());
60
  return;
69
 
70
  public function license_status()
71
  {
 
72
  if (!defined('FLUENTFORMPRO')) {
73
  \WP_CLI::line('Fluent Forms pro is not available');
74
  return;
95
  return;
96
  }
97
 
 
98
  \WP_CLI::line('Your License Status: ' . $response->license);
99
  \WP_CLI::line('Expires: ' . $response->expires);
100
  return;
app/Modules/Component/BaseComponent.php CHANGED
@@ -8,14 +8,14 @@ abstract class BaseComponent
8
 
9
  /**
10
  * The unique name of the component.
11
- *
12
  * @return string
13
  */
14
  abstract public function name();
15
 
16
  /**
17
  * The label of the component.
18
- *
19
  * @return string
20
  */
21
  abstract public function label();
@@ -23,36 +23,36 @@ abstract class BaseComponent
23
  /**
24
  * The element type of the component from already
25
  * available elements (input_text, textarea e.t.c).
26
- *
27
  * @return string
28
  */
29
  abstract public function element();
30
-
31
  /**
32
  * The template type of the component to display preview in editor dropzone from
33
  * already available templates (inputText, selectCountry, addressFields e.t.c).
34
- *
35
  * @return string
36
  */
37
  abstract public function template();
38
 
39
  /**
40
  * Render the element on frontend form.
41
- *
42
- * @param array $component Element Config
43
- * @param object $form The Form Object
44
- *
45
  * @return void
46
  */
47
  abstract public function render($component, $form);
48
 
49
  /**
50
  * Form submission callback.
51
- *
52
- * @param array $formData Submitted form data
53
- * @param int $formId Submitted form id
54
- * @param array $config Form elements config
55
- *
56
  * @return array $formData
57
  */
58
  abstract public function onSubmit($formData, $formId, $config);
@@ -61,7 +61,7 @@ abstract class BaseComponent
61
  * Component position in editor. If null is returned then
62
  * the element will be pushed at last but the derived class
63
  * will override this method if any customization is needed.
64
- *
65
  * @return int|null
66
  */
67
  public function index()
@@ -73,7 +73,7 @@ abstract class BaseComponent
73
  * The group, where the component should be added. By default,
74
  * the element will be added in "general" group and the derived
75
  * class will override this method if any customization is needed.
76
- *
77
  * @return string general|advanced|container
78
  */
79
  public function group()
@@ -84,7 +84,7 @@ abstract class BaseComponent
84
  /**
85
  * The element icon class for the component to display in the button in
86
  * the editor element list which is mapped to editor_options.icon_class.
87
- *
88
  * @return string
89
  */
90
  public function elementIconClass()
@@ -96,7 +96,8 @@ abstract class BaseComponent
96
  * Element editor/form attributes and the derived class will
97
  * override this method if any customization is needed.
98
  *
99
- * @param array $dafault
 
100
  * @return array $default
101
  */
102
  public function attributes($default)
@@ -107,43 +108,46 @@ abstract class BaseComponent
107
  /**
108
  * Element editor settings and the derived class will
109
  * override this method if any customization is needed.
110
- *
111
- * @param array $dafault
 
112
  * @return array $default
113
  */
114
  public function settings($default)
115
  {
116
  return $default;
117
  }
118
-
119
  /**
120
  * Element editor options and the derived class will
121
  * override this method if any customization is needed.
122
- *
123
- * @param array $dafault
 
124
  * @return array $default
125
  */
126
  public function options($default)
127
  {
128
  return $default;
129
  }
130
-
131
  /**
132
  * Element's form submission validation rules and the derived
133
  * class will override this method if needed any customization.
134
- *
135
  * @return array
136
  */
137
  public function validationRules()
138
  {
139
  return [];
140
  }
141
-
142
  /**
143
  * Element editor placement settings and the derived class
144
  * will override this method if any customization is needed.
145
- *
146
  * @param array $placemenSettings
 
147
  * @return array $placemenSettings
148
  */
149
  public function placementSettings($placemenSettings)
@@ -154,8 +158,9 @@ abstract class BaseComponent
154
  /**
155
  * The customization for the component and derived class can
156
  * override this method if any customization is needed.
157
- *
158
- * @param array $customizationSettings
 
159
  * @return array $customizationSettings
160
  */
161
  public function customizationSettings($customizationSettings)
@@ -167,21 +172,22 @@ abstract class BaseComponent
167
  * Add the component type in fluentform field types to
168
  * be available in FormFieldParser and derived class can
169
  * override this method if any customization is needed.
170
- *
171
- * @param array $types
 
172
  * @return array $types
173
  */
174
  public function addType($types)
175
  {
176
  $types[] = $this->name();
177
-
178
  return $types;
179
  }
180
 
181
  /**
182
  * The keywords to search the element in the editor and
183
  * the derived class will override this method if needed.
184
- *
185
  * @return array
186
  */
187
  public function searchBy()
@@ -191,15 +197,16 @@ abstract class BaseComponent
191
 
192
  /**
193
  * Transform the element's submitted value saved in database
194
- * to show it properly/formatted in entry page if needed and
195
  * this method implementation optional so a default method is
196
  * implemented here and original value is returned. In any case
197
  * if any customization of the value is needed then the derived
198
  * class will override it and will format and return the the value.
199
- *
200
- * @param mixed $value [description]
201
- * @param string $field
202
- * @param int $formId
 
203
  * @return mixed $value
204
  */
205
  public function formatEntryValue($value, $field, $formId)
8
 
9
  /**
10
  * The unique name of the component.
11
+ *
12
  * @return string
13
  */
14
  abstract public function name();
15
 
16
  /**
17
  * The label of the component.
18
+ *
19
  * @return string
20
  */
21
  abstract public function label();
23
  /**
24
  * The element type of the component from already
25
  * available elements (input_text, textarea e.t.c).
26
+ *
27
  * @return string
28
  */
29
  abstract public function element();
30
+
31
  /**
32
  * The template type of the component to display preview in editor dropzone from
33
  * already available templates (inputText, selectCountry, addressFields e.t.c).
34
+ *
35
  * @return string
36
  */
37
  abstract public function template();
38
 
39
  /**
40
  * Render the element on frontend form.
41
+ *
42
+ * @param array $component Element Config
43
+ * @param object $form The Form Object
44
+ *
45
  * @return void
46
  */
47
  abstract public function render($component, $form);
48
 
49
  /**
50
  * Form submission callback.
51
+ *
52
+ * @param array $formData Submitted form data
53
+ * @param int $formId Submitted form id
54
+ * @param array $config Form elements config
55
+ *
56
  * @return array $formData
57
  */
58
  abstract public function onSubmit($formData, $formId, $config);
61
  * Component position in editor. If null is returned then
62
  * the element will be pushed at last but the derived class
63
  * will override this method if any customization is needed.
64
+ *
65
  * @return int|null
66
  */
67
  public function index()
73
  * The group, where the component should be added. By default,
74
  * the element will be added in "general" group and the derived
75
  * class will override this method if any customization is needed.
76
+ *
77
  * @return string general|advanced|container
78
  */
79
  public function group()
84
  /**
85
  * The element icon class for the component to display in the button in
86
  * the editor element list which is mapped to editor_options.icon_class.
87
+ *
88
  * @return string
89
  */
90
  public function elementIconClass()
96
  * Element editor/form attributes and the derived class will
97
  * override this method if any customization is needed.
98
  *
99
+ * @param array $dafault
100
+ *
101
  * @return array $default
102
  */
103
  public function attributes($default)
108
  /**
109
  * Element editor settings and the derived class will
110
  * override this method if any customization is needed.
111
+ *
112
+ * @param array $dafault
113
+ *
114
  * @return array $default
115
  */
116
  public function settings($default)
117
  {
118
  return $default;
119
  }
120
+
121
  /**
122
  * Element editor options and the derived class will
123
  * override this method if any customization is needed.
124
+ *
125
+ * @param array $dafault
126
+ *
127
  * @return array $default
128
  */
129
  public function options($default)
130
  {
131
  return $default;
132
  }
133
+
134
  /**
135
  * Element's form submission validation rules and the derived
136
  * class will override this method if needed any customization.
137
+ *
138
  * @return array
139
  */
140
  public function validationRules()
141
  {
142
  return [];
143
  }
144
+
145
  /**
146
  * Element editor placement settings and the derived class
147
  * will override this method if any customization is needed.
148
+ *
149
  * @param array $placemenSettings
150
+ *
151
  * @return array $placemenSettings
152
  */
153
  public function placementSettings($placemenSettings)
158
  /**
159
  * The customization for the component and derived class can
160
  * override this method if any customization is needed.
161
+ *
162
+ * @param array $customizationSettings
163
+ *
164
  * @return array $customizationSettings
165
  */
166
  public function customizationSettings($customizationSettings)
172
  * Add the component type in fluentform field types to
173
  * be available in FormFieldParser and derived class can
174
  * override this method if any customization is needed.
175
+ *
176
+ * @param array $types
177
+ *
178
  * @return array $types
179
  */
180
  public function addType($types)
181
  {
182
  $types[] = $this->name();
183
+
184
  return $types;
185
  }
186
 
187
  /**
188
  * The keywords to search the element in the editor and
189
  * the derived class will override this method if needed.
190
+ *
191
  * @return array
192
  */
193
  public function searchBy()
197
 
198
  /**
199
  * Transform the element's submitted value saved in database
200
+ * to show it properly/formatted in entry page if needed and
201
  * this method implementation optional so a default method is
202
  * implemented here and original value is returned. In any case
203
  * if any customization of the value is needed then the derived
204
  * class will override it and will format and return the the value.
205
+ *
206
+ * @param mixed $value [description]
207
+ * @param string $field
208
+ * @param int $formId
209
+ *
210
  * @return mixed $value
211
  */
212
  public function formatEntryValue($value, $field, $formId)
app/Modules/Component/Component.php CHANGED
@@ -52,21 +52,21 @@ class Component
52
  wp_register_style(
53
  'fluent-form-styles',
54
  $fluentFormPublicCss,
55
- array(),
56
  FLUENTFORM_VERSION
57
  );
58
 
59
  wp_register_style(
60
  'fluentform-public-default',
61
  $fluentFormPublicDefaultCss,
62
- array(),
63
  FLUENTFORM_VERSION
64
  );
65
 
66
  wp_register_script(
67
  'fluent-form-submission',
68
  $app->publicUrl('js/form-submission.js'),
69
- array('jquery'),
70
  FLUENTFORM_VERSION,
71
  true
72
  );
@@ -74,7 +74,7 @@ class Component
74
  wp_register_script(
75
  'fluentform-advanced',
76
  $app->publicUrl('js/fluentform-advanced.js'),
77
- array('jquery'),
78
  FLUENTFORM_VERSION,
79
  true
80
  );
@@ -91,7 +91,7 @@ class Component
91
  wp_register_script(
92
  'flatpickr',
93
  $app->publicUrl('libs/flatpickr/flatpickr.js'),
94
- array('jquery'),
95
  false,
96
  true
97
  );
@@ -99,7 +99,7 @@ class Component
99
  wp_register_script(
100
  'choices',
101
  $app->publicUrl('libs/choices/choices.min.js'),
102
- array(),
103
  '9.0.1',
104
  true
105
  );
@@ -110,7 +110,7 @@ class Component
110
  [],
111
  FLUENTFORM_VERSION
112
  );
113
-
114
  wp_register_script(
115
  'form-save-progress',
116
  $app->publicUrl('js/form-save-progress.js'),
@@ -118,7 +118,7 @@ class Component
118
  FLUENTFORM_VERSION,
119
  true
120
  );
121
-
122
  do_action('fluentform_scripts_registered');
123
 
124
  $this->maybeLoadFluentFormStyles();
@@ -128,7 +128,7 @@ class Component
128
  {
129
  global $post;
130
 
131
- $postId = isset( $post->ID ) ? $post->ID : false;
132
  if (!$postId) {
133
  return;
134
  }
@@ -146,13 +146,15 @@ class Component
146
  /**
147
  * Get all the available components
148
  *
149
- * @return void
 
150
  * @throws \Exception
151
  * @throws \FluentForm\Framework\Exception\UnResolveableEntityException
152
  */
153
  public function index()
154
  {
155
- $formId = intval($_REQUEST['formId']);
 
156
  $components = $this->app->make('components');
157
 
158
  $this->app->doAction('fluent_editor_init', $components);
@@ -162,14 +164,13 @@ class Component
162
 
163
  $countries = $this->app->load($this->app->appPath('Services/FormBuilder/CountryNames.php'));
164
 
165
- wp_send_json_success(array(
166
  'countries' => $countries,
167
  'components' => $editorComponents,
168
- 'disabled_components' => $this->getDisabledComponents()
169
- ));
170
  }
171
 
172
-
173
  /**
174
  * Get disabled components
175
  *
@@ -181,202 +182,202 @@ class Component
181
  $isHCaptchaDisabled = !get_option('_fluentform_hCaptcha_keys_status', false);
182
  $isTurnstileDisabled = !get_option('_fluentform_turnstile_keys_status', false);
183
 
184
- $disabled = array(
185
- 'recaptcha' => array(
186
- 'disabled' => $isReCaptchaDisabled,
187
- 'title' => __('reCaptcha', 'fluentform'),
188
- 'description' => __('Please enter a valid API key on FluentForms->Settings->reCaptcha', 'fluentform'),
189
- 'hidePro' => true
190
- ),
191
- 'hcaptcha' => array(
192
- 'disabled' => $isHCaptchaDisabled,
193
- 'title' => __('hCaptcha', 'fluentform'),
194
- 'description' => __('Please enter a valid API key on FluentForms->Settings->hCaptcha', 'fluentform'),
195
- 'hidePro' => true
196
- ),
197
- 'turnstile' => array(
198
- 'disabled' => $isTurnstileDisabled,
199
- 'title' => __('Turnstile', 'fluentform'),
200
- 'description' => __('Please enter a valid API key on FluentForms->Settings->Turnstile', 'fluentform'),
201
- 'hidePro' => true
202
- ),
203
- 'input_image' => array(
204
- 'disabled' => true,
205
- 'title' => __('Image Upload', 'fluentform'),
206
- 'description' => __('Image Upload is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
207
- 'image' => '',
208
- 'video' => 'https://www.youtube.com/embed/Yb3FSoZl9Zg'
209
- ),
210
- 'input_file' => array(
211
- 'disabled' => true,
212
- 'title' => __('File Upload', 'fluentform'),
213
- 'description' => __('File Upload is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
214
- 'image' => '',
215
- 'video' => 'https://www.youtube.com/embed/bXbTbNPM_4k'
216
- ),
217
- 'shortcode' => array(
218
- 'disabled' => true,
219
- 'title' => __('Shortcode', 'fluentform'),
220
- 'description' => __('Shortcode is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
221
- 'image' => '',
222
- 'video' => 'https://www.youtube.com/embed/op3mEQxX1MM'
223
- ),
224
- 'action_hook' => array(
225
- 'disabled' => true,
226
- 'title' => __('Action Hook', 'fluentform'),
227
- 'description' => __('Action Hook is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
228
- 'image' => $this->app->publicUrl('img/pro-fields/Action Hook.png'),
229
- 'video' => ''
230
- ),
231
- 'form_step' => array(
232
- 'disabled' => true,
233
- 'title' => __('Form Step', 'fluentform'),
234
- 'description' => __('Form Step is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
235
- 'image' => '',
236
- 'video' => 'https://www.youtube.com/embed/VQTWnM6BbRU'
237
- )
238
- );
239
 
240
  if (!defined('FLUENTFORMPRO')) {
241
- $disabled['ratings'] = array(
242
- 'disabled' => true,
243
- 'title' => __('Ratings', 'fluentform'),
244
- 'description' => __('Ratings is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
245
- 'image' => '',
246
- 'video' => 'https://www.youtube.com/embed/YGdkNspMaEs'
247
- );
248
- $disabled['tabular_grid'] = array(
249
- 'disabled' => true,
250
- 'title' => __('Checkable Grid', 'fluentform'),
251
- 'description' => __('Checkable Grid is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
252
- 'image' => '',
253
- 'video' => 'https://www.youtube.com/embed/ayI3TzXXANA'
254
- );
255
- $disabled['chained_select'] = array(
256
- 'disabled' => true,
257
- 'title' => __('Chained Select Field', 'fluentform'),
258
- 'description' => __('Chained Select Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
259
- 'image' => $this->app->publicUrl('img/pro-fields/Chained Select Field.png'),
260
- 'video' => ''
261
- );
262
- $disabled['phone'] = array(
263
- 'disabled' => true,
264
- 'title' => 'Phone Field',
265
- 'description' => __('Phone Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
266
- 'image' => $this->app->publicUrl('img/pro-fields/Phone Field.png'),
267
- 'video' => ''
268
- );
269
- $disabled['rich_text_input'] = array(
270
- 'disabled' => true,
271
- 'title' => __('Rich Text Input', 'fluentform'),
272
- 'description' => __('Rich Text Input is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
273
- 'image' => $this->app->publicUrl('img/pro-fields/Rich Text Input.png'),
274
- 'video' => ''
275
- );
276
- $disabled['save_progress_button'] = array(
277
- 'disabled' => true,
278
- 'title' => __('Save & Resume', 'fluentform'),
279
- 'description' => __('Save & Resume is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
280
- 'image' => $this->app->publicUrl('img/pro-fields/Save Progress Button.png'),
281
- 'video' => ''
282
- );
283
- $disabled['cpt_selection'] = array(
284
- 'disabled' => true,
285
- 'title' => __('Post/CPT Selection', 'fluentform'),
286
- 'description' => __('Post/CPT Selection is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
287
- 'image' => $this->app->publicUrl('img/pro-fields/Post_CPT Selection.png'),
288
- 'video' => ''
289
- );
290
- $disabled['quiz_score'] = array(
291
- 'disabled' => true,
292
- 'title' => __('Quiz Score', 'fluentform'),
293
- 'description' => __('Quiz Score is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
294
- 'image' => '',
295
- 'video' => 'https://www.youtube.com/embed/bPjDXR0y_Oo'
296
- );
297
- $disabled['net_promoter_score'] = array(
298
- 'disabled' => true,
299
- 'title' => __('Net Promoter Score', 'fluentform'),
300
- 'description' => __('Net Promoter Score is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
301
- 'image' => $this->app->publicUrl('img/pro-fields/Net Promoter Score.png'),
302
- 'video' => ''
303
- );
304
- $disabled['repeater_field'] = array(
305
- 'disabled' => true,
306
- 'title' => __('Repeat Field', 'fluentform'),
307
- 'description' => __('Repeat Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
308
- 'image' => '',
309
- 'video' => 'https://www.youtube.com/embed/BXo9Sk-OLnQ'
310
- );
311
- $disabled['rangeslider'] = array(
312
- 'disabled' => true,
313
- 'title' => __('Range Slider', 'fluentform'),
314
- 'description' => __('Range Slider is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
315
- 'image' => '',
316
- 'video' => 'https://www.youtube.com/embed/RaY2VcPWk6I'
317
- );
318
- $disabled['color-picker'] = array(
319
- 'disabled' => true,
320
- 'title' => __('Color Picker', 'fluentform'),
321
- 'description' => __('Color Picker is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
322
- 'image' => $this->app->publicUrl('img/pro-fields/Color Picker.png'),
323
- 'video' => ''
324
- );
325
- $disabled['multi_payment_component'] = array(
326
- 'disabled' => true,
327
- 'is_payment' => true,
328
- 'title' => __('Payment Field', 'fluentform'),
329
- 'description' => __('Payment Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
330
- 'image' => $this->app->publicUrl('img/pro-fields/Payment Field.png'),
331
- 'video' => ''
332
- );
333
- $disabled['custom_payment_component'] = array(
334
- 'disabled' => true,
335
- 'is_payment' => true,
336
- 'title' => 'Custom Payment Amount',
337
- 'description' => __('Custom Payment Amount is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
338
- 'image' => $this->app->publicUrl('img/pro-fields/Custom Payment Amount.png'),
339
- 'video' => ''
340
- );
341
- $disabled['subscription_payment_component'] = array(
342
- 'disabled' => true,
343
- 'is_payment' => true,
344
- 'title' => __('Subscription Field', 'fluentform'),
345
- 'description' => __('Subscription Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
346
- 'image' => $this->app->publicUrl('img/pro-fields/Subscription Field.png'),
347
- 'video' => ''
348
- );
349
- $disabled['item_quantity_component'] = array(
350
- 'disabled' => true,
351
- 'is_payment' => true,
352
- 'title' => __('Item Quantity', 'fluentform'),
353
- 'description' => __('Item Quantity is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
354
- 'image' => $this->app->publicUrl('img/pro-fields/Item Quantity.png'),
355
- 'video' => ''
356
- );
357
- $disabled['payment_method'] = array(
358
- 'disabled' => true,
359
- 'is_payment' => true,
360
- 'title' => __('Payment Method', 'fluentform'),
361
- 'description' => __('Payment Method is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
362
- 'image' => $this->app->publicUrl('img/pro-fields/Payment Method.png'),
363
- 'video' => ''
364
- );
365
- $disabled['payment_summary_component'] = array(
366
- 'disabled' => true,
367
- 'is_payment' => true,
368
- 'title' => __('Payment Summary', 'fluentform'),
369
- 'description' => __('Payment Summary is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
370
- 'image' => $this->app->publicUrl('img/pro-fields/Payment Summary.png'),
371
- 'video' => ''
372
- );
373
- $disabled['payment_coupon'] = array(
374
- 'disabled' => true,
375
- 'title' => __('Coupon', 'fluentform'),
376
- 'description' => __('Coupon is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
377
- 'image' => $this->app->publicUrl('img/pro-fields/Coupon.png'),
378
- 'video' => ''
379
- );
380
  }
381
  return $this->app->applyFilters('fluentform_disabled_components', $disabled);
382
  }
@@ -385,6 +386,7 @@ class Component
385
  * Get available shortcodes for editor
386
  *
387
  * @return void
 
388
  * @throws \Exception
389
  */
390
  public function getEditorShortcodes()
@@ -397,6 +399,7 @@ class Component
397
  * Get all available shortcodes for editor
398
  *
399
  * @return void
 
400
  * @throws \Exception
401
  */
402
  public function getAllEditorShortcodes()
@@ -409,22 +412,21 @@ class Component
409
  /**
410
  * Register the form renderer shortcode
411
  *
412
- * @return void
413
  */
414
  public function addFluentFormShortCode()
415
  {
416
-
417
- add_action('wp_enqueue_scripts', array($this, 'registerScripts'), 9);
418
 
419
  $this->app->addShortCode('fluentform', function ($atts, $content) {
420
- $shortcodeDefaults = apply_filters('fluentform_shortcode_defaults', array(
421
  'id' => null,
422
  'title' => null,
423
  'css_classes' => '',
424
  'permission' => '',
425
  'type' => 'classic',
426
- 'permission_message' => __('Sorry, You do not have permission to view this form', 'fluentform')
427
- ), $atts);
428
 
429
  $atts = shortcode_atts($shortcodeDefaults, $atts);
430
 
@@ -432,7 +434,7 @@ class Component
432
  });
433
 
434
  $this->app->addShortCode('fluentform_info', function ($atts) {
435
- $shortcodeDefaults = apply_filters('fluentform_info_shortcode_defaults', array(
436
  'id' => null, // This is the form id
437
  'info' => 'submission_count', // submission_count | created_at | updated_at | payment_total
438
  'status' => 'all', // get submission cound of a particular entry status favourites | unread | read
@@ -441,8 +443,8 @@ class Component
441
  'hide_on_zero' => 'no',
442
  'payment_status' => 'all', // it can be all / specific payment status
443
  'currency_formatted' => 'yes',
444
- 'date_format' => ''
445
- ), $atts);
446
 
447
  $atts = shortcode_atts($shortcodeDefaults, $atts);
448
  $formId = $atts['id'];
@@ -452,52 +454,51 @@ class Component
452
  return '';
453
  }
454
 
455
- if ($atts['info'] == 'submission_count') {
456
  $countQuery = wpFluent()->table('fluentform_submissions')
457
  ->where('form_id', $formId);
458
 
459
- if ($atts['status'] != 'trashed' && $atts['with_trashed'] == 'no') {
460
  $countQuery = $countQuery->where('status', '!=', 'trashed');
461
  }
462
 
463
- if ($atts['status'] == 'all') {
464
  // ...
465
- } else if ($atts['status'] == 'favourites') {
466
  $countQuery = $countQuery->where('is_favourite', '=', 1);
467
  } else {
468
  $countQuery = $countQuery->where('status', '=', sanitize_key($atts['status']));
469
  }
470
- if ($atts['payment_status'] && defined('FLUENTFORMPRO') && $atts['payment_status'] != 'all') {
471
  $countQuery = $countQuery->where('payment_status', '=', sanitize_key($atts['payment_status']));
472
  }
473
-
474
  $total = $countQuery->count();
475
 
476
  if ($atts['substract_from']) {
477
  $total = intval($atts['substract_from']) - $total;
478
  }
479
 
480
- if ($atts['hide_on_zero'] == 'yes' && !$total || $total < 0) {
481
  return '';
482
  }
483
 
484
  return $total;
485
- } else if ($atts['info'] == 'created_at') {
486
  if ($atts['date_format']) {
487
  $dateFormat = $atts['date_format'];
488
  } else {
489
  $dateFormat = get_option('date_format') . ' ' . get_option('time_format');
490
  }
491
  return date($dateFormat, strtotime($form->created_at));
492
- } else if ($atts['info'] == 'updated_at') {
493
  if ($atts['date_format']) {
494
  $dateFormat = $atts['date_format'];
495
  } else {
496
  $dateFormat = get_option('date_format') . ' ' . get_option('time_format');
497
  }
498
  return date($dateFormat, strtotime($form->updated_at));
499
- } else if ($atts['info'] == 'payment_total') {
500
-
501
  if (!defined('FLUENTFORMPRO')) {
502
  return '';
503
  }
@@ -508,21 +509,21 @@ class Component
508
  ->select(wpFluent()->raw('SUM(payment_total) as payment_total'))
509
  ->where('form_id', $formId);
510
 
511
- if ($atts['status'] != 'trashed' && $atts['with_trashed'] == 'no') {
512
  $countQuery = $countQuery->where('status', '!=', 'trashed');
513
  }
514
 
515
- if ($atts['status'] == 'all') {
516
  // ...
517
- } else if ($atts['status'] == 'favourites') {
518
  $countQuery = $countQuery->where('is_favourite', '=', 1);
519
  } else {
520
  $countQuery = $countQuery->where('status', '=', sanitize_key($atts['status']));
521
  }
522
 
523
- if ($atts['payment_status'] == 'all') {
524
  // ...
525
- } else if ($atts['payment_status']) {
526
  $countQuery = $countQuery->where('payment_status', '=', sanitize_key($atts['payment_status']));
527
  }
528
 
@@ -537,11 +538,11 @@ class Component
537
  $total = intval($atts['substract_from'] * 100) - $total;
538
  }
539
 
540
- if ($atts['hide_on_zero'] == 'yes' && !$total) {
541
  return '';
542
  }
543
 
544
- if ($atts['currency_formatted'] == 'yes') {
545
  $currency = \FluentFormPro\Payments\PaymentHelper::getFormCurrency($formId);
546
  return \FluentFormPro\Payments\PaymentHelper::formatMoney($total, $currency);
547
  }
@@ -557,11 +558,13 @@ class Component
557
  });
558
 
559
  $this->app->addShortCode('ff_get', function ($atts) {
560
- $atts = shortcode_atts(array(
561
  'param' => '',
562
- ), $atts);
563
- if ($atts['param'] && isset($_GET[$atts['param']])) {
564
- $value = $_GET[$atts['param']];
 
 
565
  if (is_array($value)) {
566
  return implode(', ', $value);
567
  }
@@ -569,16 +572,17 @@ class Component
569
  }
570
  return '';
571
  });
572
-
573
  }
574
 
575
  public function renderForm($atts)
576
  {
577
  $form_id = $atts['id'];
578
  $query = wpFluent()->table('fluentform_forms');
579
- if (!isset($_GET['preview_id'])) {
 
580
  $query->where('status', 'published');
581
  }
 
582
  if ($form_id) {
583
  $form = $query->find($form_id);
584
  } elseif ($formTitle = $atts['title']) {
@@ -623,10 +627,10 @@ class Component
623
  $form->settings = json_decode($formSettings->value, true);
624
  $form = $this->app->applyFilters('fluentform_rendering_form', $form);
625
 
626
- $isRenderable = array(
627
  'status' => true,
628
- 'message' => ''
629
- );
630
 
631
  $isRenderable = $this->app->applyFilters('fluentform_is_form_renderable', $isRenderable, $form);
632
 
@@ -639,8 +643,7 @@ class Component
639
  $form->instance_css_class = $instanceCssClass;
640
  $form->instance_index = Helper::$formInstance;
641
 
642
-
643
- if ($atts['type'] == 'conversational') {
644
  $this->addInlineVars();
645
  return (new \FluentForm\App\Services\FluentConversational\Classes\Form())->renderShortcode($form);
646
  }
@@ -669,9 +672,9 @@ class Component
669
 
670
  $stepText = __('Step %activeStep% of %totalStep% - %stepTitle%', 'fluentform');
671
  $stepText = apply_filters('fluentform_step_string', $stepText);
672
- $vars = apply_filters('fluentform_global_form_vars', array(
673
  'ajaxUrl' => admin_url('admin-ajax.php'),
674
- 'forms' => array(),
675
  'step_text' => $stepText,
676
  'is_rtl' => is_rtl(),
677
  'date_i18n' => $this->getDatei18n(),
@@ -690,9 +693,9 @@ class Component
690
  'maxItemText' => __('Only %%maxItemCount%% options can be added', 'fluentform'),
691
  ],
692
  'input_mask_vars' => [
693
- 'clearIfNotMatch' => false,
694
- ]
695
- ));
696
 
697
  wp_localize_script('fluent-form-submission', 'fluentFormVars', $vars);
698
 
@@ -701,16 +704,16 @@ class Component
701
  $formSettings = ArrayHelper::only($formSettings, ['layout', 'id']);
702
 
703
  $formSettings['restrictions']['denyEmptySubmission'] = [
704
- 'enabled' => false
705
  ];
706
 
707
- $form_vars = array(
708
  'id' => $form->id,
709
  'settings' => $formSettings,
710
  'form_instance' => $instanceCssClass,
711
  'form_id_selector' => 'fluentform_' . $form->id,
712
- 'rules' => $formBuilder->validationRules
713
- );
714
 
715
  if ($conditionals = $formBuilder->conditions) {
716
  $form_vars['conditionals'] = $conditionals;
@@ -726,8 +729,8 @@ class Component
726
  ob_start();
727
  ?>
728
  <script type="text/javascript">
729
- window.fluent_form_<?php echo esc_attr($instanceCssClass); ?> = <?php echo wp_json_encode($form_vars);?>;
730
- <?php if(wp_doing_ajax()): ?>
731
  function initFFInstance_<?php echo esc_attr($form_vars['id']); ?>() {
732
  if (!window.fluentFormApp) {
733
  console.log('No fluentFormApp found');
@@ -758,8 +761,9 @@ class Component
758
  /**
759
  * Process the output HTML to generate the default values.
760
  *
761
- * @param string $output
762
  * @param \stdClass $form
 
763
  * @return string
764
  */
765
  public function replaceEditorSmartCodes($output, $form)
@@ -769,7 +773,6 @@ class Component
769
  preg_match_all('/{(.*?)}/', $output, $matches);
770
  $patterns = array_unique($matches[0]);
771
 
772
-
773
  $attrDefaultValues = [];
774
 
775
  foreach ($patterns as $pattern) {
@@ -778,7 +781,7 @@ class Component
778
  }
779
 
780
  // Raising an event so that others can hook into it and modify the default values later.
781
- $attrDefaultValues = (array)apply_filters('fluentform_parse_default_values', $attrDefaultValues);
782
 
783
  if (isset($attrDefaultValues['{payment_total}'])) {
784
  $attrDefaultValues['{payment_total}'] = '<span class="ff_order_total"></span>';
@@ -791,7 +794,7 @@ class Component
791
  /**
792
  * Register renderer actions for compiling each element
793
  *
794
- * @return void
795
  */
796
  public function addRendererActions()
797
  {
@@ -803,7 +806,7 @@ class Component
803
  'TextArea@compile' => ['fluentform_render_item_textarea'],
804
  'DateTime@compile' => ['fluentform_render_item_input_date'],
805
  'Recaptcha@compile' => ['fluentform_render_item_recaptcha'],
806
- 'Hcaptcha@compile' => ['fluentform_render_item_hcaptcha'],
807
  'Turnstile@compile' => ['fluentform_render_item_turnstile'],
808
  'Container@compile' => ['fluentform_render_item_container'],
809
  'CustomHtml@compile' => ['fluentform_render_item_custom_html'],
@@ -813,11 +816,11 @@ class Component
813
 
814
  'TermsAndConditions@compile' => [
815
  'fluentform_render_item_terms_and_condition',
816
- 'fluentform_render_item_gdpr_agreement'
817
  ],
818
 
819
  'TabularGrid@compile' => [
820
- 'fluentform_render_item_tabular_grid'
821
  ],
822
 
823
  'Checkable@compile' => [
@@ -840,7 +843,7 @@ class Component
840
  foreach ($actions as $action) {
841
  $this->app->addAction($action, function () use ($path, $handler) {
842
  list($class, $method) = $this->app->parseHandler($path . $handler);
843
- call_user_func_array(array($class, $method), func_get_args());
844
  }, 10, 2);
845
  }
846
  }
@@ -849,7 +852,7 @@ class Component
849
  /**
850
  * Register dynamic value shortcode parser (filter default value)
851
  *
852
- * @return void
853
  */
854
  public function addFluentFormDefaultValueParser()
855
  {
@@ -861,12 +864,12 @@ class Component
861
  /**
862
  * Register filter to check whether the form is renderable
863
  *
864
- * @return mixed
865
  */
866
  public function addIsRenderableFilter()
867
  {
868
  $this->app->addFilter('fluentform_is_form_renderable', function ($isRenderable, $form) {
869
- $checkables = array('limitNumberOfEntries', 'scheduleForm', 'requireLogin');
870
 
871
  foreach ($form->settings['restrictions'] as $key => $restrictions) {
872
  if (in_array($key, $checkables)) {
@@ -907,25 +910,25 @@ class Component
907
  ->where('form_id', $form->id)
908
  ->where('status', '!=', 'trashed');
909
 
910
- if ($period == 'day') {
911
  $year = "YEAR(`{$col}`) = YEAR(NOW())";
912
  $month = "MONTH(`{$col}`) = MONTH(NOW())";
913
  $day = "DAY(`{$col}`) = DAY(NOW())";
914
  $query->where(wpFluent()->raw("{$year} AND {$month} AND {$day}"));
915
- } elseif ($period == 'week') {
916
  $query->where(
917
  wpFluent()->raw("YEARWEEK(`{$col}`, 1) = YEARWEEK(CURDATE(), 1)")
918
  );
919
- } elseif ($period == 'month') {
920
  $year = "YEAR(`{$col}`) = YEAR(NOW())";
921
  $month = "MONTH(`{$col}`) = MONTH(NOW())";
922
  $query->where(wpFluent()->raw("{$year} AND {$month}"));
923
- } elseif ($period == 'year') {
924
  $query->where(wpFluent()->raw("YEAR(`{$col}`) = YEAR(NOW())"));
925
- } else if ($period == 'per_user_ip') {
926
  $ip = $this->app->request->getIp();
927
  $query->where('ip', $ip);
928
- } else if ($period == 'per_user_id') {
929
  $userId = get_current_user_id();
930
  if (!$userId) {
931
  return true;
@@ -935,7 +938,6 @@ class Component
935
 
936
  $count = $query->count();
937
 
938
-
939
  if ($count >= $maxAllowedEntries) {
940
  $isRenderable['message'] = $restrictions['limitReachedMsg'];
941
  return false;
@@ -972,7 +974,7 @@ class Component
972
  return false;
973
  }
974
 
975
- $weekDayToday = date("l"); //day of the week
976
  $selectedWeekDays = ArrayHelper::get($restrictions, 'selectedDays');
977
  //skip if it was not set initially and $selectedWeekDays is null
978
  if ($selectedWeekDays && is_array($selectedWeekDays) && !in_array($weekDayToday, $selectedWeekDays)) {
@@ -1006,7 +1008,7 @@ class Component
1006
  /**
1007
  * Register fluentform_submission_inserted actions
1008
  *
1009
- * @return void
1010
  */
1011
  public function addFluentformSubmissionInsertedFilter()
1012
  {
@@ -1016,7 +1018,7 @@ class Component
1016
  /**
1017
  * Add inline scripts [Add localized script using same var]
1018
  *
1019
- * @return void
1020
  */
1021
  private function addInlineVars()
1022
  {
@@ -1038,8 +1040,8 @@ class Component
1038
  add_action($actionName, function () {
1039
  ?>
1040
  <script type="text/javascript">
1041
- <?php if(defined('ELEMENTOR_PRO_VERSION')): ?>
1042
- jQuery(document).on('elementor/popup/show', function (event, id, instance) {
1043
  var ffForms = jQuery('#elementor-popup-modal-' + id).find('form.frm-fluent-form');
1044
 
1045
  /**
@@ -1056,7 +1058,7 @@ class Component
1056
  }
1057
  }
1058
  if (ffForms.length) {
1059
- jQuery.each(ffForms, function (index, ffForm) {
1060
  jQuery(ffForm).trigger('reInitExtras');
1061
  jQuery(document).trigger('ff_reinit', [ffForm]);
1062
  });
@@ -1071,10 +1073,10 @@ class Component
1071
 
1072
  public static function getDatei18n()
1073
  {
1074
- $i18n = array(
1075
- 'previousMonth' => __('Previous Month', 'fluentform'),
1076
- 'nextMonth' => __('Next Month', 'fluentform'),
1077
- 'months' => [
1078
  'shorthand' => [
1079
  __('Jan', 'fluentform'),
1080
  __('Feb', 'fluentform'),
@@ -1087,9 +1089,9 @@ class Component
1087
  __('Sep', 'fluentform'),
1088
  __('Oct', 'fluentform'),
1089
  __('Nov', 'fluentform'),
1090
- __('Dec', 'fluentform')
1091
  ],
1092
- 'longhand' => [
1093
  __('January', 'fluentform'),
1094
  __('February', 'fluentform'),
1095
  __('March', 'fluentform'),
@@ -1101,30 +1103,30 @@ class Component
1101
  __('September', 'fluentform'),
1102
  __('October', 'fluentform'),
1103
  __('November', 'fluentform'),
1104
- __('December', 'fluentform')
1105
- ]
1106
  ],
1107
- 'weekdays' => [
1108
- 'longhand' => array(
1109
  __('Sunday', 'fluentform'),
1110
  __('Monday', 'fluentform'),
1111
  __('Tuesday', 'fluentform'),
1112
  __('Wednesday', 'fluentform'),
1113
  __('Thursday', 'fluentform'),
1114
  __('Friday', 'fluentform'),
1115
- __('Saturday', 'fluentform')
1116
- ),
1117
- 'shorthand' => array(
1118
  __('Sun', 'fluentform'),
1119
  __('Mon', 'fluentform'),
1120
  __('Tue', 'fluentform'),
1121
  __('Wed', 'fluentform'),
1122
  __('Thu', 'fluentform'),
1123
  __('Fri', 'fluentform'),
1124
- __('Sat', 'fluentform')
1125
- )
1126
  ],
1127
- 'daysInMonth' => [
1128
  31,
1129
  28,
1130
  31,
@@ -1136,7 +1138,7 @@ class Component
1136
  30,
1137
  31,
1138
  30,
1139
- 31
1140
  ],
1141
  'rangeSeparator' => __(' to ', 'fluentform'),
1142
  'weekAbbreviation' => __('Wk', 'fluentform'),
@@ -1144,10 +1146,10 @@ class Component
1144
  'toggleTitle' => __('Click to toggle', 'fluentform'),
1145
  'amPM' => [
1146
  __('AM', 'fluentform'),
1147
- __('PM', 'fluentform')
1148
  ],
1149
- 'yearAriaLabel' => __('Year', 'fluentform')
1150
- );
1151
 
1152
  return apply_filters('fluentform/date_i18n', $i18n);
1153
  }
@@ -1162,7 +1164,7 @@ class Component
1162
  'input_file',
1163
  'input_image',
1164
  'net_promoter_score',
1165
- 'featured_image'
1166
  ];
1167
 
1168
  if ($formBuilder->conditions || array_intersect($formBuilder->fieldLists, $advancedFields)) {
@@ -1172,8 +1174,8 @@ class Component
1172
 
1173
  public function registerInputSanitizers()
1174
  {
1175
- add_filter('fluentform_input_data_input_number', array($this, 'getNumericInputValue'), 10, 2);
1176
- add_filter('fluentform_input_data_custom_payment_component', array($this, 'getNumericInputValue'), 10, 2);
1177
  }
1178
 
1179
  public function getNumericInputValue($value, $field)
52
  wp_register_style(
53
  'fluent-form-styles',
54
  $fluentFormPublicCss,
55
+ [],
56
  FLUENTFORM_VERSION
57
  );
58
 
59
  wp_register_style(
60
  'fluentform-public-default',
61
  $fluentFormPublicDefaultCss,
62
+ [],
63
  FLUENTFORM_VERSION
64
  );
65
 
66
  wp_register_script(
67
  'fluent-form-submission',
68
  $app->publicUrl('js/form-submission.js'),
69
+ ['jquery'],
70
  FLUENTFORM_VERSION,
71
  true
72
  );
74
  wp_register_script(
75
  'fluentform-advanced',
76
  $app->publicUrl('js/fluentform-advanced.js'),
77
+ ['jquery'],
78
  FLUENTFORM_VERSION,
79
  true
80
  );
91
  wp_register_script(
92
  'flatpickr',
93
  $app->publicUrl('libs/flatpickr/flatpickr.js'),
94
+ ['jquery'],
95
  false,
96
  true
97
  );
99
  wp_register_script(
100
  'choices',
101
  $app->publicUrl('libs/choices/choices.min.js'),
102
+ [],
103
  '9.0.1',
104
  true
105
  );
110
  [],
111
  FLUENTFORM_VERSION
112
  );
113
+
114
  wp_register_script(
115
  'form-save-progress',
116
  $app->publicUrl('js/form-save-progress.js'),
118
  FLUENTFORM_VERSION,
119
  true
120
  );
121
+
122
  do_action('fluentform_scripts_registered');
123
 
124
  $this->maybeLoadFluentFormStyles();
128
  {
129
  global $post;
130
 
131
+ $postId = isset($post->ID) ? $post->ID : false;
132
  if (!$postId) {
133
  return;
134
  }
146
  /**
147
  * Get all the available components
148
  *
149
+ * @return void
150
+ *
151
  * @throws \Exception
152
  * @throws \FluentForm\Framework\Exception\UnResolveableEntityException
153
  */
154
  public function index()
155
  {
156
+ $formId = intval($this->app->request->get('formId'));
157
+
158
  $components = $this->app->make('components');
159
 
160
  $this->app->doAction('fluent_editor_init', $components);
164
 
165
  $countries = $this->app->load($this->app->appPath('Services/FormBuilder/CountryNames.php'));
166
 
167
+ wp_send_json_success([
168
  'countries' => $countries,
169
  'components' => $editorComponents,
170
+ 'disabled_components' => $this->getDisabledComponents(),
171
+ ]);
172
  }
173
 
 
174
  /**
175
  * Get disabled components
176
  *
182
  $isHCaptchaDisabled = !get_option('_fluentform_hCaptcha_keys_status', false);
183
  $isTurnstileDisabled = !get_option('_fluentform_turnstile_keys_status', false);
184
 
185
+ $disabled = [
186
+ 'recaptcha' => [
187
+ 'disabled' => $isReCaptchaDisabled,
188
+ 'title' => __('reCaptcha', 'fluentform'),
189
+ 'description' => __('Please enter a valid API key on FluentForms->Settings->reCaptcha', 'fluentform'),
190
+ 'hidePro' => true,
191
+ ],
192
+ 'hcaptcha' => [
193
+ 'disabled' => $isHCaptchaDisabled,
194
+ 'title' => __('hCaptcha', 'fluentform'),
195
+ 'description' => __('Please enter a valid API key on FluentForms->Settings->hCaptcha', 'fluentform'),
196
+ 'hidePro' => true,
197
+ ],
198
+ 'turnstile' => [
199
+ 'disabled' => $isTurnstileDisabled,
200
+ 'title' => __('Turnstile', 'fluentform'),
201
+ 'description' => __('Please enter a valid API key on FluentForms->Settings->Turnstile', 'fluentform'),
202
+ 'hidePro' => true,
203
+ ],
204
+ 'input_image' => [
205
+ 'disabled' => true,
206
+ 'title' => __('Image Upload', 'fluentform'),
207
+ 'description' => __('Image Upload is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
208
+ 'image' => '',
209
+ 'video' => 'https://www.youtube.com/embed/Yb3FSoZl9Zg',
210
+ ],
211
+ 'input_file' => [
212
+ 'disabled' => true,
213
+ 'title' => __('File Upload', 'fluentform'),
214
+ 'description' => __('File Upload is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
215
+ 'image' => '',
216
+ 'video' => 'https://www.youtube.com/embed/bXbTbNPM_4k',
217
+ ],
218
+ 'shortcode' => [
219
+ 'disabled' => true,
220
+ 'title' => __('Shortcode', 'fluentform'),
221
+ 'description' => __('Shortcode is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
222
+ 'image' => '',
223
+ 'video' => 'https://www.youtube.com/embed/op3mEQxX1MM',
224
+ ],
225
+ 'action_hook' => [
226
+ 'disabled' => true,
227
+ 'title' => __('Action Hook', 'fluentform'),
228
+ 'description' => __('Action Hook is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
229
+ 'image' => $this->app->publicUrl('img/pro-fields/Action Hook.png'),
230
+ 'video' => '',
231
+ ],
232
+ 'form_step' => [
233
+ 'disabled' => true,
234
+ 'title' => __('Form Step', 'fluentform'),
235
+ 'description' => __('Form Step is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
236
+ 'image' => '',
237
+ 'video' => 'https://www.youtube.com/embed/VQTWnM6BbRU',
238
+ ],
239
+ ];
240
 
241
  if (!defined('FLUENTFORMPRO')) {
242
+ $disabled['ratings'] = [
243
+ 'disabled' => true,
244
+ 'title' => __('Ratings', 'fluentform'),
245
+ 'description' => __('Ratings is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
246
+ 'image' => '',
247
+ 'video' => 'https://www.youtube.com/embed/YGdkNspMaEs',
248
+ ];
249
+ $disabled['tabular_grid'] = [
250
+ 'disabled' => true,
251
+ 'title' => __('Checkable Grid', 'fluentform'),
252
+ 'description' => __('Checkable Grid is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
253
+ 'image' => '',
254
+ 'video' => 'https://www.youtube.com/embed/ayI3TzXXANA',
255
+ ];
256
+ $disabled['chained_select'] = [
257
+ 'disabled' => true,
258
+ 'title' => __('Chained Select Field', 'fluentform'),
259
+ 'description' => __('Chained Select Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
260
+ 'image' => $this->app->publicUrl('img/pro-fields/Chained Select Field.png'),
261
+ 'video' => '',
262
+ ];
263
+ $disabled['phone'] = [
264
+ 'disabled' => true,
265
+ 'title' => 'Phone Field',
266
+ 'description' => __('Phone Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
267
+ 'image' => $this->app->publicUrl('img/pro-fields/Phone Field.png'),
268
+ 'video' => '',
269
+ ];
270
+ $disabled['rich_text_input'] = [
271
+ 'disabled' => true,
272
+ 'title' => __('Rich Text Input', 'fluentform'),
273
+ 'description' => __('Rich Text Input is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
274
+ 'image' => $this->app->publicUrl('img/pro-fields/Rich Text Input.png'),
275
+ 'video' => '',
276
+ ];
277
+ $disabled['save_progress_button'] = [
278
+ 'disabled' => true,
279
+ 'title' => __('Save & Resume', 'fluentform'),
280
+ 'description' => __('Save & Resume is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
281
+ 'image' => $this->app->publicUrl('img/pro-fields/Save Progress Button.png'),
282
+ 'video' => '',
283
+ ];
284
+ $disabled['cpt_selection'] = [
285
+ 'disabled' => true,
286
+ 'title' => __('Post/CPT Selection', 'fluentform'),
287
+ 'description' => __('Post/CPT Selection is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
288
+ 'image' => $this->app->publicUrl('img/pro-fields/Post_CPT Selection.png'),
289
+ 'video' => '',
290
+ ];
291
+ $disabled['quiz_score'] = [
292
+ 'disabled' => true,
293
+ 'title' => __('Quiz Score', 'fluentform'),
294
+ 'description' => __('Quiz Score is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
295
+ 'image' => '',
296
+ 'video' => 'https://www.youtube.com/embed/bPjDXR0y_Oo',
297
+ ];
298
+ $disabled['net_promoter_score'] = [
299
+ 'disabled' => true,
300
+ 'title' => __('Net Promoter Score', 'fluentform'),
301
+ 'description' => __('Net Promoter Score is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
302
+ 'image' => $this->app->publicUrl('img/pro-fields/Net Promoter Score.png'),
303
+ 'video' => '',
304
+ ];
305
+ $disabled['repeater_field'] = [
306
+ 'disabled' => true,
307
+ 'title' => __('Repeat Field', 'fluentform'),
308
+ 'description' => __('Repeat Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
309
+ 'image' => '',
310
+ 'video' => 'https://www.youtube.com/embed/BXo9Sk-OLnQ',
311
+ ];
312
+ $disabled['rangeslider'] = [
313
+ 'disabled' => true,
314
+ 'title' => __('Range Slider', 'fluentform'),
315
+ 'description' => __('Range Slider is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
316
+ 'image' => '',
317
+ 'video' => 'https://www.youtube.com/embed/RaY2VcPWk6I',
318
+ ];
319
+ $disabled['color-picker'] = [
320
+ 'disabled' => true,
321
+ 'title' => __('Color Picker', 'fluentform'),
322
+ 'description' => __('Color Picker is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
323
+ 'image' => $this->app->publicUrl('img/pro-fields/Color Picker.png'),
324
+ 'video' => '',
325
+ ];
326
+ $disabled['multi_payment_component'] = [
327
+ 'disabled' => true,
328
+ 'is_payment' => true,
329
+ 'title' => __('Payment Field', 'fluentform'),
330
+ 'description' => __('Payment Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
331
+ 'image' => $this->app->publicUrl('img/pro-fields/Payment Field.png'),
332
+ 'video' => '',
333
+ ];
334
+ $disabled['custom_payment_component'] = [
335
+ 'disabled' => true,
336
+ 'is_payment' => true,
337
+ 'title' => 'Custom Payment Amount',
338
+ 'description' => __('Custom Payment Amount is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
339
+ 'image' => $this->app->publicUrl('img/pro-fields/Custom Payment Amount.png'),
340
+ 'video' => '',
341
+ ];
342
+ $disabled['subscription_payment_component'] = [
343
+ 'disabled' => true,
344
+ 'is_payment' => true,
345
+ 'title' => __('Subscription Field', 'fluentform'),
346
+ 'description' => __('Subscription Field is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
347
+ 'image' => $this->app->publicUrl('img/pro-fields/Subscription Field.png'),
348
+ 'video' => '',
349
+ ];
350
+ $disabled['item_quantity_component'] = [
351
+ 'disabled' => true,
352
+ 'is_payment' => true,
353
+ 'title' => __('Item Quantity', 'fluentform'),
354
+ 'description' => __('Item Quantity is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
355
+ 'image' => $this->app->publicUrl('img/pro-fields/Item Quantity.png'),
356
+ 'video' => '',
357
+ ];
358
+ $disabled['payment_method'] = [
359
+ 'disabled' => true,
360
+ 'is_payment' => true,
361
+ 'title' => __('Payment Method', 'fluentform'),
362
+ 'description' => __('Payment Method is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
363
+ 'image' => $this->app->publicUrl('img/pro-fields/Payment Method.png'),
364
+ 'video' => '',
365
+ ];
366
+ $disabled['payment_summary_component'] = [
367
+ 'disabled' => true,
368
+ 'is_payment' => true,
369
+ 'title' => __('Payment Summary', 'fluentform'),
370
+ 'description' => __('Payment Summary is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
371
+ 'image' => $this->app->publicUrl('img/pro-fields/Payment Summary.png'),
372
+ 'video' => '',
373
+ ];
374
+ $disabled['payment_coupon'] = [
375
+ 'disabled' => true,
376
+ 'title' => __('Coupon', 'fluentform'),
377
+ 'description' => __('Coupon is not available with the free version. Please upgrade to pro to get all the advanced features.', 'fluentform'),
378
+ 'image' => $this->app->publicUrl('img/pro-fields/Coupon.png'),
379
+ 'video' => '',
380
+ ];
381
  }
382
  return $this->app->applyFilters('fluentform_disabled_components', $disabled);
383
  }
386
  * Get available shortcodes for editor
387
  *
388
  * @return void
389
+ *
390
  * @throws \Exception
391
  */
392
  public function getEditorShortcodes()
399
  * Get all available shortcodes for editor
400
  *
401
  * @return void
402
+ *
403
  * @throws \Exception
404
  */
405
  public function getAllEditorShortcodes()
412
  /**
413
  * Register the form renderer shortcode
414
  *
415
+ * @return void
416
  */
417
  public function addFluentFormShortCode()
418
  {
419
+ add_action('wp_enqueue_scripts', [$this, 'registerScripts'], 9);
 
420
 
421
  $this->app->addShortCode('fluentform', function ($atts, $content) {
422
+ $shortcodeDefaults = apply_filters('fluentform_shortcode_defaults', [
423
  'id' => null,
424
  'title' => null,
425
  'css_classes' => '',
426
  'permission' => '',
427
  'type' => 'classic',
428
+ 'permission_message' => __('Sorry, You do not have permission to view this form', 'fluentform'),
429
+ ], $atts);
430
 
431
  $atts = shortcode_atts($shortcodeDefaults, $atts);
432
 
434
  });
435
 
436
  $this->app->addShortCode('fluentform_info', function ($atts) {
437
+ $shortcodeDefaults = apply_filters('fluentform_info_shortcode_defaults', [
438
  'id' => null, // This is the form id
439
  'info' => 'submission_count', // submission_count | created_at | updated_at | payment_total
440
  'status' => 'all', // get submission cound of a particular entry status favourites | unread | read
443
  'hide_on_zero' => 'no',
444
  'payment_status' => 'all', // it can be all / specific payment status
445
  'currency_formatted' => 'yes',
446
+ 'date_format' => '',
447
+ ], $atts);
448
 
449
  $atts = shortcode_atts($shortcodeDefaults, $atts);
450
  $formId = $atts['id'];
454
  return '';
455
  }
456
 
457
+ if ('submission_count' == $atts['info']) {
458
  $countQuery = wpFluent()->table('fluentform_submissions')
459
  ->where('form_id', $formId);
460
 
461
+ if ('trashed' != $atts['status'] && 'no' == $atts['with_trashed']) {
462
  $countQuery = $countQuery->where('status', '!=', 'trashed');
463
  }
464
 
465
+ if ('all' == $atts['status']) {
466
  // ...
467
+ } elseif ('favourites' == $atts['status']) {
468
  $countQuery = $countQuery->where('is_favourite', '=', 1);
469
  } else {
470
  $countQuery = $countQuery->where('status', '=', sanitize_key($atts['status']));
471
  }
472
+ if ($atts['payment_status'] && defined('FLUENTFORMPRO') && 'all' != $atts['payment_status']) {
473
  $countQuery = $countQuery->where('payment_status', '=', sanitize_key($atts['payment_status']));
474
  }
475
+
476
  $total = $countQuery->count();
477
 
478
  if ($atts['substract_from']) {
479
  $total = intval($atts['substract_from']) - $total;
480
  }
481
 
482
+ if ('yes' == $atts['hide_on_zero'] && !$total || $total < 0) {
483
  return '';
484
  }
485
 
486
  return $total;
487
+ } elseif ('created_at' == $atts['info']) {
488
  if ($atts['date_format']) {
489
  $dateFormat = $atts['date_format'];
490
  } else {
491
  $dateFormat = get_option('date_format') . ' ' . get_option('time_format');
492
  }
493
  return date($dateFormat, strtotime($form->created_at));
494
+ } elseif ('updated_at' == $atts['info']) {
495
  if ($atts['date_format']) {
496
  $dateFormat = $atts['date_format'];
497
  } else {
498
  $dateFormat = get_option('date_format') . ' ' . get_option('time_format');
499
  }
500
  return date($dateFormat, strtotime($form->updated_at));
501
+ } elseif ('payment_total' == $atts['info']) {
 
502
  if (!defined('FLUENTFORMPRO')) {
503
  return '';
504
  }
509
  ->select(wpFluent()->raw('SUM(payment_total) as payment_total'))
510
  ->where('form_id', $formId);
511
 
512
+ if ('trashed' != $atts['status'] && 'no' == $atts['with_trashed']) {
513
  $countQuery = $countQuery->where('status', '!=', 'trashed');
514
  }
515
 
516
+ if ('all' == $atts['status']) {
517
  // ...
518
+ } elseif ('favourites' == $atts['status']) {
519
  $countQuery = $countQuery->where('is_favourite', '=', 1);
520
  } else {
521
  $countQuery = $countQuery->where('status', '=', sanitize_key($atts['status']));
522
  }
523
 
524
+ if ('all' == $atts['payment_status']) {
525
  // ...
526
+ } elseif ($atts['payment_status']) {
527
  $countQuery = $countQuery->where('payment_status', '=', sanitize_key($atts['payment_status']));
528
  }
529
 
538
  $total = intval($atts['substract_from'] * 100) - $total;
539
  }
540
 
541
+ if ('yes' == $atts['hide_on_zero'] && !$total) {
542
  return '';
543
  }
544
 
545
+ if ('yes' == $atts['currency_formatted']) {
546
  $currency = \FluentFormPro\Payments\PaymentHelper::getFormCurrency($formId);
547
  return \FluentFormPro\Payments\PaymentHelper::formatMoney($total, $currency);
548
  }
558
  });
559
 
560
  $this->app->addShortCode('ff_get', function ($atts) {
561
+ $atts = shortcode_atts([
562
  'param' => '',
563
+ ], $atts);
564
+
565
+ $value = $this->app->request->get($atts['param']);
566
+
567
+ if ($atts['param'] && $value) {
568
  if (is_array($value)) {
569
  return implode(', ', $value);
570
  }
572
  }
573
  return '';
574
  });
 
575
  }
576
 
577
  public function renderForm($atts)
578
  {
579
  $form_id = $atts['id'];
580
  $query = wpFluent()->table('fluentform_forms');
581
+
582
+ if (! $this->app->request->get('preview_id')) {
583
  $query->where('status', 'published');
584
  }
585
+
586
  if ($form_id) {
587
  $form = $query->find($form_id);
588
  } elseif ($formTitle = $atts['title']) {
627
  $form->settings = json_decode($formSettings->value, true);
628
  $form = $this->app->applyFilters('fluentform_rendering_form', $form);
629
 
630
+ $isRenderable = [
631
  'status' => true,
632
+ 'message' => '',
633
+ ];
634
 
635
  $isRenderable = $this->app->applyFilters('fluentform_is_form_renderable', $isRenderable, $form);
636
 
643
  $form->instance_css_class = $instanceCssClass;
644
  $form->instance_index = Helper::$formInstance;
645
 
646
+ if ('conversational' == $atts['type']) {
 
647
  $this->addInlineVars();
648
  return (new \FluentForm\App\Services\FluentConversational\Classes\Form())->renderShortcode($form);
649
  }
672
 
673
  $stepText = __('Step %activeStep% of %totalStep% - %stepTitle%', 'fluentform');
674
  $stepText = apply_filters('fluentform_step_string', $stepText);
675
+ $vars = apply_filters('fluentform_global_form_vars', [
676
  'ajaxUrl' => admin_url('admin-ajax.php'),
677
+ 'forms' => [],
678
  'step_text' => $stepText,
679
  'is_rtl' => is_rtl(),
680
  'date_i18n' => $this->getDatei18n(),
693
  'maxItemText' => __('Only %%maxItemCount%% options can be added', 'fluentform'),
694
  ],
695
  'input_mask_vars' => [
696
+ 'clearIfNotMatch' => false,
697
+ ],
698
+ ]);
699
 
700
  wp_localize_script('fluent-form-submission', 'fluentFormVars', $vars);
701
 
704
  $formSettings = ArrayHelper::only($formSettings, ['layout', 'id']);
705
 
706
  $formSettings['restrictions']['denyEmptySubmission'] = [
707
+ 'enabled' => false,
708
  ];
709
 
710
+ $form_vars = [
711
  'id' => $form->id,
712
  'settings' => $formSettings,
713
  'form_instance' => $instanceCssClass,
714
  'form_id_selector' => 'fluentform_' . $form->id,
715
+ 'rules' => $formBuilder->validationRules,
716
+ ];
717
 
718
  if ($conditionals = $formBuilder->conditions) {
719
  $form_vars['conditionals'] = $conditionals;
729
  ob_start();
730
  ?>
731
  <script type="text/javascript">
732
+ window.fluent_form_<?php echo esc_attr($instanceCssClass); ?> = <?php echo wp_json_encode($form_vars); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $form_vars is escaped before being passed in.?>;
733
+ <?php if (wp_doing_ajax()): ?>
734
  function initFFInstance_<?php echo esc_attr($form_vars['id']); ?>() {
735
  if (!window.fluentFormApp) {
736
  console.log('No fluentFormApp found');
761
  /**
762
  * Process the output HTML to generate the default values.
763
  *
764
+ * @param string $output
765
  * @param \stdClass $form
766
+ *
767
  * @return string
768
  */
769
  public function replaceEditorSmartCodes($output, $form)
773
  preg_match_all('/{(.*?)}/', $output, $matches);
774
  $patterns = array_unique($matches[0]);
775
 
 
776
  $attrDefaultValues = [];
777
 
778
  foreach ($patterns as $pattern) {
781
  }
782
 
783
  // Raising an event so that others can hook into it and modify the default values later.
784
+ $attrDefaultValues = (array) apply_filters('fluentform_parse_default_values', $attrDefaultValues);
785
 
786
  if (isset($attrDefaultValues['{payment_total}'])) {
787
  $attrDefaultValues['{payment_total}'] = '<span class="ff_order_total"></span>';
794
  /**
795
  * Register renderer actions for compiling each element
796
  *
797
+ * @return void
798
  */
799
  public function addRendererActions()
800
  {
806
  'TextArea@compile' => ['fluentform_render_item_textarea'],
807
  'DateTime@compile' => ['fluentform_render_item_input_date'],
808
  'Recaptcha@compile' => ['fluentform_render_item_recaptcha'],
809
+ 'Hcaptcha@compile' => ['fluentform_render_item_hcaptcha'],
810
  'Turnstile@compile' => ['fluentform_render_item_turnstile'],
811
  'Container@compile' => ['fluentform_render_item_container'],
812
  'CustomHtml@compile' => ['fluentform_render_item_custom_html'],
816
 
817
  'TermsAndConditions@compile' => [
818
  'fluentform_render_item_terms_and_condition',
819
+ 'fluentform_render_item_gdpr_agreement',
820
  ],
821
 
822
  'TabularGrid@compile' => [
823
+ 'fluentform_render_item_tabular_grid',
824
  ],
825
 
826
  'Checkable@compile' => [
843
  foreach ($actions as $action) {
844
  $this->app->addAction($action, function () use ($path, $handler) {
845
  list($class, $method) = $this->app->parseHandler($path . $handler);
846
+ call_user_func_array([$class, $method], func_get_args());
847
  }, 10, 2);
848
  }
849
  }
852
  /**
853
  * Register dynamic value shortcode parser (filter default value)
854
  *
855
+ * @return void
856
  */
857
  public function addFluentFormDefaultValueParser()
858
  {
864
  /**
865
  * Register filter to check whether the form is renderable
866
  *
867
+ * @return mixed
868
  */
869
  public function addIsRenderableFilter()
870
  {
871
  $this->app->addFilter('fluentform_is_form_renderable', function ($isRenderable, $form) {
872
+ $checkables = ['limitNumberOfEntries', 'scheduleForm', 'requireLogin'];
873
 
874
  foreach ($form->settings['restrictions'] as $key => $restrictions) {
875
  if (in_array($key, $checkables)) {
910
  ->where('form_id', $form->id)
911
  ->where('status', '!=', 'trashed');
912
 
913
+ if ('day' == $period) {
914
  $year = "YEAR(`{$col}`) = YEAR(NOW())";
915
  $month = "MONTH(`{$col}`) = MONTH(NOW())";
916
  $day = "DAY(`{$col}`) = DAY(NOW())";
917
  $query->where(wpFluent()->raw("{$year} AND {$month} AND {$day}"));
918
+ } elseif ('week' == $period) {
919
  $query->where(
920
  wpFluent()->raw("YEARWEEK(`{$col}`, 1) = YEARWEEK(CURDATE(), 1)")
921
  );
922
+ } elseif ('month' == $period) {
923
  $year = "YEAR(`{$col}`) = YEAR(NOW())";
924
  $month = "MONTH(`{$col}`) = MONTH(NOW())";
925
  $query->where(wpFluent()->raw("{$year} AND {$month}"));
926
+ } elseif ('year' == $period) {
927
  $query->where(wpFluent()->raw("YEAR(`{$col}`) = YEAR(NOW())"));
928
+ } elseif ('per_user_ip' == $period) {
929
  $ip = $this->app->request->getIp();
930
  $query->where('ip', $ip);
931
+ } elseif ('per_user_id' == $period) {
932
  $userId = get_current_user_id();
933
  if (!$userId) {
934
  return true;
938
 
939
  $count = $query->count();
940
 
 
941
  if ($count >= $maxAllowedEntries) {
942
  $isRenderable['message'] = $restrictions['limitReachedMsg'];
943
  return false;
974
  return false;
975
  }
976
 
977
+ $weekDayToday = date('l'); //day of the week
978
  $selectedWeekDays = ArrayHelper::get($restrictions, 'selectedDays');
979
  //skip if it was not set initially and $selectedWeekDays is null
980
  if ($selectedWeekDays && is_array($selectedWeekDays) && !in_array($weekDayToday, $selectedWeekDays)) {
1008
  /**
1009
  * Register fluentform_submission_inserted actions
1010
  *
1011
+ * @return void
1012
  */
1013
  public function addFluentformSubmissionInsertedFilter()
1014
  {
1018
  /**
1019
  * Add inline scripts [Add localized script using same var]
1020
  *
1021
+ * @return void
1022
  */
1023
  private function addInlineVars()
1024
  {
1040
  add_action($actionName, function () {
1041
  ?>
1042
  <script type="text/javascript">
1043
+ <?php if (defined('ELEMENTOR_PRO_VERSION')): ?>
1044
+ jQuery(document).on('elementor/popup/show', function(event, id, instance) {
1045
  var ffForms = jQuery('#elementor-popup-modal-' + id).find('form.frm-fluent-form');
1046
 
1047
  /**
1058
  }
1059
  }
1060
  if (ffForms.length) {
1061
+ jQuery.each(ffForms, function(index, ffForm) {
1062
  jQuery(ffForm).trigger('reInitExtras');
1063
  jQuery(document).trigger('ff_reinit', [ffForm]);
1064
  });
1073
 
1074
  public static function getDatei18n()
1075
  {
1076
+ $i18n = [
1077
+ 'previousMonth' => __('Previous Month', 'fluentform'),
1078
+ 'nextMonth' => __('Next Month', 'fluentform'),
1079
+ 'months' => [
1080
  'shorthand' => [
1081
  __('Jan', 'fluentform'),
1082
  __('Feb', 'fluentform'),
1089
  __('Sep', 'fluentform'),
1090
  __('Oct', 'fluentform'),
1091
  __('Nov', 'fluentform'),
1092
+ __('Dec', 'fluentform'),
1093
  ],
1094
+ 'longhand' => [
1095
  __('January', 'fluentform'),
1096
  __('February', 'fluentform'),
1097
  __('March', 'fluentform'),
1103
  __('September', 'fluentform'),
1104
  __('October', 'fluentform'),
1105
  __('November', 'fluentform'),
1106
+ __('December', 'fluentform'),
1107
+ ],
1108
  ],
1109
+ 'weekdays' => [
1110
+ 'longhand' => [
1111
  __('Sunday', 'fluentform'),
1112
  __('Monday', 'fluentform'),
1113
  __('Tuesday', 'fluentform'),
1114
  __('Wednesday', 'fluentform'),
1115
  __('Thursday', 'fluentform'),
1116
  __('Friday', 'fluentform'),
1117
+ __('Saturday', 'fluentform'),
1118
+ ],
1119
+ 'shorthand' => [
1120
  __('Sun', 'fluentform'),
1121
  __('Mon', 'fluentform'),
1122
  __('Tue', 'fluentform'),
1123
  __('Wed', 'fluentform'),
1124
  __('Thu', 'fluentform'),
1125
  __('Fri', 'fluentform'),
1126
+ __('Sat', 'fluentform'),
1127
+ ],
1128
  ],
1129
+ 'daysInMonth' => [
1130
  31,
1131
  28,
1132
  31,
1138
  30,
1139
  31,
1140
  30,
1141
+ 31,
1142
  ],
1143
  'rangeSeparator' => __(' to ', 'fluentform'),
1144
  'weekAbbreviation' => __('Wk', 'fluentform'),
1146
  'toggleTitle' => __('Click to toggle', 'fluentform'),
1147
  'amPM' => [
1148
  __('AM', 'fluentform'),
1149
+ __('PM', 'fluentform'),
1150
  ],
1151
+ 'yearAriaLabel' => __('Year', 'fluentform'),
1152
+ ];
1153
 
1154
  return apply_filters('fluentform/date_i18n', $i18n);
1155
  }
1164
  'input_file',
1165
  'input_image',
1166
  'net_promoter_score',
1167
+ 'featured_image',
1168
  ];
1169
 
1170
  if ($formBuilder->conditions || array_intersect($formBuilder->fieldLists, $advancedFields)) {
1174
 
1175
  public function registerInputSanitizers()
1176
  {
1177
+ add_filter('fluentform_input_data_input_number', [$this, 'getNumericInputValue'], 10, 2);
1178
+ add_filter('fluentform_input_data_custom_payment_component', [$this, 'getNumericInputValue'], 10, 2);
1179
  }
1180
 
1181
  public function getNumericInputValue($value, $field)
app/Modules/Component/ComponentInitTrait.php CHANGED
@@ -18,13 +18,13 @@ trait ComponentInitTrait
18
 
19
  // Hook to add search keywords for the component
20
  add_filter('fluent_editor_element_search_tags', [$this, '_fluentEditorElementSearchTagsCallback']);
21
-
22
  // Hook for component's editor items/options placement settings
23
  add_filter('fluent_editor_element_settings_placement', [$this, '_fluentEditorElementSettingsPlacementCallback']);
24
-
25
  // Hook for component's customization settings
26
  add_filter('fluent_editor_element_customization_settings', [$this, '_fluentEditorElementCustomizationSettingsCallback']);
27
-
28
  // Hook for response data preperation on form submission
29
  add_filter('fluentform_insert_response_data', [$this, '_fluentformInsertResponseDataCallback'], 10, 3);
30
 
@@ -33,43 +33,43 @@ trait ComponentInitTrait
33
 
34
  // Component render/compile hook (for form)
35
  add_action('fluentform_render_item_' . $this->element(), [$this, '_elementRenderHookCallback'], 10, 2);
36
-
37
  // Component's used element response transformation hook (for entries)
38
  add_filter('fluentform_response_render_' . $this->element(), [$this, '_elementEntryFormatCallback'], 10, 3);
39
  }
40
 
41
  /**
42
  * Validate certain required properties
43
- *
44
  * @return void
45
  */
46
  private function _fluentFormValidateComponent()
47
  {
48
  $name = $this->name();
49
- if (!$name || !is_string($name)) {
50
  wp_die('The name must be a valid string.');
51
  }
52
 
53
  $label = $this->label();
54
- if (!$label || !is_string($label)) {
55
  wp_die('The label must be a valid string.');
56
  }
57
 
58
  $element = $this->element();
59
- if (!$element || !is_string($element)) {
60
  $elements = 'text_input, text_email, textarea';
61
  wp_die("The element must be one of the available elements, i.e: $elements e.t.c.");
62
  }
63
 
64
  $template = $this->template();
65
- if (!$template || !is_string($template)) {
66
  $templates = 'inputText, selectCountry. addressFields';
67
  wp_die("The template must be one of the available templates, i.e: $templates e.t.c.");
68
  }
69
 
70
  $group = $this->group();
71
  $groups = ['general', 'advanced', 'container'];
72
- if (!$group || !in_array($group, $groups)) {
73
  wp_die('Invalid group, available groups: ' . implode(', ', $groups) . '.');
74
  }
75
  }
@@ -77,7 +77,8 @@ trait ComponentInitTrait
77
  /**
78
  * Add the component in fluentform editor's components array.
79
  *
80
- * @param array $components
 
81
  * @return array $components
82
  */
83
  public function _fluentEditorComponenstCallback($components)
@@ -90,28 +91,28 @@ trait ComponentInitTrait
90
  $template = $this->template();
91
  $iconClass = $this->elementIconClass();
92
  $validationRules = $this->validationRules();
93
-
94
  $settings = $this->settings([
95
- 'label' => $label,
96
- 'container_class' => '',
97
- 'label_placement' => '',
98
- 'help_message' => '',
99
- 'admin_field_label' => $label,
100
  'conditional_logics' => [],
101
- 'validation_rules' => $validationRules
102
  ]);
103
 
104
  $attributes = $this->attributes([
105
- 'id' => "",
106
- 'name' => $name,
107
- 'class' => '',
108
- 'value' => '',
109
  'placeholder' => '',
110
  ]);
111
 
112
  $editorOptions = $this->options([
113
- 'title' => $label,
114
- 'template' => $template,
115
  'icon_class' => $iconClass,
116
  ]);
117
 
@@ -120,10 +121,10 @@ trait ComponentInitTrait
120
  }
121
 
122
  $components[$group][] = [
123
- 'index' => $index,
124
- 'element' => $element,
125
- 'settings' => $settings,
126
- 'attributes' => $attributes,
127
  'editor_options' => $editorOptions,
128
  ];
129
 
@@ -132,15 +133,16 @@ trait ComponentInitTrait
132
 
133
  /**
134
  * Add the keywords for the component to search in the editor.
135
- *
136
- * @param array $keywords
 
137
  * @return array $keywords
138
  */
139
  public function _fluentEditorElementSearchTagsCallback($keywords)
140
  {
141
  $newKeywords = $this->searchBy();
142
 
143
- if (!$newKeywords) {
144
  return $keywords;
145
  }
146
 
@@ -151,7 +153,8 @@ trait ComponentInitTrait
151
  }
152
 
153
  $keywords[$element] = array_merge(
154
- $existingKeywords, $newKeywords
 
155
  );
156
 
157
  return $keywords;
@@ -159,8 +162,9 @@ trait ComponentInitTrait
159
 
160
  /**
161
  * Configure placements of input customization options in editor.
162
- *
163
- * @param array $placemenSettings
 
164
  * @return array $placemenSettings
165
  */
166
  public function _fluentEditorElementSettingsPlacementCallback($placementSettings)
@@ -184,16 +188,18 @@ trait ComponentInitTrait
184
  ];
185
 
186
  $placementSettings[$this->element()] = array_merge_recursive(
187
- $this->placementSettings($default), $placementSettings
 
188
  );
189
-
190
  return $placementSettings;
191
  }
192
 
193
  /**
194
  * Configure input customization options/items in the editor.
195
- *
196
- * @param array $customizationSettings
 
197
  * @return array $customizationSettings
198
  */
199
  public function _fluentEditorElementCustomizationSettingsCallback($customizationSettings)
@@ -204,9 +210,10 @@ trait ComponentInitTrait
204
  /**
205
  * Prepare the submission data for the element on Form Submission.
206
  *
207
- * @param array $formData
208
- * @param int $formId
209
- * @param array $inputConfigs
 
210
  * @return array $formData
211
  */
212
  public function _fluentformInsertResponseDataCallback($formData, $formId, $inputConfigs)
@@ -217,8 +224,9 @@ trait ComponentInitTrait
217
  /**
218
  * Add the component type in fluentform field
219
  * types to be available in FormFieldParser.
220
- *
221
- * @param array $types
 
222
  * @return array $types
223
  */
224
  public function _fluentformFormInputTypesCallback($types)
@@ -229,8 +237,9 @@ trait ComponentInitTrait
229
  /**
230
  * Render the component.
231
  *
232
- * @param array $data
233
- * @param stdClass $form
 
234
  * @return void
235
  */
236
  public function _elementRenderHookCallback($item, $form)
@@ -240,10 +249,11 @@ trait ComponentInitTrait
240
 
241
  /**
242
  * Element's entry value transformation.
243
- *
244
- * @param mixed $value
245
- * @param string $field
246
- * @param int $formId
 
247
  * @return mixed $value
248
  */
249
  public function _elementEntryFormatCallback($value, $field, $formId)
18
 
19
  // Hook to add search keywords for the component
20
  add_filter('fluent_editor_element_search_tags', [$this, '_fluentEditorElementSearchTagsCallback']);
21
+
22
  // Hook for component's editor items/options placement settings
23
  add_filter('fluent_editor_element_settings_placement', [$this, '_fluentEditorElementSettingsPlacementCallback']);
24
+
25
  // Hook for component's customization settings
26
  add_filter('fluent_editor_element_customization_settings', [$this, '_fluentEditorElementCustomizationSettingsCallback']);
27
+
28
  // Hook for response data preperation on form submission
29
  add_filter('fluentform_insert_response_data', [$this, '_fluentformInsertResponseDataCallback'], 10, 3);
30
 
33
 
34
  // Component render/compile hook (for form)
35
  add_action('fluentform_render_item_' . $this->element(), [$this, '_elementRenderHookCallback'], 10, 2);
36
+
37
  // Component's used element response transformation hook (for entries)
38
  add_filter('fluentform_response_render_' . $this->element(), [$this, '_elementEntryFormatCallback'], 10, 3);
39
  }
40
 
41
  /**
42
  * Validate certain required properties
43
+ *
44
  * @return void
45
  */
46
  private function _fluentFormValidateComponent()
47
  {
48
  $name = $this->name();
49
+ if (! $name || ! is_string($name)) {
50
  wp_die('The name must be a valid string.');
51
  }
52
 
53
  $label = $this->label();
54
+ if (! $label || ! is_string($label)) {
55
  wp_die('The label must be a valid string.');
56
  }
57
 
58
  $element = $this->element();
59
+ if (! $element || ! is_string($element)) {
60
  $elements = 'text_input, text_email, textarea';
61
  wp_die("The element must be one of the available elements, i.e: $elements e.t.c.");
62
  }
63
 
64
  $template = $this->template();
65
+ if (! $template || ! is_string($template)) {
66
  $templates = 'inputText, selectCountry. addressFields';
67
  wp_die("The template must be one of the available templates, i.e: $templates e.t.c.");
68
  }
69
 
70
  $group = $this->group();
71
  $groups = ['general', 'advanced', 'container'];
72
+ if (! $group || ! in_array($group, $groups)) {
73
  wp_die('Invalid group, available groups: ' . implode(', ', $groups) . '.');
74
  }
75
  }
77
  /**
78
  * Add the component in fluentform editor's components array.
79
  *
80
+ * @param array $components
81
+ *
82
  * @return array $components
83
  */
84
  public function _fluentEditorComponenstCallback($components)
91
  $template = $this->template();
92
  $iconClass = $this->elementIconClass();
93
  $validationRules = $this->validationRules();
94
+
95
  $settings = $this->settings([
96
+ 'label' => $label,
97
+ 'container_class' => '',
98
+ 'label_placement' => '',
99
+ 'help_message' => '',
100
+ 'admin_field_label' => $label,
101
  'conditional_logics' => [],
102
+ 'validation_rules' => $validationRules,
103
  ]);
104
 
105
  $attributes = $this->attributes([
106
+ 'id' => '',
107
+ 'name' => $name,
108
+ 'class' => '',
109
+ 'value' => '',
110
  'placeholder' => '',
111
  ]);
112
 
113
  $editorOptions = $this->options([
114
+ 'title' => $label,
115
+ 'template' => $template,
116
  'icon_class' => $iconClass,
117
  ]);
118
 
121
  }
122
 
123
  $components[$group][] = [
124
+ 'index' => $index,
125
+ 'element' => $element,
126
+ 'settings' => $settings,
127
+ 'attributes' => $attributes,
128
  'editor_options' => $editorOptions,
129
  ];
130
 
133
 
134
  /**
135
  * Add the keywords for the component to search in the editor.
136
+ *
137
+ * @param array $keywords
138
+ *
139
  * @return array $keywords
140
  */
141
  public function _fluentEditorElementSearchTagsCallback($keywords)
142
  {
143
  $newKeywords = $this->searchBy();
144
 
145
+ if (! $newKeywords) {
146
  return $keywords;
147
  }
148
 
153
  }
154
 
155
  $keywords[$element] = array_merge(
156
+ $existingKeywords,
157
+ $newKeywords
158
  );
159
 
160
  return $keywords;
162
 
163
  /**
164
  * Configure placements of input customization options in editor.
165
+ *
166
+ * @param array $placemenSettings
167
+ *
168
  * @return array $placemenSettings
169
  */
170
  public function _fluentEditorElementSettingsPlacementCallback($placementSettings)
188
  ];
189
 
190
  $placementSettings[$this->element()] = array_merge_recursive(
191
+ $this->placementSettings($default),
192
+ $placementSettings
193
  );
194
+
195
  return $placementSettings;
196
  }
197
 
198
  /**
199
  * Configure input customization options/items in the editor.
200
+ *
201
+ * @param array $customizationSettings
202
+ *
203
  * @return array $customizationSettings
204
  */
205
  public function _fluentEditorElementCustomizationSettingsCallback($customizationSettings)
210
  /**
211
  * Prepare the submission data for the element on Form Submission.
212
  *
213
+ * @param array $formData
214
+ * @param int $formId
215
+ * @param array $inputConfigs
216
+ *
217
  * @return array $formData
218
  */
219
  public function _fluentformInsertResponseDataCallback($formData, $formId, $inputConfigs)
224
  /**
225
  * Add the component type in fluentform field
226
  * types to be available in FormFieldParser.
227
+ *
228
+ * @param array $types
229
+ *
230
  * @return array $types
231
  */
232
  public function _fluentformFormInputTypesCallback($types)
237
  /**
238
  * Render the component.
239
  *
240
+ * @param array $data
241
+ * @param \stdClass $form
242
+ *
243
  * @return void
244
  */
245
  public function _elementRenderHookCallback($item, $form)
249
 
250
  /**
251
  * Element's entry value transformation.
252
+ *
253
+ * @param mixed $value
254
+ * @param string $field
255
+ * @param int $formId
256
+ *
257
  * @return mixed $value
258
  */
259
  public function _elementEntryFormatCallback($value, $field, $formId)
app/Modules/DashboardWidgetModule.php CHANGED
@@ -38,20 +38,22 @@ class DashboardWidgetModule
38
  ?>
39
  <ul class="ff_dashboard_stats">
40
  <?php foreach ($stats as $stat): ?>
41
- <li>
42
- <a href="<?php echo admin_url('admin.php?page=fluent_forms&route=entries&form_id=' . intval($stat->form_id)); ?>">
43
- <?php echo esc_html($stat->title); ?>
44
- <span class="ff_total"><?php echo esc_attr($stat->unreadCount); ?>/<?php echo esc_attr($stat->total); ?></span>
45
- </a>
46
- </li>
 
47
  <?php endforeach; ?>
48
  </ul>
49
- <?php if ( !defined('FLUENTCRM') && !defined('FLUENTFORMPRO') ) : ?>
50
- <div class="ff_recommended_plugin">
51
- Recommended Plugin: <b>FluentCRM - Email Marketing Automation For WordPress</b> <br />
52
- <a href="<?php echo $this->getInstallUrl('fluent-crm'); ?>">Install</a>
53
- | <a target="_blank" rel="noopener" href="https://wordpress.org/plugins/fluent-crm/">Learn More</a>
54
- </div>
 
55
  <?php endif; ?>
56
  <style>
57
  ul.ff_dashboard_stats {
@@ -94,6 +96,7 @@ class DashboardWidgetModule
94
  .ff_recommended_plugin {
95
  padding: 15px 0px 0px;
96
  }
 
97
  .ff_recommended_plugin a {
98
  font-weight: bold;
99
  font-size: 110%;
38
  ?>
39
  <ul class="ff_dashboard_stats">
40
  <?php foreach ($stats as $stat): ?>
41
+ <li>
42
+ <a
43
+ href="<?php echo esc_url(admin_url('admin.php?page=fluent_forms&route=entries&form_id=' . $stat->form_id)); ?>">
44
+ <?php echo esc_html($stat->title); ?>
45
+ <span class="ff_total"><?php echo esc_attr($stat->unreadCount); ?>/<?php echo esc_attr($stat->total); ?></span>
46
+ </a>
47
+ </li>
48
  <?php endforeach; ?>
49
  </ul>
50
+ <?php if (!defined('FLUENTCRM') && !defined('FLUENTFORMPRO')) : ?>
51
+ <div class="ff_recommended_plugin">
52
+ Recommended Plugin: <b>FluentCRM - Email Marketing Automation For WordPress</b> <br />
53
+ <a
54
+ href="<?php echo esc_url($this->getInstallUrl('fluent-crm')); ?>">Install</a>
55
+ | <a target="_blank" rel="noopener" href="https://wordpress.org/plugins/fluent-crm/">Learn More</a>
56
+ </div>
57
  <?php endif; ?>
58
  <style>
59
  ul.ff_dashboard_stats {
96
  .ff_recommended_plugin {
97
  padding: 15px 0px 0px;
98
  }
99
+
100
  .ff_recommended_plugin a {
101
  font-weight: bold;
102
  font-size: 110%;
app/Modules/Deactivator.php CHANGED
@@ -4,18 +4,19 @@ namespace FluentForm\App\Modules;
4
 
5
  class Deactivator
6
  {
7
- /**
8
- * This method will be called on plugin deactivation
9
- * @return void
10
- */
11
- public function handleDeactivation()
12
- {
13
- self::disableCronSchedule();
14
- }
 
15
 
16
  public static function disableCronSchedule()
17
  {
18
  wp_clear_scheduled_hook('fluentform_do_scheduled_tasks');
19
  wp_clear_scheduled_hook('fluentform_do_email_report_scheduled_tasks');
20
  }
21
- }
4
 
5
  class Deactivator
6
  {
7
+ /**
8
+ * This method will be called on plugin deactivation
9
+ *
10
+ * @return void
11
+ */
12
+ public function handleDeactivation()
13
+ {
14
+ self::disableCronSchedule();
15
+ }
16
 
17
  public static function disableCronSchedule()
18
  {
19
  wp_clear_scheduled_hook('fluentform_do_scheduled_tasks');
20
  wp_clear_scheduled_hook('fluentform_do_email_report_scheduled_tasks');
21
  }
22
+ }
app/Modules/DocumentationModule.php CHANGED
@@ -1,67 +1,68 @@
1
- <?php namespace FluentForm\App\Modules;
 
 
2
 
3
  use FluentForm\App;
4
  use FluentForm\View;
5
 
6
  class DocumentationModule
7
  {
8
-
9
- public function render()
10
- {
11
- return View::make('admin.docs.index', array(
12
- 'icon_path_url' => App::publicUrl(),
13
- 'user_guides' => $this->getUserGuides()
14
- ));
15
- }
16
-
17
- private function getUserGuides()
18
- {
19
- $guides = array(
20
- array(
21
- 'title' => __('Adding a new form', 'fluentform'),
22
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/create-fluent-form/'
23
- ),
24
- array(
25
- 'title' => __('Setting up form submission confirmation', 'fluentform'),
26
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/submission-confirmation-message/'
27
- ),
28
- array(
29
- 'title' => __('Form layout settings', 'fluentform'),
30
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/form-layout-settings/'
31
- ),
32
- array(
33
- 'title' => __('Conditional logics', 'fluentform'),
34
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/conditional-logic-fluent-form/'
35
- ),
36
- array(
37
- 'title' => __('Managing form submissions', 'fluentform'),
38
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/view-submitted-form-data-in-wp-fluent-forms/view-manage-submitted-form-entries/'
39
- ),
40
- array(
41
- 'title' => __('Setting up email notifications', 'fluentform'),
42
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/email-notification/'
43
- ),
44
- array(
45
- 'title' => __('Mailchimp integration', 'fluentform'),
46
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/integrations-availabel-in-wp-fluent-form/mailchimp-integration/'
47
- ),
48
- array(
49
- 'title' => __('Slack integration', 'fluentform'),
50
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/integrations-availabel-in-wp-fluent-form/slack-integration-fluentform/'
51
- ),
52
- array(
53
- 'title' => __('Form restrictions and scheduling', 'fluentform'),
54
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/form-restrictions/'
55
- ),
56
- array(
57
- 'title' => __('Setup conditional confirmation messages', 'fluentform'),
58
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/conditional-confirmation-wp-fluent-form/'
59
- ),
60
- array(
61
- 'title' => __('Predefined form fields', 'fluentform'),
62
- 'link' => 'https://wpmanageninja.com/docs/fluent-form/field-types/'
63
- ),
64
- );
65
- return apply_filters('fluentform_user_guide_links', $guides);
66
- }
67
  }
1
+ <?php
2
+
3
+ namespace FluentForm\App\Modules;
4
 
5
  use FluentForm\App;
6
  use FluentForm\View;
7
 
8
  class DocumentationModule
9
  {
10
+ public function render()
11
+ {
12
+ View::render('admin.docs.index', [
13
+ 'icon_path_url' => App::publicUrl(),
14
+ 'user_guides' => $this->getUserGuides(),
15
+ ]);
16
+ }
17
+
18
+ private function getUserGuides()
19
+ {
20
+ $guides = [
21
+ [
22
+ 'title' => __('Adding a new form', 'fluentform'),
23
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/create-fluent-form/',
24
+ ],
25
+ [
26
+ 'title' => __('Setting up form submission confirmation', 'fluentform'),
27
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/submission-confirmation-message/',
28
+ ],
29
+ [
30
+ 'title' => __('Form layout settings', 'fluentform'),
31
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/form-layout-settings/',
32
+ ],
33
+ [
34
+ 'title' => __('Conditional logics', 'fluentform'),
35
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/conditional-logic-fluent-form/',
36
+ ],
37
+ [
38
+ 'title' => __('Managing form submissions', 'fluentform'),
39
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/view-submitted-form-data-in-wp-fluent-forms/view-manage-submitted-form-entries/',
40
+ ],
41
+ [
42
+ 'title' => __('Setting up email notifications', 'fluentform'),
43
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/getting-started/email-notification/',
44
+ ],
45
+ [
46
+ 'title' => __('Mailchimp integration', 'fluentform'),
47
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/integrations-availabel-in-wp-fluent-form/mailchimp-integration/',
48
+ ],
49
+ [
50
+ 'title' => __('Slack integration', 'fluentform'),
51
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/integrations-availabel-in-wp-fluent-form/slack-integration-fluentform/',
52
+ ],
53
+ [
54
+ 'title' => __('Form restrictions and scheduling', 'fluentform'),
55
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/form-restrictions/',
56
+ ],
57
+ [
58
+ 'title' => __('Setup conditional confirmation messages', 'fluentform'),
59
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/advanced-features-functionalities-in-wp-fluent-form/conditional-confirmation-wp-fluent-form/',
60
+ ],
61
+ [
62
+ 'title' => __('Predefined form fields', 'fluentform'),
63
+ 'link' => 'https://wpmanageninja.com/docs/fluent-form/field-types/',
64
+ ],
65
+ ];
66
+ return apply_filters('fluentform_user_guide_links', $guides);
67
+ }
 
68
  }
app/Modules/EditorButtonModule.php CHANGED
@@ -1,4 +1,6 @@
1
- <?php namespace FluentForm\App\Modules;
 
 
2
 
3
  use FluentForm\App;
4
  use FluentForm\Config;
@@ -8,62 +10,62 @@ use FluentForm\View;
8
 
9
  class EditorButtonModule
10
  {
11
- public function addButton()
12
- {
13
- if (! $this->pageSupportedMediaButtons()) {
14
- return;
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
- $this->addMceButtonAssets();
 
 
18
 
19
- $label = __('Add Form', 'fluentform');
20
- $url = App::publicUrl('img/icon_black_small.png');
21
- echo "<button id='fluent_form_insert_button' class='button'><span style='background-image: url({$url}); width: 16px;height: 16px;background-repeat: no-repeat;display: inline-block;background-size: contain;opacity: 0.4;margin-right: 5px;vertical-align: middle;'></span>{$label}</button>";
22
- }
23
-
24
- private function addMceButtonAssets()
25
- {
26
- wp_enqueue_script(
27
- 'fluentform_editor_script',
28
- fluentformMix('js/fluentform_editor_script.js'),
29
- array('jquery'),
30
- FLUENTFORM_VERSION
31
- );
32
 
33
- $forms = wpFluent()->table('fluentform_forms')
34
- ->select(array('id', 'title'))
35
- ->get();
36
-
37
- $forms = array_map(function($item) {
38
- return array('value' => $item->id, 'text'=> $item->title);
39
- }, $forms);
40
 
41
- wp_localize_script('fluentform_editor_script', 'fluentform_editor_vars', array(
42
- 'forms' => $forms
43
- ));
44
- }
45
-
46
- private function pageSupportedMediaButtons()
47
- {
48
- $currentPage = basename( $_SERVER['PHP_SELF'] );
49
- $isEligiblePage = in_array( $currentPage, array(
50
- 'post.php',
51
- 'page.php',
52
- 'page-new.php',
53
- 'post-new.php',
54
- 'customize.php',
55
- ));
56
 
57
- if ($isEligiblePage) {
58
  $option = get_option('_fluentform_global_form_settings');
59
- $isEligiblePage = ArrayHelper::get($option, 'misc.classicEditorButton') == 'yes';
60
  }
61
 
62
- return apply_filters( 'fluentform_display_add_form_button', $isEligiblePage );
63
- }
64
 
65
- private function getMenuIcon()
66
- {
67
- return 'data:image/svg+xml;base64,'.base64_encode('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><defs><style>.cls-1{fill:#fff;}</style></defs><title>dashboard_icon</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M15.57,0H4.43A4.43,4.43,0,0,0,0,4.43V15.57A4.43,4.43,0,0,0,4.43,20H15.57A4.43,4.43,0,0,0,20,15.57V4.43A4.43,4.43,0,0,0,15.57,0ZM12.82,14a2.36,2.36,0,0,1-1.66.68H6.5A2.31,2.31,0,0,1,7.18,13a2.36,2.36,0,0,1,1.66-.68l4.66,0A2.34,2.34,0,0,1,12.82,14Zm3.3-3.46a2.36,2.36,0,0,1-1.66.68H3.21a2.25,2.25,0,0,1,.68-1.64,2.36,2.36,0,0,1,1.66-.68H16.79A2.25,2.25,0,0,1,16.12,10.53Zm0-3.73a2.36,2.36,0,0,1-1.66.68H3.21a2.25,2.25,0,0,1,.68-1.64,2.36,2.36,0,0,1,1.66-.68H16.79A2.25,2.25,0,0,1,16.12,6.81Z"/></g></g></svg>');
68
- }
69
  }
1
+ <?php
2
+
3
+ namespace FluentForm\App\Modules;
4
 
5
  use FluentForm\App;
6
  use FluentForm\Config;
10
 
11
  class EditorButtonModule
12
  {
13
+ public function addButton()
14
+ {
15
+ if (! $this->pageSupportedMediaButtons()) {
16
+ return;
17
+ }
18
+
19
+ $this->addMceButtonAssets();
20
+
21
+ $url = App::publicUrl('img/icon_black_small.png');
22
+
23
+ echo "<button id='fluent_form_insert_button' class='button'><span style='background-image: url(" . esc_url($url) . "); width: 16px;height: 16px;background-repeat: no-repeat;display: inline-block;background-size: contain;opacity: 0.4;margin-right: 5px;vertical-align: middle;'></span>" . __('Add Form', 'fluentform') . '</button>';
24
+ }
25
+
26
+ private function addMceButtonAssets()
27
+ {
28
+ wp_enqueue_script(
29
+ 'fluentform_editor_script',
30
+ fluentformMix('js/fluentform_editor_script.js'),
31
+ ['jquery'],
32
+ FLUENTFORM_VERSION
33
+ );
34
 
35
+ $forms = wpFluent()->table('fluentform_forms')
36
+ ->select(['id', 'title'])
37
+ ->get();
38
 
39
+ $forms = array_map(function ($item) {
40
+ return ['value' => $item->id, 'text' => $item->title];
41
+ }, $forms);
 
 
 
 
 
 
 
 
 
 
42
 
43
+ wp_localize_script('fluentform_editor_script', 'fluentform_editor_vars', [
44
+ 'forms' => $forms,
45
+ ]);
46
+ }
 
 
 
47
 
48
+ private function pageSupportedMediaButtons()
49
+ {
50
+ $currentPage = basename(sanitize_text_field(wpFluentForm('request')->server('PHP_SELF')));
51
+ $isEligiblePage = in_array($currentPage, [
52
+ 'post.php',
53
+ 'page.php',
54
+ 'page-new.php',
55
+ 'post-new.php',
56
+ 'customize.php',
57
+ ]);
 
 
 
 
 
58
 
59
+ if ($isEligiblePage) {
60
  $option = get_option('_fluentform_global_form_settings');
61
+ $isEligiblePage = 'yes' == ArrayHelper::get($option, 'misc.classicEditorButton');
62
  }
63
 
64
+ return apply_filters('fluentform_display_add_form_button', $isEligiblePage);
65
+ }
66
 
67
+ private function getMenuIcon()
68
+ {
69
+ return 'data:image/svg+xml;base64,' . base64_encode('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><defs><style>.cls-1{fill:#fff;}</style></defs><title>dashboard_icon</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M15.57,0H4.43A4.43,4.43,0,0,0,0,4.43V15.57A4.43,4.43,0,0,0,4.43,20H15.57A4.43,4.43,0,0,0,20,15.57V4.43A4.43,4.43,0,0,0,15.57,0ZM12.82,14a2.36,2.36,0,0,1-1.66.68H6.5A2.31,2.31,0,0,1,7.18,13a2.36,2.36,0,0,1,1.66-.68l4.66,0A2.34,2.34,0,0,1,12.82,14Zm3.3-3.46a2.36,2.36,0,0,1-1.66.68H3.21a2.25,2.25,0,0,1,.68-1.64,2.36,2.36,0,0,1,1.66-.68H16.79A2.25,2.25,0,0,1,16.12,10.53Zm0-3.73a2.36,2.36,0,0,1-1.66.68H3.21a2.25,2.25,0,0,1,.68-1.64,2.36,2.36,0,0,1,1.66-.68H16.79A2.25,2.25,0,0,1,16.12,6.81Z"/></g></g></svg>');
70
+ }
71
  }
app/Modules/Entries/Entries.php CHANGED
@@ -34,7 +34,6 @@ class Entries extends EntryQuery
34
  {
35
  $formId = intval($this->request->get('form_id'));
36
 
37
-
38
  $limit = $this->request->get('per_page', 10);
39
  $page = $this->request->get('page', 1);
40
  $offset = ($page - 1) * $limit;
@@ -68,7 +67,6 @@ class Entries extends EntryQuery
68
  $query->where('fluentform_submissions.status', '!=', 'trashed');
69
  }
70
 
71
-
72
  $dateRange = $this->request->get('date_range');
73
  if ($dateRange) {
74
  $query->where('fluentform_submissions.created_at', '>=', $dateRange[0] . ' 00:00:01');
@@ -88,10 +86,10 @@ class Entries extends EntryQuery
88
  $entry->human_date = human_time_diff(strtotime($entry->created_at), strtotime(current_time('mysql')));
89
  }
90
  wp_send_json_success([
91
- 'entries' => $entries,
92
- 'total' => $total,
93
- 'last_page' => ceil($total / $limit),
94
- 'available_forms' => $this->getAvailableForms()
95
  ]);
96
  }
97
 
@@ -109,10 +107,8 @@ class Entries extends EntryQuery
109
  if (!empty($ranges[1])) {
110
  $time = strtotime($ranges[1]) + 24 * 60 * 60;
111
  $to = date('Y-m-d H:i:s', $time);
112
-
113
  }
114
 
115
-
116
  $period = new \DatePeriod(new \DateTime($from), new \DateInterval('P1D'), new \DateTime($to));
117
 
118
  $range = [];
@@ -141,9 +137,8 @@ class Entries extends EntryQuery
141
  }
142
 
143
  wp_send_json_success([
144
- 'stats' => $range
145
  ]);
146
-
147
  }
148
 
149
  public function renderEntries($form_id)
@@ -168,13 +163,12 @@ class Entries extends EntryQuery
168
  $value = \json_decode($notification->value, true);
169
  $formattedNotification[] = [
170
  'id' => $notification->id,
171
- 'name' => ArrayHelper::get($value, 'name')
172
  ];
173
  }
174
 
175
  $form = wpFluent()->table('fluentform_forms')->find($form_id);
176
 
177
-
178
  $app = wpFluentForm();
179
 
180
  $fluentFormEntriesVars = apply_filters('fluent_form_entries_vars', [
@@ -192,17 +186,19 @@ class Entries extends EntryQuery
192
  'available_countries' => $app->load(
193
  $app->appPath('Services/FormBuilder/CountryNames.php')
194
  ),
195
- 'upgrade_url' => fluentform_upgrade_url(),
196
- 'form_entries_str' => TranslationString::getEntriesI18n(),
197
  ], $form);
198
 
199
  wp_localize_script(
200
- 'fluentform_form_entries', 'fluent_form_entries_vars', $fluentFormEntriesVars
 
 
201
  );
202
 
203
  View::render('admin.form.entries', [
204
  'form_id' => $form_id,
205
- 'has_pdf' => defined('FLUENTFORM_PDF_VERSION') ? 'true' : 'false'
206
  ]);
207
  }
208
 
@@ -211,7 +207,7 @@ class Entries extends EntryQuery
211
  $formId = intval($this->request->get('form_id'));
212
  $counts = $this->groupCount($formId);
213
  wp_send_json_success([
214
- 'counts' => $counts
215
  ], 200);
216
  }
217
 
@@ -223,8 +219,7 @@ class Entries extends EntryQuery
223
  $entryType,
224
  $search,
225
  $wheres = []
226
- )
227
- {
228
  $this->formId = $formId;
229
  $this->per_page = $perPage;
230
  $this->sort_by = $sortBy;
@@ -232,9 +227,9 @@ class Entries extends EntryQuery
232
  $this->search = $search;
233
  $this->wheres = $wheres;
234
 
235
- if ($entryType == 'favorite') {
236
  $this->is_favourite = true;
237
- } elseif ($entryType != 'all' && $entryType) {
238
  $this->status = $entryType;
239
  }
240
 
@@ -278,27 +273,31 @@ class Entries extends EntryQuery
278
  $wheres
279
  );
280
 
281
-
282
  $labels = apply_filters(
283
- 'fluentform_all_entry_labels', $entries['formLabels'], $this->request->get('form_id')
 
 
284
  );
285
 
286
  $form = $this->formModel->find($this->request->get('form_id'));
287
 
288
  if ($form->has_payment) {
289
  $labels = apply_filters(
290
- 'fluentform_all_entry_labels_with_payment', $entries['formLabels'], false, $form
 
 
 
291
  );
292
  }
293
  $formId = $this->request->get('form_id');
294
- $visible_columns = Helper::getFormMeta($formId, '_visible_columns', NULL);
295
- $columns_order = Helper::getFormMeta($formId, '_columns_order', NULL);
296
 
297
  wp_send_json_success([
298
  'submissions' => apply_filters('fluentform_all_entries', $entries['submissions']),
299
  'labels' => $labels,
300
  'visible_columns' => $visible_columns,
301
- 'columns_order' => $columns_order
302
  ], 200);
303
  }
304
 
@@ -310,9 +309,9 @@ class Entries extends EntryQuery
310
 
311
  $entry_type = sanitize_key($this->request->get('entry_type', 'all'));
312
 
313
- if ($entry_type === 'favorite') {
314
  $this->is_favourite = true;
315
- } elseif ($entry_type !== 'all') {
316
  $this->status = $entry_type;
317
  }
318
 
@@ -324,17 +323,17 @@ class Entries extends EntryQuery
324
 
325
  if (!$submission) {
326
  wp_send_json_error([
327
- 'message' => 'No Entry found.'
328
  ], 422);
329
  }
330
 
331
  $form = $this->formModel->find($this->formId);
332
 
333
- if ($submission->status == 'unread' && apply_filters('fluentform_auto_read', true, $form)) {
334
  wpFluent()->table('fluentform_submissions')
335
  ->where('id', $entryId)
336
  ->update([
337
- 'status' => 'read'
338
  ]);
339
 
340
  $submission->status = 'read';
@@ -350,7 +349,7 @@ class Entries extends EntryQuery
350
  'name' => $user->display_name,
351
  'email' => $user->user_email,
352
  'ID' => $user->ID,
353
- 'permalink' => get_edit_user_link($user->ID)
354
  ];
355
  $submission->user = $user_data;
356
  }
@@ -358,22 +357,32 @@ class Entries extends EntryQuery
358
  $submission = apply_filters('fluentform_single_response_data', $submission, $this->formId);
359
 
360
  $fields = apply_filters(
361
- 'fluentform_single_response_input_fields', $formMeta['inputs'], $this->formId
 
 
362
  );
363
 
364
  $labels = apply_filters(
365
- 'fluentform_single_response_input_labels', $formMeta['labels'], $this->formId
 
 
366
  );
367
 
368
  $order_data = false;
369
 
370
- if ($submission->payment_status || $submission->payment_total || $submission->payment_type === 'subscription') {
371
  $order_data = apply_filters(
372
- 'fluentform_submission_order_data', false, $submission, $form
 
 
 
373
  );
374
 
375
  $labels = apply_filters(
376
- 'fluentform_submission_entry_labels_with_payment', $labels, $submission, $form
 
 
 
377
  );
378
  }
379
 
@@ -387,7 +396,7 @@ class Entries extends EntryQuery
387
  'prev' => $previousSubmissionId,
388
  'labels' => $labels,
389
  'fields' => $fields,
390
- 'order_data' => $order_data
391
  ];
392
  }
393
 
@@ -396,7 +405,7 @@ class Entries extends EntryQuery
396
  if (!defined('FLUENTFORM_RENDERING_ENTRY')) {
397
  define('FLUENTFORM_RENDERING_ENTRY', true);
398
  }
399
-
400
  $entryData = $this->_getEntry();
401
 
402
  $entryData['widgets'] = apply_filters('fluentform_single_entry_widgets', [], $entryData);
@@ -410,6 +419,7 @@ class Entries extends EntryQuery
410
  * @param array $with
411
  *
412
  * @return array
 
413
  * @todo: Implement Caching mechanism so we don't have to parse these things for every request
414
  */
415
  public function getFormInputsAndLabels($form, $with = ['admin_label', 'raw'])
@@ -418,7 +428,7 @@ class Entries extends EntryQuery
418
  $inputLabels = FormFieldsParser::getAdminLabels($form, $formInputs);
419
  return [
420
  'inputs' => $formInputs,
421
- 'labels' => $inputLabels
422
  ];
423
  }
424
 
@@ -426,7 +436,7 @@ class Entries extends EntryQuery
426
  {
427
  $formId = intval($this->request->get('form_id'));
428
  $entry_id = intval($this->request->get('entry_id'));
429
- $apiLog = sanitize_text_field($this->request->get('api_log')) == 'yes';
430
 
431
  $metaKeys = ['_notes'];
432
 
@@ -458,7 +468,7 @@ class Entries extends EntryQuery
458
  $notes = apply_filters('fluentform_entry_notes', $notes, $entry_id, $formId);
459
 
460
  wp_send_json_success([
461
- 'notes' => $notes
462
  ], 200);
463
  }
464
 
@@ -480,7 +490,7 @@ class Entries extends EntryQuery
480
  'user_id' => $user->ID,
481
  'name' => $user->display_name,
482
  'created_at' => current_time('mysql'),
483
- 'updated_at' => current_time('mysql')
484
  ];
485
 
486
  $response_note = apply_filters('fluentform_add_response_note', $response_note);
@@ -494,7 +504,7 @@ class Entries extends EntryQuery
494
  wp_send_json_success([
495
  'message' => __('Note has been successfully added', 'fluentform'),
496
  'note' => $added_note,
497
- 'insert_id' => $insertId
498
  ], 200);
499
  }
500
 
@@ -511,7 +521,7 @@ class Entries extends EntryQuery
511
 
512
  wp_send_json_success([
513
  'message' => __('Item has been marked as ' . $newStatus, 'fluentform'),
514
- 'status' => $newStatus
515
  ], 200);
516
  }
517
 
@@ -525,7 +535,7 @@ class Entries extends EntryQuery
525
 
526
  wp_send_json_success([
527
  'message' => __('Item Successfully deleted', 'fluentform'),
528
- 'status' => $newStatus
529
  ], 200);
530
  }
531
 
@@ -574,7 +584,6 @@ class Entries extends EntryQuery
574
  ->where('submission_id', $entryId)
575
  ->delete();
576
 
577
-
578
  wpFluent()->table('fluentform_transactions')
579
  ->where('submission_id', $entryId)
580
  ->delete();
@@ -587,16 +596,13 @@ class Entries extends EntryQuery
587
  ->where('origin_id', $entryId)
588
  ->where('type', 'submission_action')
589
  ->delete();
590
-
591
  } catch (\Exception $exception) {
592
  // ...
593
  }
594
  }
595
 
596
-
597
  $errors = ob_get_clean();
598
 
599
-
600
  do_action('fluentform_after_entry_deleted', $entryId, $formId);
601
 
602
  return true;
@@ -622,7 +628,6 @@ class Entries extends EntryQuery
622
  } else {
623
  $deletableFiles = $files;
624
  }
625
-
626
  }
627
  }
628
  }
@@ -647,7 +652,7 @@ class Entries extends EntryQuery
647
 
648
  wp_send_json_success([
649
  'message' => $message,
650
- 'is_favourite' => $newStatus
651
  ], 200);
652
  }
653
 
@@ -663,7 +668,7 @@ class Entries extends EntryQuery
663
 
664
  if (!$formId || !count($entries)) {
665
  wp_send_json_error([
666
- 'message' => __('Please select entries first', 'fluentform')
667
  ], 400);
668
  }
669
 
@@ -675,36 +680,35 @@ class Entries extends EntryQuery
675
  // it's status change
676
  $bulkQuery->update([
677
  'status' => $actionType,
678
- 'updated_at' => current_time('mysql')
679
  ]);
680
 
681
  wp_send_json_success([
682
- 'message' => 'Selected entries successfully marked as ' . $statuses[$actionType]
683
  ], 200);
684
  }
685
 
686
  // now other action handler
687
- if ($actionType == 'other.delete_permanently') {
688
  $form = wpFluent()->table('fluentform_forms')->find($formId);
689
  foreach ($entries as $entryId) {
690
  $this->deleteEntryById($entryId, $form);
691
  }
692
  $message = __('Selected entries successfully deleted', 'fluentform');
693
-
694
- } elseif ($actionType == 'other.make_favorite') {
695
  $bulkQuery->update([
696
- 'is_favourite' => 1
697
  ]);
698
  $message = __('Selected entries successfully marked as favorites', 'fluentform');
699
- } elseif ($actionType == 'other.unmark_favorite') {
700
  $bulkQuery->update([
701
- 'is_favourite' => 0
702
  ]);
703
  $message = __('Selected entries successfully removed from favorites', 'fluentform');
704
  }
705
 
706
  wp_send_json_success([
707
- 'message' => $message
708
  ], 200);
709
  }
710
 
@@ -719,7 +723,7 @@ class Entries extends EntryQuery
719
  'cf-turnstile-response',
720
  '__stripe_payment_method_id',
721
  '__ff_all_applied_coupons',
722
- '__entry_intermediate_hash'
723
  ]);
724
 
725
  $entryItems = [];
@@ -738,7 +742,7 @@ class Entries extends EntryQuery
738
  'submission_id' => $entryId,
739
  'field_name' => trim($dataKey),
740
  'sub_field_name' => $subKey,
741
- 'field_value' => maybe_serialize($subValue)
742
  ];
743
  }
744
  } else {
@@ -747,7 +751,7 @@ class Entries extends EntryQuery
747
  'submission_id' => $entryId,
748
  'field_name' => trim($dataKey),
749
  'sub_field_name' => '',
750
- 'field_value' => $dataValue
751
  ];
752
  }
753
  }
@@ -780,7 +784,7 @@ class Entries extends EntryQuery
780
  'submission_id' => $entryId,
781
  'field_name' => $dataKey,
782
  'sub_field_name' => $subKey,
783
- 'field_value' => maybe_serialize($subValue)
784
  ];
785
  }
786
  } else {
@@ -789,7 +793,7 @@ class Entries extends EntryQuery
789
  'submission_id' => $entryId,
790
  'field_name' => $dataKey,
791
  'sub_field_name' => '',
792
- 'field_value' => $dataValue
793
  ];
794
  }
795
  }
@@ -813,7 +817,7 @@ class Entries extends EntryQuery
813
 
814
  $users = get_users([
815
  'search' => "*{$search}*",
816
- 'number' => 50
817
  ]);
818
 
819
  $formattedUsers = [];
@@ -821,12 +825,12 @@ class Entries extends EntryQuery
821
  foreach ($users as $user) {
822
  $formattedUsers[] = [
823
  'ID' => $user->ID,
824
- 'label' => $user->display_name . ' - ' . $user->user_email
825
  ];
826
  }
827
 
828
  wp_send_json_success([
829
- 'users' => $formattedUsers
830
  ]);
831
  }
832
 
@@ -837,7 +841,7 @@ class Entries extends EntryQuery
837
 
838
  if (!$userId || !$submissionId) {
839
  wp_send_json_error([
840
- 'message' => __('Submission ID and User ID is required', 'fluentform')
841
  ], 423);
842
  }
843
 
@@ -847,7 +851,7 @@ class Entries extends EntryQuery
847
 
848
  if (!$submission || $submission->user_id == $userId || !$user) {
849
  wp_send_json_error([
850
- 'message' => __('Invalid Request', 'fluentform')
851
  ], 423);
852
  }
853
 
@@ -855,7 +859,7 @@ class Entries extends EntryQuery
855
  ->where('id', $submission->id)
856
  ->update([
857
  'user_id' => $userId,
858
- 'updated_at' => current_time('mysql')
859
  ]);
860
 
861
  if (defined('FLUENTFORMPRO')) {
@@ -864,7 +868,7 @@ class Entries extends EntryQuery
864
  ->where('submission_id', $submission->id)
865
  ->update([
866
  'user_id' => $userId,
867
- 'updated_at' => current_time('mysql')
868
  ]);
869
  }
870
 
@@ -874,7 +878,7 @@ class Entries extends EntryQuery
874
  'source_id' => $submission->id,
875
  'component' => 'General',
876
  'status' => 'info',
877
- 'title' => 'Associate user has been changed from '.$submission->user_id .' to '.$userId
878
  ]);
879
 
880
  do_action('fluentform_submission_user_changed', $submission, $user);
@@ -885,29 +889,27 @@ class Entries extends EntryQuery
885
  'name' => $user->display_name,
886
  'email' => $user->user_email,
887
  'ID' => $user->ID,
888
- 'permalink' => get_edit_user_link($user->ID)
889
  ],
890
- 'user_id' => $userId
891
  ]);
892
  }
893
 
894
  public function getAvailableForms()
895
  {
896
-
897
  $forms = wpFluent()->table('fluentform_forms')
898
- ->select(array('id', 'title'))
899
  ->orderBy('id', 'DESC')
900
  ->get();
901
 
902
  $formattedForms = [];
903
  foreach ($forms as $form) {
904
  $formattedForms[] = [
905
- 'id' => $form->id,
906
- 'title' => $form->title
907
  ];
908
  }
909
 
910
  return $formattedForms;
911
-
912
  }
913
  }
34
  {
35
  $formId = intval($this->request->get('form_id'));
36
 
 
37
  $limit = $this->request->get('per_page', 10);
38
  $page = $this->request->get('page', 1);
39
  $offset = ($page - 1) * $limit;
67
  $query->where('fluentform_submissions.status', '!=', 'trashed');
68
  }
69
 
 
70
  $dateRange = $this->request->get('date_range');
71
  if ($dateRange) {
72
  $query->where('fluentform_submissions.created_at', '>=', $dateRange[0] . ' 00:00:01');
86
  $entry->human_date = human_time_diff(strtotime($entry->created_at), strtotime(current_time('mysql')));
87
  }
88
  wp_send_json_success([
89
+ 'entries' => $entries,
90
+ 'total' => $total,
91
+ 'last_page' => ceil($total / $limit),
92
+ 'available_forms' => $this->getAvailableForms(),
93
  ]);
94
  }
95
 
107
  if (!empty($ranges[1])) {
108
  $time = strtotime($ranges[1]) + 24 * 60 * 60;
109
  $to = date('Y-m-d H:i:s', $time);
 
110
  }
111
 
 
112
  $period = new \DatePeriod(new \DateTime($from), new \DateInterval('P1D'), new \DateTime($to));
113
 
114
  $range = [];
137
  }
138
 
139
  wp_send_json_success([
140
+ 'stats' => $range,
141
  ]);
 
142
  }
143
 
144
  public function renderEntries($form_id)
163
  $value = \json_decode($notification->value, true);
164
  $formattedNotification[] = [
165
  'id' => $notification->id,
166
+ 'name' => ArrayHelper::get($value, 'name'),
167
  ];
168
  }
169
 
170
  $form = wpFluent()->table('fluentform_forms')->find($form_id);
171
 
 
172
  $app = wpFluentForm();
173
 
174
  $fluentFormEntriesVars = apply_filters('fluent_form_entries_vars', [
186
  'available_countries' => $app->load(
187
  $app->appPath('Services/FormBuilder/CountryNames.php')
188
  ),
189
+ 'upgrade_url' => fluentform_upgrade_url(),
190
+ 'form_entries_str' => TranslationString::getEntriesI18n(),
191
  ], $form);
192
 
193
  wp_localize_script(
194
+ 'fluentform_form_entries',
195
+ 'fluent_form_entries_vars',
196
+ $fluentFormEntriesVars
197
  );
198
 
199
  View::render('admin.form.entries', [
200
  'form_id' => $form_id,
201
+ 'has_pdf' => defined('FLUENTFORM_PDF_VERSION') ? 'true' : 'false',
202
  ]);
203
  }
204
 
207
  $formId = intval($this->request->get('form_id'));
208
  $counts = $this->groupCount($formId);
209
  wp_send_json_success([
210
+ 'counts' => $counts,
211
  ], 200);
212
  }
213
 
219
  $entryType,
220
  $search,
221
  $wheres = []
222
+ ) {
 
223
  $this->formId = $formId;
224
  $this->per_page = $perPage;
225
  $this->sort_by = $sortBy;
227
  $this->search = $search;
228
  $this->wheres = $wheres;
229
 
230
+ if ('favorite' == $entryType) {
231
  $this->is_favourite = true;
232
+ } elseif ('all' != $entryType && $entryType) {
233
  $this->status = $entryType;
234
  }
235
 
273
  $wheres
274
  );
275
 
 
276
  $labels = apply_filters(
277
+ 'fluentform_all_entry_labels',
278
+ $entries['formLabels'],
279
+ $this->request->get('form_id')
280
  );
281
 
282
  $form = $this->formModel->find($this->request->get('form_id'));
283
 
284
  if ($form->has_payment) {
285
  $labels = apply_filters(
286
+ 'fluentform_all_entry_labels_with_payment',
287
+ $entries['formLabels'],
288
+ false,
289
+ $form
290
  );
291
  }
292
  $formId = $this->request->get('form_id');
293
+ $visible_columns = Helper::getFormMeta($formId, '_visible_columns', null);
294
+ $columns_order = Helper::getFormMeta($formId, '_columns_order', null);
295
 
296
  wp_send_json_success([
297
  'submissions' => apply_filters('fluentform_all_entries', $entries['submissions']),
298
  'labels' => $labels,
299
  'visible_columns' => $visible_columns,
300
+ 'columns_order' => $columns_order,
301
  ], 200);
302
  }
303
 
309
 
310
  $entry_type = sanitize_key($this->request->get('entry_type', 'all'));
311
 
312
+ if ('favorite' === $entry_type) {
313
  $this->is_favourite = true;
314
+ } elseif ('all' !== $entry_type) {
315
  $this->status = $entry_type;
316
  }
317
 
323
 
324
  if (!$submission) {
325
  wp_send_json_error([
326
+ 'message' => 'No Entry found.',
327
  ], 422);
328
  }
329
 
330
  $form = $this->formModel->find($this->formId);
331
 
332
+ if ('unread' == $submission->status && apply_filters('fluentform_auto_read', true, $form)) {
333
  wpFluent()->table('fluentform_submissions')
334
  ->where('id', $entryId)
335
  ->update([
336
+ 'status' => 'read',
337
  ]);
338
 
339
  $submission->status = 'read';
349
  'name' => $user->display_name,
350
  'email' => $user->user_email,
351
  'ID' => $user->ID,
352
+ 'permalink' => get_edit_user_link($user->ID),
353
  ];
354
  $submission->user = $user_data;
355
  }
357
  $submission = apply_filters('fluentform_single_response_data', $submission, $this->formId);
358
 
359
  $fields = apply_filters(
360
+ 'fluentform_single_response_input_fields',
361
+ $formMeta['inputs'],
362
+ $this->formId
363
  );
364
 
365
  $labels = apply_filters(
366
+ 'fluentform_single_response_input_labels',
367
+ $formMeta['labels'],
368
+ $this->formId
369
  );
370
 
371
  $order_data = false;
372
 
373
+ if ($submission->payment_status || $submission->payment_total || 'subscription' === $submission->payment_type) {
374
  $order_data = apply_filters(
375
+ 'fluentform_submission_order_data',
376
+ false,
377
+ $submission,
378
+ $form
379
  );
380
 
381
  $labels = apply_filters(
382
+ 'fluentform_submission_entry_labels_with_payment',
383
+ $labels,
384
+ $submission,
385
+ $form
386
  );
387
  }
388
 
396
  'prev' => $previousSubmissionId,
397
  'labels' => $labels,
398
  'fields' => $fields,
399
+ 'order_data' => $order_data,
400
  ];
401
  }
402
 
405
  if (!defined('FLUENTFORM_RENDERING_ENTRY')) {
406
  define('FLUENTFORM_RENDERING_ENTRY', true);
407
  }
408
+
409
  $entryData = $this->_getEntry();
410
 
411
  $entryData['widgets'] = apply_filters('fluentform_single_entry_widgets', [], $entryData);
419
  * @param array $with
420
  *
421
  * @return array
422
+ *
423
  * @todo: Implement Caching mechanism so we don't have to parse these things for every request
424
  */
425
  public function getFormInputsAndLabels($form, $with = ['admin_label', 'raw'])
428
  $inputLabels = FormFieldsParser::getAdminLabels($form, $formInputs);
429
  return [
430
  'inputs' => $formInputs,
431
+ 'labels' => $inputLabels,
432
  ];
433
  }
434
 
436
  {
437
  $formId = intval($this->request->get('form_id'));
438
  $entry_id = intval($this->request->get('entry_id'));
439
+ $apiLog = 'yes' == sanitize_text_field($this->request->get('api_log'));
440
 
441
  $metaKeys = ['_notes'];
442
 
468
  $notes = apply_filters('fluentform_entry_notes', $notes, $entry_id, $formId);
469
 
470
  wp_send_json_success([
471
+ 'notes' => $notes,
472
  ], 200);
473
  }
474
 
490
  'user_id' => $user->ID,
491
  'name' => $user->display_name,
492
  'created_at' => current_time('mysql'),
493
+ 'updated_at' => current_time('mysql'),
494
  ];
495
 
496
  $response_note = apply_filters('fluentform_add_response_note', $response_note);
504
  wp_send_json_success([
505
  'message' => __('Note has been successfully added', 'fluentform'),
506
  'note' => $added_note,
507
+ 'insert_id' => $insertId,
508
  ], 200);
509
  }
510
 
521
 
522
  wp_send_json_success([
523
  'message' => __('Item has been marked as ' . $newStatus, 'fluentform'),
524
+ 'status' => $newStatus,
525
  ], 200);
526
  }
527
 
535
 
536
  wp_send_json_success([
537
  'message' => __('Item Successfully deleted', 'fluentform'),
538
+ 'status' => $newStatus,
539
  ], 200);
540
  }
541
 
584
  ->where('submission_id', $entryId)
585
  ->delete();
586
 
 
587
  wpFluent()->table('fluentform_transactions')
588
  ->where('submission_id', $entryId)
589
  ->delete();
596
  ->where('origin_id', $entryId)
597
  ->where('type', 'submission_action')
598
  ->delete();
 
599
  } catch (\Exception $exception) {
600
  // ...
601
  }
602
  }
603
 
 
604
  $errors = ob_get_clean();
605
 
 
606
  do_action('fluentform_after_entry_deleted', $entryId, $formId);
607
 
608
  return true;
628
  } else {
629
  $deletableFiles = $files;
630
  }
 
631
  }
632
  }
633
  }
652
 
653
  wp_send_json_success([
654
  'message' => $message,
655
+ 'is_favourite' => $newStatus,
656
  ], 200);
657
  }
658
 
668
 
669
  if (!$formId || !count($entries)) {
670
  wp_send_json_error([
671
+ 'message' => __('Please select entries first', 'fluentform'),
672
  ], 400);
673
  }
674
 
680
  // it's status change
681
  $bulkQuery->update([
682
  'status' => $actionType,
683
+ 'updated_at' => current_time('mysql'),
684
  ]);
685
 
686
  wp_send_json_success([
687
+ 'message' => 'Selected entries successfully marked as ' . $statuses[$actionType],
688
  ], 200);
689
  }
690
 
691
  // now other action handler
692
+ if ('other.delete_permanently' == $actionType) {
693
  $form = wpFluent()->table('fluentform_forms')->find($formId);
694
  foreach ($entries as $entryId) {
695
  $this->deleteEntryById($entryId, $form);
696
  }
697
  $message = __('Selected entries successfully deleted', 'fluentform');
698
+ } elseif ('other.make_favorite' == $actionType) {
 
699
  $bulkQuery->update([
700
+ 'is_favourite' => 1,
701
  ]);
702
  $message = __('Selected entries successfully marked as favorites', 'fluentform');
703
+ } elseif ('other.unmark_favorite' == $actionType) {
704
  $bulkQuery->update([
705
+ 'is_favourite' => 0,
706
  ]);
707
  $message = __('Selected entries successfully removed from favorites', 'fluentform');
708
  }
709
 
710
  wp_send_json_success([
711
+ 'message' => $message,
712
  ], 200);
713
  }
714
 
723
  'cf-turnstile-response',
724
  '__stripe_payment_method_id',
725
  '__ff_all_applied_coupons',
726
+ '__entry_intermediate_hash',
727
  ]);
728
 
729
  $entryItems = [];
742
  'submission_id' => $entryId,
743
  'field_name' => trim($dataKey),
744
  'sub_field_name' => $subKey,
745
+ 'field_value' => maybe_serialize($subValue),
746
  ];
747
  }
748
  } else {
751
  'submission_id' => $entryId,
752
  'field_name' => trim($dataKey),
753
  'sub_field_name' => '',
754
+ 'field_value' => $dataValue,
755
  ];
756
  }
757
  }
784
  'submission_id' => $entryId,
785
  'field_name' => $dataKey,
786
  'sub_field_name' => $subKey,
787
+ 'field_value' => maybe_serialize($subValue),
788
  ];
789
  }
790
  } else {
793
  'submission_id' => $entryId,
794
  'field_name' => $dataKey,
795
  'sub_field_name' => '',
796
+ 'field_value' => $dataValue,
797
  ];
798
  }
799
  }
817
 
818
  $users = get_users([
819
  'search' => "*{$search}*",
820
+ 'number' => 50,
821
  ]);
822
 
823
  $formattedUsers = [];
825
  foreach ($users as $user) {
826
  $formattedUsers[] = [
827
  'ID' => $user->ID,
828
+ 'label' => $user->display_name . ' - ' . $user->user_email,
829
  ];
830
  }
831
 
832
  wp_send_json_success([
833
+ 'users' => $formattedUsers,
834
  ]);
835
  }
836
 
841
 
842
  if (!$userId || !$submissionId) {
843
  wp_send_json_error([
844
+ 'message' => __('Submission ID and User ID is required', 'fluentform'),
845
  ], 423);
846
  }
847
 
851
 
852
  if (!$submission || $submission->user_id == $userId || !$user) {
853
  wp_send_json_error([
854
+ 'message' => __('Invalid Request', 'fluentform'),
855
  ], 423);
856
  }
857
 
859
  ->where('id', $submission->id)
860
  ->update([
861
  'user_id' => $userId,
862
+ 'updated_at' => current_time('mysql'),
863
  ]);
864
 
865
  if (defined('FLUENTFORMPRO')) {
868
  ->where('submission_id', $submission->id)
869
  ->update([
870
  'user_id' => $userId,
871
+ 'updated_at' => current_time('mysql'),
872
  ]);
873
  }
874
 
878
  'source_id' => $submission->id,
879
  'component' => 'General',
880
  'status' => 'info',
881
+ 'title' => 'Associate user has been changed from ' . $submission->user_id . ' to ' . $userId,
882
  ]);
883
 
884
  do_action('fluentform_submission_user_changed', $submission, $user);
889
  'name' => $user->display_name,
890
  'email' => $user->user_email,
891
  'ID' => $user->ID,
892
+ 'permalink' => get_edit_user_link($user->ID),
893
  ],
894
+ 'user_id' => $userId,
895
  ]);
896
  }
897
 
898
  public function getAvailableForms()
899
  {
 
900
  $forms = wpFluent()->table('fluentform_forms')
901
+ ->select(['id', 'title'])
902
  ->orderBy('id', 'DESC')
903
  ->get();
904
 
905
  $formattedForms = [];
906
  foreach ($forms as $form) {
907
  $formattedForms[] = [
908
+ 'id' => $form->id,
909
+ 'title' => $form->title,
910
  ];
911
  }
912
 
913
  return $formattedForms;
 
914
  }
915
  }
app/Modules/Entries/EntryQuery.php CHANGED
@@ -7,6 +7,8 @@ use FluentForm\App;
7
  class EntryQuery
8
  {
9
  /**
 
 
10
  * @var \FluentForm\Framework\Request\Request $request
11
  */
12
  protected $request;
@@ -21,7 +23,7 @@ class EntryQuery
21
  protected $is_favourite = null;
22
  protected $sort_by = 'ASC';
23
  protected $search = false;
24
- protected $wheres = array();
25
 
26
  protected $startDate;
27
  protected $endDate;
@@ -87,7 +89,7 @@ class EntryQuery
87
  $operator = '=';
88
  $value = $where[1];
89
  }
90
- if(is_array($value)) {
91
  $query->whereIn($column, $value);
92
  } else {
93
  $query->where($column, $operator, $value);
@@ -106,8 +108,8 @@ class EntryQuery
106
  'total' => $total,
107
  'per_page' => $this->per_page,
108
  'current_page' => $this->page_number,
109
- 'last_page' => ceil($total / $this->per_page)
110
- ]
111
  ];
112
  }
113
 
@@ -120,7 +122,7 @@ class EntryQuery
120
  {
121
  $query = $this->getNextPrevEntryQuery();
122
 
123
- $operator = $this->sort_by == 'ASC' ? '>' : '<';
124
 
125
  return $query->select('id')
126
  ->where('id', $operator, $entryId)
@@ -132,9 +134,9 @@ class EntryQuery
132
  {
133
  $query = $this->getNextPrevEntryQuery();
134
 
135
- $operator = $this->sort_by == 'ASC' ? '<' : '>';
136
 
137
- $orderBy = $this->sort_by == 'ASC' ? 'DESC' : 'ASC';
138
 
139
  return $query->select('id')
140
  ->where('id', $operator, $entryId)
@@ -170,7 +172,7 @@ class EntryQuery
170
  ->where('form_id', $form_id)
171
  ->groupBy('status')
172
  ->get();
173
-
174
  $counts = [];
175
  foreach ($statuses as $status) {
176
  $counts[$status->status] = $status->count;
@@ -189,7 +191,7 @@ class EntryQuery
189
  ->count();
190
 
191
  $counts['favourites'] = $favorites;
192
-
193
  return $counts;
194
  }
195
  }
7
  class EntryQuery
8
  {
9
  /**
10
+ * Request object
11
+ *
12
  * @var \FluentForm\Framework\Request\Request $request
13
  */
14
  protected $request;
23
  protected $is_favourite = null;
24
  protected $sort_by = 'ASC';
25
  protected $search = false;
26
+ protected $wheres = [];
27
 
28
  protected $startDate;
29
  protected $endDate;
89
  $operator = '=';
90
  $value = $where[1];
91
  }
92
+ if (is_array($value)) {
93
  $query->whereIn($column, $value);
94
  } else {
95
  $query->where($column, $operator, $value);
108
  'total' => $total,
109
  'per_page' => $this->per_page,
110
  'current_page' => $this->page_number,
111
+ 'last_page' => ceil($total / $this->per_page),
112
+ ],
113
  ];
114
  }
115
 
122
  {
123
  $query = $this->getNextPrevEntryQuery();
124
 
125
+ $operator = 'ASC' == $this->sort_by ? '>' : '<';
126
 
127
  return $query->select('id')
128
  ->where('id', $operator, $entryId)
134
  {
135
  $query = $this->getNextPrevEntryQuery();
136
 
137
+ $operator = 'ASC' == $this->sort_by ? '<' : '>';
138
 
139
+ $orderBy = 'ASC' == $this->sort_by ? 'DESC' : 'ASC';
140
 
141
  return $query->select('id')
142
  ->where('id', $operator, $entryId)
172
  ->where('form_id', $form_id)
173
  ->groupBy('status')
174
  ->get();
175
+
176
  $counts = [];
177
  foreach ($statuses as $status) {
178
  $counts[$status->status] = $status->count;
191
  ->count();
192
 
193
  $counts['favourites'] = $favorites;
194
+
195
  return $counts;
196
  }
197
  }
app/Modules/Entries/Export.php CHANGED
@@ -11,16 +11,22 @@ use FluentForm\App\Helpers\Helper;
11
  class Export
12
  {
13
  /**
 
 
14
  * @var \FluentForm\Framework\Foundation\Application
15
  */
16
  protected $app;
17
 
18
  /**
 
 
19
  * @var \FluentForm\Framework\Request\Request
20
  */
21
  protected $request;
22
 
23
  /**
 
 
24
  * @var String table/data source name
25
  */
26
  protected $tableName;
@@ -61,7 +67,7 @@ class Export
61
  exit('Invalid requested format');
62
  }
63
 
64
- if ($type == 'json') {
65
  $this->exportAsJSON($form);
66
  }
67
 
@@ -69,7 +75,7 @@ class Export
69
  define('FLUENTFORM_DOING_CSV_EXPORT', true);
70
  }
71
 
72
- $formInputs = FormFieldsParser::getEntryInputs($form, array('admin_label', 'raw'));
73
 
74
  $inputLabels = FormFieldsParser::getAdminLabels($form, $formInputs);
75
 
@@ -93,7 +99,7 @@ class Export
93
  $temp[] = Helper::sanitizeForCSV($content);
94
  }
95
 
96
- if ($form->has_payment && $this->tableName == 'fluentform_submissions') {
97
  $temp[] = round($submission->payment_total / 100, 1);
98
  $temp[] = $submission->payment_status;
99
  $temp[] = $submission->currency;
@@ -107,7 +113,7 @@ class Export
107
  }
108
 
109
  $extraLabels = [];
110
- if ($form->has_payment && $this->tableName == 'fluentform_submissions') {
111
  $extraLabels[] = 'payment_total';
112
  $extraLabels[] = 'payment_status';
113
  $extraLabels[] = 'currency';
@@ -128,7 +134,6 @@ class Export
128
  $this->downloadOfficeDoc($data, $type, $fileName);
129
  }
130
 
131
-
132
  private function downloadOfficeDoc($data, $type = 'csv', $fileName = null)
133
  {
134
  $data = array_map(function ($item) {
@@ -150,7 +155,7 @@ class Export
150
 
151
  private function exportAsJSON($form)
152
  {
153
- $formInputs = FormFieldsParser::getEntryInputs($form, array('admin_label', 'raw'));
154
 
155
  $inputLabels = FormFieldsParser::getAdminLabels($form, $formInputs);
156
 
@@ -165,7 +170,7 @@ class Export
165
 
166
  header('Content-disposition: attachment; filename=' . sanitize_title($form->title, 'export', 'view') . '-' . date('Y-m-d') . '.json');
167
  header('Content-type: application/json');
168
- echo json_encode($submissions);
169
  exit();
170
  }
171
 
@@ -175,7 +180,7 @@ class Export
175
  ->where('form_id', $formId)
176
  ->orderBy('id', $this->request->get('sort_by', 'DESC'));
177
 
178
- if ($this->tableName == 'fluentform_submissions') {
179
  $dateRange = $this->request->get('date_range');
180
  if ($dateRange) {
181
  $query->where('created_at', '>=', $dateRange[0] . ' 00:00:01');
@@ -184,22 +189,22 @@ class Export
184
 
185
  $isFavourite = $this->request->get('is_favourite');
186
 
187
- if ($isFavourite == 'yes') {
188
  $query->where('is_favourite', '1');
189
  }
190
-
191
  $status = $this->request->get('entry_type');
192
 
193
- if ($status == 'trashed') {
194
  $query->where('status', 'trashed');
195
- } else if ($status && $status != 'all') {
196
  $query->where('status', $status);
197
  } else {
198
  $query->where('status', '!=', 'trashed');
199
  }
200
  $entries = fluentFormSanitizer($this->request->get('entries', []));
201
-
202
- if (is_array($entries) && (count ($entries) > 0 )) {
203
  $query->whereIn('id', $entries);
204
  }
205
 
@@ -208,7 +213,6 @@ class Export
208
  $query->whereIn('payment_status', $paymentStatuses);
209
  }
210
  }
211
-
212
  }
213
 
214
  $searchString = $this->request->get('search');
@@ -218,7 +222,7 @@ class Export
218
  $q->where('id', 'LIKE', "%{$searchString}%")
219
  ->orWhere('response', 'LIKE', "%{$searchString}%");
220
 
221
- if ($this->tableName == 'fluentform_submissions') {
222
  $q->orWhere('status', 'LIKE', "%{$searchString}%")
223
  ->orWhere('created_at', 'LIKE', "%{$searchString}%");
224
  }
11
  class Export
12
  {
13
  /**
14
+ * App instance
15
+ *
16
  * @var \FluentForm\Framework\Foundation\Application
17
  */
18
  protected $app;
19
 
20
  /**
21
+ * Request object
22
+ *
23
  * @var \FluentForm\Framework\Request\Request
24
  */
25
  protected $request;
26
 
27
  /**
28
+ * Table name
29
+ *
30
  * @var String table/data source name
31
  */
32
  protected $tableName;
67
  exit('Invalid requested format');
68
  }
69
 
70
+ if ('json' == $type) {
71
  $this->exportAsJSON($form);
72
  }
73
 
75
  define('FLUENTFORM_DOING_CSV_EXPORT', true);
76
  }
77
 
78
+ $formInputs = FormFieldsParser::getEntryInputs($form, ['admin_label', 'raw']);
79
 
80
  $inputLabels = FormFieldsParser::getAdminLabels($form, $formInputs);
81
 
99
  $temp[] = Helper::sanitizeForCSV($content);
100
  }
101
 
102
+ if ($form->has_payment && 'fluentform_submissions' == $this->tableName) {
103
  $temp[] = round($submission->payment_total / 100, 1);
104
  $temp[] = $submission->payment_status;
105
  $temp[] = $submission->currency;
113
  }
114
 
115
  $extraLabels = [];
116
+ if ($form->has_payment && 'fluentform_submissions' == $this->tableName) {
117
  $extraLabels[] = 'payment_total';
118
  $extraLabels[] = 'payment_status';
119
  $extraLabels[] = 'currency';
134
  $this->downloadOfficeDoc($data, $type, $fileName);
135
  }
136
 
 
137
  private function downloadOfficeDoc($data, $type = 'csv', $fileName = null)
138
  {
139
  $data = array_map(function ($item) {
155
 
156
  private function exportAsJSON($form)
157
  {
158
+ $formInputs = FormFieldsParser::getEntryInputs($form, ['admin_label', 'raw']);
159
 
160
  $inputLabels = FormFieldsParser::getAdminLabels($form, $formInputs);
161
 
170
 
171
  header('Content-disposition: attachment; filename=' . sanitize_title($form->title, 'export', 'view') . '-' . date('Y-m-d') . '.json');
172
  header('Content-type: application/json');
173
+ echo json_encode($submissions); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $submissions is escaped before being passed in.
174
  exit();
175
  }
176
 
180
  ->where('form_id', $formId)
181
  ->orderBy('id', $this->request->get('sort_by', 'DESC'));
182
 
183
+ if ('fluentform_submissions' == $this->tableName) {
184
  $dateRange = $this->request->get('date_range');
185
  if ($dateRange) {
186
  $query->where('created_at', '>=', $dateRange[0] . ' 00:00:01');
189
 
190
  $isFavourite = $this->request->get('is_favourite');
191
 
192
+ if ('yes' == $isFavourite) {
193
  $query->where('is_favourite', '1');
194
  }
195
+
196
  $status = $this->request->get('entry_type');
197
 
198
+ if ('trashed' == $status) {
199
  $query->where('status', 'trashed');
200
+ } elseif ($status && 'all' != $status) {
201
  $query->where('status', $status);
202
  } else {
203
  $query->where('status', '!=', 'trashed');
204
  }
205
  $entries = fluentFormSanitizer($this->request->get('entries', []));
206
+
207
+ if (is_array($entries) && (count($entries) > 0)) {
208
  $query->whereIn('id', $entries);
209
  }
210
 
213
  $query->whereIn('payment_status', $paymentStatuses);
214
  }
215
  }
 
216
  }
217
 
218
  $searchString = $this->request->get('search');
222
  $q->where('id', 'LIKE', "%{$searchString}%")
223
  ->orWhere('response', 'LIKE', "%{$searchString}%");
224
 
225
+ if ('fluentform_submissions' == $this->tableName) {
226
  $q->orWhere('status', 'LIKE', "%{$searchString}%")
227
  ->orWhere('created_at', 'LIKE', "%{$searchString}%");
228
  }
app/Modules/Entries/Report.php CHANGED
@@ -19,12 +19,14 @@ class Report
19
  }
20
 
21
  /**
 
 
22
  * @param bool $formId
23
  */
24
  public function getReport($formId = false)
25
  {
26
  if (!$formId) {
27
- $formId = intval($_REQUEST['form_id']);
28
  }
29
 
30
  $this->maybeMigrateData($formId);
@@ -38,7 +40,6 @@ class Report
38
  wp_send_json_success($report);
39
  }
40
 
41
-
42
  public function generateReport($form, $statuses = [])
43
  {
44
  $formInputs = FormFieldsParser::getEntryInputs($form, ['admin_label', 'element', 'options']);
@@ -49,7 +50,7 @@ class Report
49
 
50
  foreach ($formInputs as $inputName => $input) {
51
  $elements[$inputName] = $input['element'];
52
- if ($input['element'] == 'select_country') {
53
  $formInputs[$inputName]['options'] = getFluentFormCountryList();
54
  }
55
  }
@@ -63,8 +64,8 @@ class Report
63
 
64
  if (!$formReportableInputs && !$formSubFieldInputs) {
65
  return [
66
- 'report_items' => (object)[],
67
- 'total_entries' => 0
68
  ];
69
  }
70
 
@@ -84,7 +85,7 @@ class Report
84
  if ($statuses) {
85
  $whereClasuses['fluentform_submissions.status'] = [
86
  'method' => 'whereIn',
87
- 'values' => $statuses
88
  ];
89
  }
90
 
@@ -110,7 +111,7 @@ class Report
110
 
111
  public function getInputReport($formId, $fieldNames, $whereClasuses)
112
  {
113
- if(!$fieldNames) {
114
  return [];
115
  }
116
  global $wpdb;
@@ -118,7 +119,7 @@ class Report
118
  ->select([
119
  'fluentform_entry_details.field_name',
120
  'fluentform_entry_details.sub_field_name',
121
- 'fluentform_entry_details.field_value'
122
  ])
123
  ->select(wpFluent()->raw('count(' . $wpdb->prefix . 'fluentform_entry_details.field_name) as total_count'))
124
  ->where('fluentform_entry_details.form_id', $formId)
@@ -149,7 +150,7 @@ class Report
149
 
150
  public function getSubFieldInputReport($formId, $fieldNames, $whereClasuses)
151
  {
152
- if(!$fieldNames) {
153
  return [];
154
  }
155
 
@@ -158,7 +159,7 @@ class Report
158
  ->select([
159
  'fluentform_entry_details.field_name',
160
  'fluentform_entry_details.sub_field_name',
161
- 'fluentform_entry_details.field_value'
162
  ])
163
  ->select(wpFluent()->raw('count(' . $wpdb->prefix . 'fluentform_entry_details.field_name) as total_count'))
164
  ->where('fluentform_entry_details.form_id', $formId)
@@ -174,7 +175,6 @@ class Report
174
  $reports = $reportQuery->groupBy(['fluentform_entry_details.field_name', 'fluentform_entry_details.field_value', 'fluentform_entry_details.sub_field_name'])
175
  ->get();
176
 
177
-
178
  return $this->getFormattedReportsForSubInputs($reports, $formId, $whereClasuses);
179
  }
180
 
@@ -192,7 +192,9 @@ class Report
192
 
193
  foreach ($formattedReports as $fieldName => $val) {
194
  $formattedReports[$fieldName]['total_entry'] = $this->getEntryTotal(
195
- $report->field_name, $formId, $whereClasuses
 
 
196
  );
197
 
198
  $formattedReports[$fieldName]['reports'] = array_values(
@@ -248,7 +250,7 @@ class Report
248
  private function maybeMigrateData($formId)
249
  {
250
  // We have to check if we need to migrate the data
251
- if (Helper::getFormMeta($formId, 'report_data_migrated') == 'yes') {
252
  return true;
253
  }
254
  global $wpdb;
@@ -257,7 +259,7 @@ class Report
257
  ->table('fluentform_submissions')
258
  ->select([
259
  'fluentform_submissions.id',
260
- 'fluentform_submissions.response'
261
  ])
262
  ->where('fluentform_submissions.form_id', $formId)
263
  ->where(wpFluent()->raw($wpdb->prefix . 'fluentform_submissions.id NOT IN (SELECT submission_id from ' . $wpdb->prefix . 'fluentform_entry_details)'))
@@ -274,7 +276,6 @@ class Report
274
  }
275
 
276
  return true;
277
-
278
  }
279
 
280
  private function getEntryCounts($formId, $statuses = false)
@@ -297,7 +298,7 @@ class Report
297
  $browserCounts = wpFluent()->table('fluentform_submissions')
298
  ->select([
299
  wpFluent()->raw('count(' . $wpdb->prefix . 'fluentform_submissions.id) as total_count'),
300
- 'browser'
301
  ])
302
  ->where('form_id', $formId);
303
  if ($statuses) {
@@ -315,7 +316,6 @@ class Report
315
  }
316
 
317
  return $formattedData;
318
-
319
  }
320
 
321
  private function getDeviceCounts($formId, $statuses)
@@ -324,7 +324,7 @@ class Report
324
  $deviceCounts = wpFluent()->table('fluentform_submissions')
325
  ->select([
326
  wpFluent()->raw('count(' . $wpdb->prefix . 'fluentform_submissions.id) as total_count'),
327
- 'device'
328
  ])
329
  ->where('form_id', $formId);
330
  if ($statuses) {
@@ -342,6 +342,4 @@ class Report
342
  }
343
  return $formattedData;
344
  }
345
-
346
-
347
  }
19
  }
20
 
21
  /**
22
+ * Get report
23
+ *
24
  * @param bool $formId
25
  */
26
  public function getReport($formId = false)
27
  {
28
  if (!$formId) {
29
+ $formId = intval($this->app->request->get('form_id'));
30
  }
31
 
32
  $this->maybeMigrateData($formId);
40
  wp_send_json_success($report);
41
  }
42
 
 
43
  public function generateReport($form, $statuses = [])
44
  {
45
  $formInputs = FormFieldsParser::getEntryInputs($form, ['admin_label', 'element', 'options']);
50
 
51
  foreach ($formInputs as $inputName => $input) {
52
  $elements[$inputName] = $input['element'];
53
+ if ('select_country' == $input['element']) {
54
  $formInputs[$inputName]['options'] = getFluentFormCountryList();
55
  }
56
  }
64
 
65
  if (!$formReportableInputs && !$formSubFieldInputs) {
66
  return [
67
+ 'report_items' => (object) [],
68
+ 'total_entries' => 0,
69
  ];
70
  }
71
 
85
  if ($statuses) {
86
  $whereClasuses['fluentform_submissions.status'] = [
87
  'method' => 'whereIn',
88
+ 'values' => $statuses,
89
  ];
90
  }
91
 
111
 
112
  public function getInputReport($formId, $fieldNames, $whereClasuses)
113
  {
114
+ if (!$fieldNames) {
115
  return [];
116
  }
117
  global $wpdb;
119
  ->select([
120
  'fluentform_entry_details.field_name',
121
  'fluentform_entry_details.sub_field_name',
122
+ 'fluentform_entry_details.field_value',
123
  ])
124
  ->select(wpFluent()->raw('count(' . $wpdb->prefix . 'fluentform_entry_details.field_name) as total_count'))
125
  ->where('fluentform_entry_details.form_id', $formId)
150
 
151
  public function getSubFieldInputReport($formId, $fieldNames, $whereClasuses)
152
  {
153
+ if (!$fieldNames) {
154
  return [];
155
  }
156
 
159
  ->select([
160
  'fluentform_entry_details.field_name',
161
  'fluentform_entry_details.sub_field_name',
162
+ 'fluentform_entry_details.field_value',
163
  ])
164
  ->select(wpFluent()->raw('count(' . $wpdb->prefix . 'fluentform_entry_details.field_name) as total_count'))
165
  ->where('fluentform_entry_details.form_id', $formId)
175
  $reports = $reportQuery->groupBy(['fluentform_entry_details.field_name', 'fluentform_entry_details.field_value', 'fluentform_entry_details.sub_field_name'])
176
  ->get();
177
 
 
178
  return $this->getFormattedReportsForSubInputs($reports, $formId, $whereClasuses);
179
  }
180
 
192
 
193
  foreach ($formattedReports as $fieldName => $val) {
194
  $formattedReports[$fieldName]['total_entry'] = $this->getEntryTotal(
195
+ $report->field_name,
196
+ $formId,
197
+ $whereClasuses
198
  );
199
 
200
  $formattedReports[$fieldName]['reports'] = array_values(
250
  private function maybeMigrateData($formId)
251
  {
252
  // We have to check if we need to migrate the data
253
+ if ('yes' == Helper::getFormMeta($formId, 'report_data_migrated')) {
254
  return true;
255
  }
256
  global $wpdb;
259
  ->table('fluentform_submissions')
260
  ->select([
261
  'fluentform_submissions.id',
262
+ 'fluentform_submissions.response',
263
  ])
264
  ->where('fluentform_submissions.form_id', $formId)
265
  ->where(wpFluent()->raw($wpdb->prefix . 'fluentform_submissions.id NOT IN (SELECT submission_id from ' . $wpdb->prefix . 'fluentform_entry_details)'))
276
  }
277
 
278
  return true;
 
279
  }
280
 
281
  private function getEntryCounts($formId, $statuses = false)
298
  $browserCounts = wpFluent()->table('fluentform_submissions')
299
  ->select([
300
  wpFluent()->raw('count(' . $wpdb->prefix . 'fluentform_submissions.id) as total_count'),
301
+ 'browser',
302
  ])
303
  ->where('form_id', $formId);
304
  if ($statuses) {
316
  }
317
 
318
  return $formattedData;
 
319
  }
320
 
321
  private function getDeviceCounts($formId, $statuses)
324
  $deviceCounts = wpFluent()->table('fluentform_submissions')
325
  ->select([
326
  wpFluent()->raw('count(' . $wpdb->prefix . 'fluentform_submissions.id) as total_count'),
327
+ 'device',
328
  ])
329
  ->where('form_id', $formId);
330
  if ($statuses) {
342
  }
343
  return $formattedData;
344
  }
 
 
345
  }
app/Modules/Form/AkismetHandler.php CHANGED
@@ -15,7 +15,7 @@ class AkismetHandler
15
  }
16
 
17
  $settings = get_option('_fluentform_global_form_settings');
18
- return $settings && ArrayHelper::get($settings, 'misc.akismet_status') == 'yes';
19
  }
20
 
21
  public static function isPluginEnabled()
@@ -31,9 +31,9 @@ class AkismetHandler
31
  {
32
  global $akismet_api_host, $akismet_api_port;
33
  $fields = self::getAkismetFields($formData, $form);
34
- $response = \Akismet::http_post( $fields, 'comment-check' );
35
 
36
- return ArrayHelper::get($response, 1) == 'true';
37
  }
38
 
39
  protected static function getAkismetFields($data, $form)
@@ -42,22 +42,22 @@ class AkismetHandler
42
  $ip = $app->request->getIp();
43
 
44
  $info = [
45
- 'comment_type' => 'contact-form',
46
- 'comment_author' => '',
47
  'comment_author_email' => '',
48
- 'comment_content' => '',
49
  'contact_form_subject' => $form->title,
50
- 'comment_author_IP' => $ip,
51
- 'permalink' => urlencode($data['_wp_http_referer']),
52
- 'user_ip' => preg_replace('/[^0-9., ]/', '', $ip),
53
- 'user_agent' => $app->request->header('USER_AGENT'),
54
- 'blog' => get_option('home')
55
  ];
56
 
57
  $maps = [
58
- 'input_name' => 'comment_author',
59
  'input_email' => 'comment_author_email',
60
- 'textarea' => 'comment_content'
61
  ];
62
  $inputs = FormFieldsParser::getInputs($form, ['attributes']);
63
 
@@ -78,7 +78,5 @@ class AkismetHandler
78
  $info = apply_filters('fluentform_akismet_fields', $info, $data, $form);
79
 
80
  return http_build_query($info);
81
-
82
  }
83
-
84
- }
15
  }
16
 
17
  $settings = get_option('_fluentform_global_form_settings');
18
+ return $settings && 'yes' == ArrayHelper::get($settings, 'misc.akismet_status');
19
  }
20
 
21
  public static function isPluginEnabled()
31
  {
32
  global $akismet_api_host, $akismet_api_port;
33
  $fields = self::getAkismetFields($formData, $form);
34
+ $response = \Akismet::http_post($fields, 'comment-check');
35
 
36
+ return 'true' == ArrayHelper::get($response, 1);
37
  }
38
 
39
  protected static function getAkismetFields($data, $form)
42
  $ip = $app->request->getIp();
43
 
44
  $info = [
45
+ 'comment_type' => 'contact-form',
46
+ 'comment_author' => '',
47
  'comment_author_email' => '',
48
+ 'comment_content' => '',
49
  'contact_form_subject' => $form->title,
50
+ 'comment_author_IP' => $ip,
51
+ 'permalink' => urlencode($data['_wp_http_referer']),
52
+ 'user_ip' => preg_replace('/[^0-9., ]/', '', $ip),
53
+ 'user_agent' => $app->request->header('USER_AGENT'),
54
+ 'blog' => get_option('home'),
55
  ];
56
 
57
  $maps = [
58
+ 'input_name' => 'comment_author',
59
  'input_email' => 'comment_author_email',
60
+ 'textarea' => 'comment_content',
61
  ];
62
  $inputs = FormFieldsParser::getInputs($form, ['attributes']);
63
 
78
  $info = apply_filters('fluentform_akismet_fields', $info, $data, $form);
79
 
80
  return http_build_query($info);
 
81
  }
82
+ }
 
app/Modules/Form/Analytics.php CHANGED
@@ -7,7 +7,9 @@ use FluentForm\Framework\Foundation\Application;
7
 
8
  class Analytics
9
  {
10
- /**
 
 
11
  * @var \FluentForm\Framework\Foundation\Application
12
  */
13
  protected $app;
@@ -22,20 +24,17 @@ class Analytics
22
  $this->app = $app;
23
  }
24
 
25
- /**
26
- * Save form view analytics data
27
- *
28
- * @return json respoonse
29
- */
30
- public function record($formId)
31
- {
32
- return $this->saveViewAnalytics($formId);
33
- }
34
-
35
 
36
- public function resetFormAnalytics()
37
  {
38
- $formId = intval($_REQUEST['form_id']);
39
  wpFluent()
40
  ->table('fluentform_form_analytics')
41
  ->where('form_id', $formId)
@@ -45,17 +44,15 @@ class Analytics
45
  ->table('fluentform_form_meta')
46
  ->where('meta_key', '_total_views')
47
  ->where('form_id', $formId)
48
- -> delete();
49
 
50
  wp_send_json_success([
51
- 'message' => __('Form Analytics has been successfully resetted')
52
  ], 200);
53
-
54
  }
55
 
56
- /**
57
  * Save form view analytics data
58
- * @return void
59
  */
60
  private function saveViewAnalytics($formId)
61
  {
@@ -64,16 +61,16 @@ class Analytics
64
  $userId = $user->ID;
65
  }
66
  $browser = new Browser();
67
- $data = array(
68
- 'count' => 1,
69
- 'form_id' => $formId,
70
- 'user_id' => $userId,
71
- 'ip' => $this->app->request->getIp(),
72
- 'browser' => $browser->getBrowser(),
73
- 'platform' => $browser->getPlatform(),
74
  'created_at' => current_time('mysql'),
75
  'source_url' => $this->app->request->server('HTTP_REFERER'),
76
- );
77
 
78
  $query = wpFluent()
79
  ->table('fluentform_form_analytics')
@@ -83,21 +80,19 @@ class Analytics
83
 
84
  try {
85
  if (($record = $query->first())) {
86
- $query->update(array('count' => ++$record->count));
87
  } else {
88
  wpFluent()->table('fluentform_form_analytics')->insert($data);
89
  $this->increaseTotalViews($formId);
90
  }
91
-
92
- } catch(\Exception $e) {
93
-
94
  }
95
  }
96
 
97
  /**
98
  * Store (create/update) total view of a form
99
- * @param int $formId
100
- * @return void
101
  */
102
  private function increaseTotalViews($formId)
103
  {
@@ -106,23 +101,23 @@ class Analytics
106
  ->table('fluentform_form_meta')
107
  ->where('meta_key', '_total_views')
108
  ->where('form_id', $formId)
109
- -> first();
110
 
111
- if($hasCount) {
112
  wpFluent()
113
  ->table('fluentform_form_meta')
114
  ->where('id', $hasCount->id)
115
- ->update(array(
116
- 'value' => intval($hasCount->value) + 1
117
- ));
118
  } else {
119
  wpFluent()
120
  ->table('fluentform_form_meta')
121
- ->insert(array(
122
- 'value' => 1,
123
- 'form_id' => $formId,
124
- 'meta_key' => '_total_views'
125
- ));
126
  }
127
  }
128
- }
7
 
8
  class Analytics
9
  {
10
+ /**
11
+ * App instance
12
+ *
13
  * @var \FluentForm\Framework\Foundation\Application
14
  */
15
  protected $app;
24
  $this->app = $app;
25
  }
26
 
27
+ /**
28
+ * Save form view analytics data
29
+ */
30
+ public function record($formId)
31
+ {
32
+ return $this->saveViewAnalytics($formId);
33
+ }
 
 
 
34
 
35
+ public function resetFormAnalytics()
36
  {
37
+ $formId = intval($this->app->request->get('form_id'));
38
  wpFluent()
39
  ->table('fluentform_form_analytics')
40
  ->where('form_id', $formId)
44
  ->table('fluentform_form_meta')
45
  ->where('meta_key', '_total_views')
46
  ->where('form_id', $formId)
47
+ ->delete();
48
 
49
  wp_send_json_success([
50
+ 'message' => __('Form Analytics has been successfully resetted'),
51
  ], 200);
 
52
  }
53
 
54
+ /**
55
  * Save form view analytics data
 
56
  */
57
  private function saveViewAnalytics($formId)
58
  {
61
  $userId = $user->ID;
62
  }
63
  $browser = new Browser();
64
+ $data = [
65
+ 'count' => 1,
66
+ 'form_id' => $formId,
67
+ 'user_id' => $userId,
68
+ 'ip' => $this->app->request->getIp(),
69
+ 'browser' => $browser->getBrowser(),
70
+ 'platform' => $browser->getPlatform(),
71
  'created_at' => current_time('mysql'),
72
  'source_url' => $this->app->request->server('HTTP_REFERER'),
73
+ ];
74
 
75
  $query = wpFluent()
76
  ->table('fluentform_form_analytics')
80
 
81
  try {
82
  if (($record = $query->first())) {
83
+ $query->update(['count' => ++$record->count]);
84
  } else {
85
  wpFluent()->table('fluentform_form_analytics')->insert($data);
86
  $this->increaseTotalViews($formId);
87
  }
88
+ } catch (\Exception $e) {
 
 
89
  }
90
  }
91
 
92
  /**
93
  * Store (create/update) total view of a form
94
+ *
95
+ * @param int $formId
96
  */
97
  private function increaseTotalViews($formId)
98
  {
101
  ->table('fluentform_form_meta')
102
  ->where('meta_key', '_total_views')
103
  ->where('form_id', $formId)
104
+ ->first();
105
 
106
+ if ($hasCount) {
107
  wpFluent()
108
  ->table('fluentform_form_meta')
109
  ->where('id', $hasCount->id)
110
+ ->update([
111
+ 'value' => intval($hasCount->value) + 1,
112
+ ]);
113
  } else {
114
  wpFluent()
115
  ->table('fluentform_form_meta')
116
+ ->insert([
117
+ 'value' => 1,
118
+ 'form_id' => $formId,
119
+ 'meta_key' => '_total_views',
120
+ ]);
121
  }
122
  }
123
+ }
app/Modules/Form/Form.php CHANGED
@@ -10,6 +10,8 @@ use FluentForm\Framework\Helpers\ArrayHelper;
10
  class Form
11
  {
12
  /**
 
 
13
  * @var \FluentForm\Framework\Request\Request $request
14
  */
15
  protected $request;
@@ -21,7 +23,6 @@ class Form
21
  */
22
  protected $defaultSettings;
23
 
24
-
25
  /**
26
  * Set this value when we need predefined default notifications.
27
  *
@@ -58,16 +59,15 @@ class Form
58
  /**
59
  * Get all forms from database
60
  *
61
- * @return void
62
  * @throws \Exception
63
  */
64
  public function index()
65
  {
66
  $forms = fluentFormApi('forms')->forms([
67
- 'search' => $this->request->get('search'),
68
- 'status' => $this->request->get('status'),
69
- 'filter_by' => $this->request->get('filter_by', 'all'),
70
- 'date_range' => $this->request->get('date_range', []),
71
  'sort_column' => $this->request->get('sort_column', 'id'),
72
  'sort_by' => $this->request->get('sort_by', 'DESC'),
73
  'per_page' => $this->request->get('per_page', 10),
@@ -77,9 +77,9 @@ class Form
77
  wp_send_json($forms, 200);
78
  }
79
 
80
-
81
  /**
82
  * Create a form from backend/editor
 
83
  * @return void|array
84
  */
85
  public function store($returnJSON = true)
@@ -97,7 +97,7 @@ class Form
97
  'status' => $status,
98
  'created_by' => $createdBy,
99
  'created_at' => $now,
100
- 'updated_at' => $now
101
  ];
102
 
103
  if ($this->formFields) {
@@ -111,20 +111,20 @@ class Form
111
  $formId = $this->model->insert($insertData);
112
 
113
  // Rename the form name here
114
- wpFluent()->table('fluentform_forms')->where('id', $formId)->update(array(
115
- 'title' => $title . ' (#' . $formId . ')'
116
- ));
117
 
118
  if ($this->metas && is_array($this->metas)) {
119
  foreach ($this->metas as $meta) {
120
  $meta['value'] = trim(preg_replace('/\s+/', ' ', $meta['value']));
121
 
122
  wpFluent()->table('fluentform_form_meta')
123
- ->insert(array(
124
  'form_id' => $formId,
125
  'meta_key' => $meta['meta_key'],
126
- 'value' => $meta['value']
127
- ));
128
  }
129
  } else {
130
  // add default form settings now
@@ -133,29 +133,29 @@ class Form
133
  $defaultSettings = apply_filters('fluentform_create_default_settings', $defaultSettings);
134
 
135
  wpFluent()->table('fluentform_form_meta')
136
- ->insert(array(
137
  'form_id' => $formId,
138
  'meta_key' => 'formSettings',
139
- 'value' => json_encode($defaultSettings)
140
- ));
141
 
142
  if ($this->defaultNotifications) {
143
  wpFluent()->table('fluentform_form_meta')
144
- ->insert(array(
145
  'form_id' => $formId,
146
  'meta_key' => 'notifications',
147
- 'value' => json_encode($this->defaultNotifications)
148
- ));
149
  }
150
  }
151
 
152
  do_action('fluentform_inserted_new_form', $formId, $insertData);
153
 
154
- $data = array(
155
  'formId' => $formId,
156
  'redirect_url' => admin_url('admin.php?page=fluent_forms&form_id=' . $formId . '&route=editor'),
157
- 'message' => __('Successfully created a form.', 'fluentform')
158
- );
159
 
160
  if ($returnJSON) {
161
  wp_send_json_success($data, 200);
@@ -166,47 +166,47 @@ class Form
166
 
167
  public function getFormsDefaultSettings($formId = false)
168
  {
169
- $defaultSettings = array(
170
- 'confirmation' => array(
171
  'redirectTo' => 'samePage',
172
  'messageToShow' => __('Thank you for your message. We will get in touch with you shortly', 'fluentform'),
173
  'customPage' => null,
174
  'samePageFormBehavior' => 'hide_form',
175
- 'customUrl' => null
176
- ),
177
- 'restrictions' => array(
178
- 'limitNumberOfEntries' => array(
179
  'enabled' => false,
180
  'numberOfEntries' => null,
181
  'period' => 'total',
182
- 'limitReachedMsg' => 'Maximum number of entries exceeded.'
183
- ),
184
- 'scheduleForm' => array(
185
  'enabled' => false,
186
  'start' => null,
187
  'end' => null,
188
  'selectedDays' => null,
189
- 'pendingMsg' => __("Form submission is not started yet.", 'fluentform'),
190
- 'expiredMsg' => __("Form submission is now closed.", 'fluentform')
191
- ),
192
- 'requireLogin' => array(
193
  'enabled' => false,
194
  'requireLoginMsg' => 'You must be logged in to submit the form.',
195
- ),
196
- 'denyEmptySubmission' => [
197
  'enabled' => false,
198
  'message' => __('Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.', 'fluentform'),
199
- ]
200
- ),
201
- 'layout' => array(
202
  'labelPlacement' => 'top',
203
  'helpMessagePlacement' => 'with_label',
204
  'errorMessagePlacement' => 'inline',
205
  'cssClassName' => '',
206
- 'asteriskPlacement' => 'asterisk-right'
207
- ),
208
- 'delete_entry_on_submission' => 'no'
209
- );
210
 
211
  if ($formId) {
212
  $value = $this->getMeta($formId, 'formSettings', true);
@@ -226,17 +226,17 @@ class Form
226
  public function getAdvancedValidationSettings($formId)
227
  {
228
  $settings = [
229
- 'status' => false,
230
- 'type' => 'all',
231
- 'conditions' => [
232
  [
233
  'field' => '',
234
  'operator' => '=',
235
- 'value' => ''
236
- ]
237
  ],
238
  'error_message' => '',
239
- 'validation_type' => 'fail_on_condition_met'
240
  ];
241
 
242
  $metaSettings = $this->getMeta($formId, 'advancedValidationSettings', true);
@@ -279,14 +279,14 @@ class Form
279
  return wpFluent()->table('fluentform_form_meta')
280
  ->where('id', $exist->id)
281
  ->update([
282
- 'value' => $metaValue
283
  ]);
284
  }
285
 
286
  return wpFluent()->table('fluentform_form_meta')->insert([
287
  'form_id' => $formId,
288
  'meta_key' => $metaKey,
289
- 'value' => $metaValue
290
  ]);
291
  }
292
 
@@ -300,7 +300,6 @@ class Form
300
 
301
  /**
302
  * Find/Read a from from the database
303
- * @return void
304
  */
305
  public function find()
306
  {
@@ -311,6 +310,7 @@ class Form
311
  /**
312
  * Fetch a from from the database
313
  * Note: required for ninja-tables
 
314
  * @return mixed
315
  */
316
  public function fetchForm($formId)
@@ -320,7 +320,7 @@ class Form
320
 
321
  /**
322
  * Save/update a form from backend/editor
323
- * @return void
324
  * @throws \WpFluent\Exception
325
  */
326
  public function update()
@@ -334,10 +334,9 @@ class Form
334
  $data = [
335
  'title' => $title,
336
  'status' => $status,
337
- 'updated_at' => current_time('mysql')
338
  ];
339
 
340
-
341
  if ($formFields = $this->request->get('formFields')) {
342
  $formFields = apply_filters('fluentform_form_fields_update', $formFields, $formId);
343
  $formFields = $this->sanitizeFields($formFields);
@@ -350,11 +349,11 @@ class Form
350
 
351
  if (FormFieldsParser::hasPaymentFields($form)) {
352
  $this->model->where('id', $formId)->update([
353
- 'has_payment' => 1
354
  ]);
355
  } elseif ($form->has_payment) {
356
  $this->model->where('id', $formId)->update([
357
- 'has_payment' => 0
358
  ]);
359
  }
360
 
@@ -368,14 +367,13 @@ class Form
368
  }
369
 
370
  wp_send_json([
371
- 'message' => __('The form is successfully updated.', 'fluentform')
372
  ], 200);
373
  }
374
 
375
-
376
  private function sanitizeFields($formFields)
377
  {
378
- if (current_user_can('unfiltered_html') || apply_filters('fluent_form_disable_fields_sanitize', false)) {
379
  return $formFields;
380
  }
381
 
@@ -398,13 +396,13 @@ class Form
398
  if (!is_array($fields)) {
399
  return $fields;
400
  }
401
-
402
  $attributesMap = [
403
  'name' => 'sanitize_key',
404
  'value' => 'sanitize_textarea_field',
405
  'id' => 'sanitize_key',
406
  'class' => 'sanitize_text_field',
407
- 'placeholder' => 'sanitize_text_field'
408
  ];
409
  $attributesKeys = array_keys($attributesMap);
410
  $settingsMap = [
@@ -417,20 +415,20 @@ class Form
417
  'suffix_label' => 'sanitize_text_field',
418
  'unique_validation_message' => 'sanitize_text_field',
419
  'advanced_options' => 'fluentform_options_sanitize',
420
- 'html_codes' => 'fluentform_sanitize_html'
421
  ];
422
  $settingsKeys = array_keys($settingsMap);
423
  $stylePrefMap = [
424
- 'layout' => 'sanitize_key',
425
- 'media' => 'sanitize_url',
426
- 'alt_text' => 'sanitize_text_field'
427
  ];
428
  $stylePrefKeys = array_keys($stylePrefMap);
429
 
430
  foreach ($fields as $fieldIndex => $field) {
431
  $element = ArrayHelper::get($field, 'element');
432
 
433
- if ($element == 'container') {
434
  $columns = $field['columns'];
435
  foreach ($columns as $columnIndex => $column) {
436
  $fields[$fieldIndex]['columns'][$columnIndex]['fields'] = $this->sanitizeFieldMaps($column['fields']);
@@ -447,21 +445,21 @@ class Form
447
  }
448
 
449
  if (!empty($field['attributes'])) {
450
- $attributes = array_filter(\FluentForm\Framework\Helpers\ArrayHelper::only($field['attributes'], $attributesKeys));
451
  foreach ($attributes as $key => $value) {
452
  $fields[$fieldIndex]['attributes'][$key] = call_user_func($attributesMap[$key], $value);
453
  }
454
  }
455
 
456
  if (!empty($field['settings'])) {
457
- $settings = array_filter(\FluentForm\Framework\Helpers\ArrayHelper::only($field['settings'], $settingsKeys));
458
  foreach ($settings as $key => $value) {
459
  $fields[$fieldIndex]['settings'][$key] = call_user_func($settingsMap[$key], $value);
460
  }
461
  }
462
 
463
  if (!empty($field['style_pref'])) {
464
- $settings = array_filter(\FluentForm\Framework\Helpers\ArrayHelper::only($field['style_pref'], $stylePrefKeys));
465
  foreach ($settings as $key => $value) {
466
  $fields[$fieldIndex]['style_pref'][$key] = call_user_func($stylePrefMap[$key], $value);
467
  }
@@ -471,10 +469,9 @@ class Form
471
  return $fields;
472
  }
473
 
474
-
475
  /**
476
  * Delete a from from database
477
- * @return void
478
  * @throws \WpFluent\Exception
479
  */
480
  public function delete()
@@ -487,11 +484,10 @@ class Form
487
 
488
  wp_send_json([
489
  'message' => __('Successfully deleted the form.', 'fluentform'),
490
- 'errors' => $maybeErrors
491
  ], 200);
492
  }
493
 
494
-
495
  protected function deleteFormAssests($formId)
496
  {
497
  // Now Let's delete associate items
@@ -539,7 +535,7 @@ class Form
539
 
540
  /**
541
  * Duplicate a from
542
- * @return void
543
  * @throws \WpFluent\Exception
544
  */
545
  public function duplicate()
@@ -547,7 +543,7 @@ class Form
547
  $formId = absint($this->request->get('formId'));
548
  $form = $this->model->where('id', $formId)->first();
549
 
550
- $data = array(
551
  'title' => $form->title,
552
  'status' => $form->status,
553
  'appearance_settings' => $form->appearance_settings,
@@ -557,17 +553,17 @@ class Form
557
  'conditions' => $form->conditions,
558
  'created_by' => get_current_user_id(),
559
  'created_at' => current_time('mysql'),
560
- 'updated_at' => current_time('mysql')
561
- );
562
 
563
  $newFormId = $this->model->insert($data);
564
 
565
  // Rename the form name here
566
  wpFluent()->table('fluentform_forms')
567
  ->where('id', $newFormId)
568
- ->update(array(
569
- 'title' => $form->title . ' (#' . $newFormId . ')'
570
- ));
571
 
572
  $formMetas = wpFluent()->table('fluentform_form_meta')
573
  ->where('form_id', $formId)
@@ -578,14 +574,14 @@ class Form
578
  $extras = [];
579
 
580
  foreach ($formMetas as $meta) {
581
- if ($meta->meta_key == 'notifications' || $meta->meta_key == '_pdf_feeds') {
582
  $extras[$meta->meta_key][] = $meta;
583
  continue;
584
  }
585
  $metaData = [
586
  'meta_key' => $meta->meta_key,
587
  'value' => $meta->value,
588
- 'form_id' => $newFormId
589
  ];
590
 
591
  wpFluent()->table('fluentform_form_meta')->insert($metaData);
@@ -598,7 +594,7 @@ class Form
598
  $notifyData = [
599
  'meta_key' => $notify->meta_key,
600
  'value' => $notify->value,
601
- 'form_id' => $newFormId
602
  ];
603
  wpFluent()->table('fluentform_form_meta')->insert($notifyData);
604
  }
@@ -609,13 +605,12 @@ class Form
609
  wp_send_json([
610
  'message' => __('Form has been successfully duplicated.', 'fluentform'),
611
  'form_id' => $newFormId,
612
- 'redirect' => admin_url('admin.php?page=fluent_forms&route=editor&form_id=' . $newFormId)
613
  ], 200);
614
  }
615
 
616
  /**
617
  * Validate a form by form title & for duplicate name attributes
618
- * @return void
619
  */
620
  private function validate()
621
  {
@@ -625,14 +620,14 @@ class Form
625
  if ($duplicates) {
626
  $duplicateString = implode(', ', $duplicates);
627
  wp_send_json([
628
- 'title' => sprintf(__('Name attribute %s has duplicate value.', 'fluentform'), $duplicateString)
629
  ], 422);
630
  }
631
  }
632
 
633
  if (!sanitize_text_field($this->request->get('title'))) {
634
  wp_send_json([
635
- 'title' => 'The title field is required.'
636
  ], 422);
637
  }
638
  }
@@ -642,17 +637,15 @@ class Form
642
  $formId = $this->request->get('form_id');
643
  $form = $this->fetchForm($formId);
644
 
645
-
646
  if (!$form) {
647
  wp_send_json([
648
- 'message' => __('Form Not Found! Try Again.', 'fluentform')
649
  ], 422);
650
  }
651
  $formConverted['form_fields'] = \FluentForm\App\Services\FluentConversational\Classes\Converter\Converter::convertExistingForm($form);
652
 
653
  $this->model->where('id', $formId)->update($formConverted);
654
 
655
-
656
  $this->updateMeta($formId, 'is_conversion_form', 'yes');
657
  wp_send_json_success([
658
  'message' => __('Form has been successfully converted to conversational form.', 'fluentform'),
@@ -688,8 +681,10 @@ class Form
688
 
689
  /**
690
  * Map pdf feed ID to replace with duplicated PDF feed ID when duplicating form
 
691
  * @param array $extras
692
  * @param array $newFormId
 
693
  * @return array
694
  */
695
  private function getPdfFeedMap($extras, $newFormId)
@@ -700,7 +695,7 @@ class Form
700
  $pdfData = [
701
  'meta_key' => $pdf_feed->meta_key,
702
  'value' => $pdf_feed->value,
703
- 'form_id' => $newFormId
704
  ];
705
  $pdfFeedMap[$pdf_feed->id] = wpFluent()->table('fluentform_form_meta')->insert($pdfData);
706
  }
@@ -710,8 +705,10 @@ class Form
710
 
711
  /**
712
  * Map notification data with PDF feed map
 
713
  * @param array $extras
714
  * @param array $pdfFeedMap
 
715
  * @return array
716
  */
717
  private function notificationWithPdfMap($extras, $pdfFeedMap)
10
  class Form
11
  {
12
  /**
13
+ * Request object
14
+ *
15
  * @var \FluentForm\Framework\Request\Request $request
16
  */
17
  protected $request;
23
  */
24
  protected $defaultSettings;
25
 
 
26
  /**
27
  * Set this value when we need predefined default notifications.
28
  *
59
  /**
60
  * Get all forms from database
61
  *
 
62
  * @throws \Exception
63
  */
64
  public function index()
65
  {
66
  $forms = fluentFormApi('forms')->forms([
67
+ 'search' => $this->request->get('search'),
68
+ 'status' => $this->request->get('status'),
69
+ 'filter_by' => $this->request->get('filter_by', 'all'),
70
+ 'date_range' => $this->request->get('date_range', []),
71
  'sort_column' => $this->request->get('sort_column', 'id'),
72
  'sort_by' => $this->request->get('sort_by', 'DESC'),
73
  'per_page' => $this->request->get('per_page', 10),
77
  wp_send_json($forms, 200);
78
  }
79
 
 
80
  /**
81
  * Create a form from backend/editor
82
+ *
83
  * @return void|array
84
  */
85
  public function store($returnJSON = true)
97
  'status' => $status,
98
  'created_by' => $createdBy,
99
  'created_at' => $now,
100
+ 'updated_at' => $now,
101
  ];
102
 
103
  if ($this->formFields) {
111
  $formId = $this->model->insert($insertData);
112
 
113
  // Rename the form name here
114
+ wpFluent()->table('fluentform_forms')->where('id', $formId)->update([
115
+ 'title' => $title . ' (#' . $formId . ')',
116
+ ]);
117
 
118
  if ($this->metas && is_array($this->metas)) {
119
  foreach ($this->metas as $meta) {
120
  $meta['value'] = trim(preg_replace('/\s+/', ' ', $meta['value']));
121
 
122
  wpFluent()->table('fluentform_form_meta')
123
+ ->insert([
124
  'form_id' => $formId,
125
  'meta_key' => $meta['meta_key'],
126
+ 'value' => $meta['value'],
127
+ ]);
128
  }
129
  } else {
130
  // add default form settings now
133
  $defaultSettings = apply_filters('fluentform_create_default_settings', $defaultSettings);
134
 
135
  wpFluent()->table('fluentform_form_meta')
136
+ ->insert([
137
  'form_id' => $formId,
138
  'meta_key' => 'formSettings',
139
+ 'value' => json_encode($defaultSettings),
140
+ ]);
141
 
142
  if ($this->defaultNotifications) {
143
  wpFluent()->table('fluentform_form_meta')
144
+ ->insert([
145
  'form_id' => $formId,
146
  'meta_key' => 'notifications',
147
+ 'value' => json_encode($this->defaultNotifications),
148
+ ]);
149
  }
150
  }
151
 
152
  do_action('fluentform_inserted_new_form', $formId, $insertData);
153
 
154
+ $data = [
155
  'formId' => $formId,
156
  'redirect_url' => admin_url('admin.php?page=fluent_forms&form_id=' . $formId . '&route=editor'),
157
+ 'message' => __('Successfully created a form.', 'fluentform'),
158
+ ];
159
 
160
  if ($returnJSON) {
161
  wp_send_json_success($data, 200);
166
 
167
  public function getFormsDefaultSettings($formId = false)
168
  {
169
+ $defaultSettings = [
170
+ 'confirmation' => [
171
  'redirectTo' => 'samePage',
172
  'messageToShow' => __('Thank you for your message. We will get in touch with you shortly', 'fluentform'),
173
  'customPage' => null,
174
  'samePageFormBehavior' => 'hide_form',
175
+ 'customUrl' => null,
176
+ ],
177
+ 'restrictions' => [
178
+ 'limitNumberOfEntries' => [
179
  'enabled' => false,
180
  'numberOfEntries' => null,
181
  'period' => 'total',
182
+ 'limitReachedMsg' => 'Maximum number of entries exceeded.',
183
+ ],
184
+ 'scheduleForm' => [
185
  'enabled' => false,
186
  'start' => null,
187
  'end' => null,
188
  'selectedDays' => null,
189
+ 'pendingMsg' => __('Form submission is not started yet.', 'fluentform'),
190
+ 'expiredMsg' => __('Form submission is now closed.', 'fluentform'),
191
+ ],
192
+ 'requireLogin' => [
193
  'enabled' => false,
194
  'requireLoginMsg' => 'You must be logged in to submit the form.',
195
+ ],
196
+ 'denyEmptySubmission' => [
197
  'enabled' => false,
198
  'message' => __('Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.', 'fluentform'),
199
+ ],
200
+ ],
201
+ 'layout' => [
202
  'labelPlacement' => 'top',
203
  'helpMessagePlacement' => 'with_label',
204
  'errorMessagePlacement' => 'inline',
205
  'cssClassName' => '',
206
+ 'asteriskPlacement' => 'asterisk-right',
207
+ ],
208
+ 'delete_entry_on_submission' => 'no',
209
+ ];
210
 
211
  if ($formId) {
212
  $value = $this->getMeta($formId, 'formSettings', true);
226
  public function getAdvancedValidationSettings($formId)
227
  {
228
  $settings = [
229
+ 'status' => false,
230
+ 'type' => 'all',
231
+ 'conditions' => [
232
  [
233
  'field' => '',
234
  'operator' => '=',
235
+ 'value' => '',
236
+ ],
237
  ],
238
  'error_message' => '',
239
+ 'validation_type' => 'fail_on_condition_met',
240
  ];
241
 
242
  $metaSettings = $this->getMeta($formId, 'advancedValidationSettings', true);
279
  return wpFluent()->table('fluentform_form_meta')
280
  ->where('id', $exist->id)
281
  ->update([
282
+ 'value' => $metaValue,
283
  ]);
284
  }
285
 
286
  return wpFluent()->table('fluentform_form_meta')->insert([
287
  'form_id' => $formId,
288
  'meta_key' => $metaKey,
289
+ 'value' => $metaValue,
290
  ]);
291
  }
292
 
300
 
301
  /**
302
  * Find/Read a from from the database
 
303
  */
304
  public function find()
305
  {
310
  /**
311
  * Fetch a from from the database
312
  * Note: required for ninja-tables
313
+ *
314
  * @return mixed
315
  */
316
  public function fetchForm($formId)
320
 
321
  /**
322
  * Save/update a form from backend/editor
323
+ *
324
  * @throws \WpFluent\Exception
325
  */
326
  public function update()
334
  $data = [
335
  'title' => $title,
336
  'status' => $status,
337
+ 'updated_at' => current_time('mysql'),
338
  ];
339
 
 
340
  if ($formFields = $this->request->get('formFields')) {
341
  $formFields = apply_filters('fluentform_form_fields_update', $formFields, $formId);
342
  $formFields = $this->sanitizeFields($formFields);
349
 
350
  if (FormFieldsParser::hasPaymentFields($form)) {
351
  $this->model->where('id', $formId)->update([
352
+ 'has_payment' => 1,
353
  ]);
354
  } elseif ($form->has_payment) {
355
  $this->model->where('id', $formId)->update([
356
+ 'has_payment' => 0,
357
  ]);
358
  }
359
 
367
  }
368
 
369
  wp_send_json([
370
+ 'message' => __('The form is successfully updated.', 'fluentform'),
371
  ], 200);
372
  }
373
 
 
374
  private function sanitizeFields($formFields)
375
  {
376
+ if (fluentformCanUnfilteredHTML()) {
377
  return $formFields;
378
  }
379
 
396
  if (!is_array($fields)) {
397
  return $fields;
398
  }
399
+
400
  $attributesMap = [
401
  'name' => 'sanitize_key',
402
  'value' => 'sanitize_textarea_field',
403
  'id' => 'sanitize_key',
404
  'class' => 'sanitize_text_field',
405
+ 'placeholder' => 'sanitize_text_field',
406
  ];
407
  $attributesKeys = array_keys($attributesMap);
408
  $settingsMap = [
415
  'suffix_label' => 'sanitize_text_field',
416
  'unique_validation_message' => 'sanitize_text_field',
417
  'advanced_options' => 'fluentform_options_sanitize',
418
+ 'html_codes' => 'fluentform_sanitize_html',
419
  ];
420
  $settingsKeys = array_keys($settingsMap);
421
  $stylePrefMap = [
422
+ 'layout' => 'sanitize_key',
423
+ 'media' => 'sanitize_url',
424
+ 'alt_text' => 'sanitize_text_field',
425
  ];
426
  $stylePrefKeys = array_keys($stylePrefMap);
427
 
428
  foreach ($fields as $fieldIndex => $field) {
429
  $element = ArrayHelper::get($field, 'element');
430
 
431
+ if ('container' == $element) {
432
  $columns = $field['columns'];
433
  foreach ($columns as $columnIndex => $column) {
434
  $fields[$fieldIndex]['columns'][$columnIndex]['fields'] = $this->sanitizeFieldMaps($column['fields']);
445
  }
446
 
447
  if (!empty($field['attributes'])) {
448
+ $attributes = array_filter(ArrayHelper::only($field['attributes'], $attributesKeys));
449
  foreach ($attributes as $key => $value) {
450
  $fields[$fieldIndex]['attributes'][$key] = call_user_func($attributesMap[$key], $value);
451
  }
452
  }
453
 
454
  if (!empty($field['settings'])) {
455
+ $settings = array_filter(ArrayHelper::only($field['settings'], $settingsKeys));
456
  foreach ($settings as $key => $value) {
457
  $fields[$fieldIndex]['settings'][$key] = call_user_func($settingsMap[$key], $value);
458
  }
459
  }
460
 
461
  if (!empty($field['style_pref'])) {
462
+ $settings = array_filter(ArrayHelper::only($field['style_pref'], $stylePrefKeys));
463
  foreach ($settings as $key => $value) {
464
  $fields[$fieldIndex]['style_pref'][$key] = call_user_func($stylePrefMap[$key], $value);
465
  }
469
  return $fields;
470
  }
471
 
 
472
  /**
473
  * Delete a from from database
474
+ *
475
  * @throws \WpFluent\Exception
476
  */
477
  public function delete()
484
 
485
  wp_send_json([
486
  'message' => __('Successfully deleted the form.', 'fluentform'),
487
+ 'errors' => $maybeErrors,
488
  ], 200);
489
  }
490
 
 
491
  protected function deleteFormAssests($formId)
492
  {
493
  // Now Let's delete associate items
535
 
536
  /**
537
  * Duplicate a from
538
+ *
539
  * @throws \WpFluent\Exception
540
  */
541
  public function duplicate()
543
  $formId = absint($this->request->get('formId'));
544
  $form = $this->model->where('id', $formId)->first();
545
 
546
+ $data = [
547
  'title' => $form->title,
548
  'status' => $form->status,
549
  'appearance_settings' => $form->appearance_settings,
553
  'conditions' => $form->conditions,
554
  'created_by' => get_current_user_id(),
555
  'created_at' => current_time('mysql'),
556
+ 'updated_at' => current_time('mysql'),
557
+ ];
558
 
559
  $newFormId = $this->model->insert($data);
560
 
561
  // Rename the form name here
562
  wpFluent()->table('fluentform_forms')
563
  ->where('id', $newFormId)
564
+ ->update([
565
+ 'title' => $form->title . ' (#' . $newFormId . ')',
566
+ ]);
567
 
568
  $formMetas = wpFluent()->table('fluentform_form_meta')
569
  ->where('form_id', $formId)
574
  $extras = [];
575
 
576
  foreach ($formMetas as $meta) {
577
+ if ('notifications' == $meta->meta_key || '_pdf_feeds' == $meta->meta_key) {
578
  $extras[$meta->meta_key][] = $meta;
579
  continue;
580
  }
581
  $metaData = [
582
  'meta_key' => $meta->meta_key,
583
  'value' => $meta->value,
584
+ 'form_id' => $newFormId,
585
  ];
586
 
587
  wpFluent()->table('fluentform_form_meta')->insert($metaData);
594
  $notifyData = [
595
  'meta_key' => $notify->meta_key,
596
  'value' => $notify->value,
597
+ 'form_id' => $newFormId,
598
  ];
599
  wpFluent()->table('fluentform_form_meta')->insert($notifyData);
600
  }
605
  wp_send_json([
606
  'message' => __('Form has been successfully duplicated.', 'fluentform'),
607
  'form_id' => $newFormId,
608
+ 'redirect' => admin_url('admin.php?page=fluent_forms&route=editor&form_id=' . $newFormId),
609
  ], 200);
610
  }
611
 
612
  /**
613
  * Validate a form by form title & for duplicate name attributes
 
614
  */
615
  private function validate()
616
  {
620
  if ($duplicates) {
621
  $duplicateString = implode(', ', $duplicates);
622
  wp_send_json([
623
+ 'title' => sprintf('Name attribute %s has duplicate value.', $duplicateString),
624
  ], 422);
625
  }
626
  }
627
 
628
  if (!sanitize_text_field($this->request->get('title'))) {
629
  wp_send_json([
630
+ 'title' => 'The title field is required.',
631
  ], 422);
632
  }
633
  }
637
  $formId = $this->request->get('form_id');
638
  $form = $this->fetchForm($formId);
639
 
 
640
  if (!$form) {
641
  wp_send_json([
642
+ 'message' => __('Form Not Found! Try Again.', 'fluentform'),
643
  ], 422);
644
  }
645
  $formConverted['form_fields'] = \FluentForm\App\Services\FluentConversational\Classes\Converter\Converter::convertExistingForm($form);
646
 
647
  $this->model->where('id', $formId)->update($formConverted);
648
 
 
649
  $this->updateMeta($formId, 'is_conversion_form', 'yes');
650
  wp_send_json_success([
651
  'message' => __('Form has been successfully converted to conversational form.', 'fluentform'),
681
 
682
  /**
683
  * Map pdf feed ID to replace with duplicated PDF feed ID when duplicating form
684
+ *
685
  * @param array $extras
686
  * @param array $newFormId
687
+ *
688
  * @return array
689
  */
690
  private function getPdfFeedMap($extras, $newFormId)
695
  $pdfData = [
696
  'meta_key' => $pdf_feed->meta_key,
697
  'value' => $pdf_feed->value,
698
+ 'form_id' => $newFormId,
699
  ];
700
  $pdfFeedMap[$pdf_feed->id] = wpFluent()->table('fluentform_form_meta')->insert($pdfData);
701
  }
705
 
706
  /**
707
  * Map notification data with PDF feed map
708
+ *
709
  * @param array $extras
710
  * @param array $pdfFeedMap
711
+ *
712
  * @return array
713
  */
714
  private function notificationWithPdfMap($extras, $pdfFeedMap)
app/Modules/Form/FormDataParser.php CHANGED
@@ -25,7 +25,10 @@ class FormDataParser
25
  $fields = $fields ? $fields : FormFieldsParser::getEntryInputs($form);
26
 
27
  $entry->user_inputs = static::parseData(
28
- json_decode($entry->response), $fields, $form->id, $isHtml
 
 
 
29
  );
30
 
31
  return $entry;
@@ -35,7 +38,10 @@ class FormDataParser
35
  {
36
  if (is_null(static::$data)) {
37
  static::$data = static::parseData(
38
- json_decode($submission->response), $fields, $form->id, $isHtml
 
 
 
39
  );
40
  }
41
 
@@ -47,7 +53,7 @@ class FormDataParser
47
  public static function parseData($response, $fields, $formId, $isHtml = false)
48
  {
49
  $trans = [];
50
-
51
  foreach ($fields as $field_key => $field) {
52
  if (isset($response->{$field_key})) {
53
  $value = apply_filters(
@@ -69,7 +75,7 @@ class FormDataParser
69
  public static function formatValue($value)
70
  {
71
  if (is_array($value) || is_object($value)) {
72
- return fluentImplodeRecursive(', ', array_filter(array_values((array)$value)));
73
  }
74
 
75
  return $value;
@@ -86,7 +92,7 @@ class FormDataParser
86
  }
87
 
88
  if (!$isHtml) {
89
- return fluentImplodeRecursive(', ', array_filter(array_values((array)$values)));
90
  }
91
  if ($form_id && \FluentForm\App\Helpers\Helper::isEntryAutoDeleteEnabled($form_id)) {
92
  return '';
@@ -115,12 +121,12 @@ class FormDataParser
115
  }
116
 
117
  if (!$isHtml) {
118
- return fluentImplodeRecursive(', ', array_filter(array_values((array)$values)));
119
  }
120
  if ($form_id && \FluentForm\App\Helpers\Helper::isEntryAutoDeleteEnabled($form_id)) {
121
  return '';
122
  }
123
- if (count($values) == 1) {
124
  $value = $values[0];
125
  if (!$value) {
126
  return '';
@@ -162,23 +168,24 @@ class FormDataParser
162
  <div class="ff_entry_table_wrapper">
163
  <table class="ff_entry_table_field ff-table">
164
  <thead>
165
- <tr>
166
- <?php foreach ($repeatColumns as $repeatColumn) : ?>
167
- <th><?php echo ArrayHelper::get($repeatColumn, 'settings.label'); ?></th>
168
- <?php endforeach; ?>
169
- </tr>
 
170
  </thead>
171
 
172
  <tbody>
173
- <?php for ($i = 0; $i < $rows; $i++) : ?>
174
  <tr>
175
  <?php for ($j = 0; $j < $columns; $j++) : ?>
176
- <td>
177
- <?php fluentFormPrintUnescapedInternalString($value[$j][$i]); ?>
178
- </td>
179
  <?php endfor; ?>
180
  </tr>
181
- <?php endfor; ?>
182
  </tbody>
183
  </table>
184
  </div>
@@ -186,7 +193,6 @@ class FormDataParser
186
  }
187
  return ob_get_clean();
188
  } catch (Exception $e) {
189
-
190
  }
191
 
192
  return $value;
@@ -203,7 +209,7 @@ class FormDataParser
203
  }
204
 
205
  if (is_array($value)) {
206
- $value = (object)$value;
207
  }
208
  try {
209
  if (empty($field['raw'])) {
@@ -216,12 +222,11 @@ class FormDataParser
216
  $elMarkup = "<table class='ff-table'><thead><tr><th></th><th style='text-align: center;'>{$columnHeaders}</th></tr></thead><tbody>";
217
 
218
  foreach (static::makeTabularData($field['raw']) as $row) {
219
-
220
- $elMarkup .= "<tr>";
221
  $elMarkup .= "<td>{$row['label']}</td>";
222
  foreach ($row['columns'] as $column) {
223
  $isChecked = '';
224
- if ($fieldType == 'radio') {
225
  if (isset($value->{$row['name']})) {
226
  $isChecked = $value->{$row['name']} == $column['name'] ? 'checked' : '';
227
  }
@@ -234,16 +239,15 @@ class FormDataParser
234
  if ($isChecked) {
235
  $icon = '✔';
236
  }
237
- $elMarkup .= "<td style='text-align: center;'>" . $icon . "</td>";
238
  }
239
- $elMarkup .= "</tr>";
240
  }
241
 
242
- $elMarkup .= "</tbody></table>";
243
 
244
  return $elMarkup;
245
  } catch (Exception $e) {
246
-
247
  }
248
  return '';
249
  }
@@ -258,13 +262,13 @@ class FormDataParser
258
  $table[$rowKey] = [
259
  'name' => $rowKey,
260
  'label' => $rowValue,
261
- 'columns' => []
262
  ];
263
 
264
  foreach ($columns as $columnKey => $columnValue) {
265
  $table[$rowKey]['columns'][] = [
266
  'name' => $columnKey,
267
- 'label' => $columnValue
268
  ];
269
  }
270
  }
@@ -282,7 +286,7 @@ class FormDataParser
282
  public static function formatName($value)
283
  {
284
  if (is_array($value) || is_object($value)) {
285
- return fluentImplodeRecursive(' ', array_filter(array_values((array)$value)));
286
  }
287
 
288
  return $value;
@@ -308,14 +312,13 @@ class FormDataParser
308
  $html = '<ul style="white-space: normal;">';
309
  foreach ($values as $value) {
310
  $item = $value;
311
- if ($itemLabel = ArrayHelper::get($field, 'options.'.$item)) {
312
  $item = $itemLabel;
313
  }
314
- $html .= '<li>'.$item.'</li>';
315
  }
316
 
317
- return $html.'</ul>';
318
-
319
  }
320
 
321
  public static function resetData()
25
  $fields = $fields ? $fields : FormFieldsParser::getEntryInputs($form);
26
 
27
  $entry->user_inputs = static::parseData(
28
+ json_decode($entry->response),
29
+ $fields,
30
+ $form->id,
31
+ $isHtml
32
  );
33
 
34
  return $entry;
38
  {
39
  if (is_null(static::$data)) {
40
  static::$data = static::parseData(
41
+ json_decode($submission->response),
42
+ $fields,
43
+ $form->id,
44
+ $isHtml
45
  );
46
  }
47
 
53
  public static function parseData($response, $fields, $formId, $isHtml = false)
54
  {
55
  $trans = [];
56
+
57
  foreach ($fields as $field_key => $field) {
58
  if (isset($response->{$field_key})) {
59
  $value = apply_filters(
75
  public static function formatValue($value)
76
  {
77
  if (is_array($value) || is_object($value)) {
78
+ return fluentImplodeRecursive(', ', array_filter(array_values((array) $value)));
79
  }
80
 
81
  return $value;
92
  }
93
 
94
  if (!$isHtml) {
95
+ return fluentImplodeRecursive(', ', array_filter(array_values((array) $values)));
96
  }
97
  if ($form_id && \FluentForm\App\Helpers\Helper::isEntryAutoDeleteEnabled($form_id)) {
98
  return '';
121
  }
122
 
123
  if (!$isHtml) {
124
+ return fluentImplodeRecursive(', ', array_filter(array_values((array) $values)));
125
  }
126
  if ($form_id && \FluentForm\App\Helpers\Helper::isEntryAutoDeleteEnabled($form_id)) {
127
  return '';
128
  }
129
+ if (1 == count($values)) {
130
  $value = $values[0];
131
  if (!$value) {
132
  return '';
168
  <div class="ff_entry_table_wrapper">
169
  <table class="ff_entry_table_field ff-table">
170
  <thead>
171
+ <tr>
172
+ <?php foreach ($repeatColumns as $repeatColumn) : ?>
173
+ <th><?php echo fluentform_sanitize_html(ArrayHelper::get($repeatColumn, 'settings.label')); ?>
174
+ </th>
175
+ <?php endforeach; ?>
176
+ </tr>
177
  </thead>
178
 
179
  <tbody>
180
+ <?php for ($i = 0; $i < $rows; $i++) : ?>
181
  <tr>
182
  <?php for ($j = 0; $j < $columns; $j++) : ?>
183
+ <td>
184
+ <?php echo fluentform_sanitize_html($value[$j][$i]); ?>
185
+ </td>
186
  <?php endfor; ?>
187
  </tr>
188
+ <?php endfor; ?>
189
  </tbody>
190
  </table>
191
  </div>
193
  }
194
  return ob_get_clean();
195
  } catch (Exception $e) {
 
196
  }
197
 
198
  return $value;
209
  }
210
 
211
  if (is_array($value)) {
212
+ $value = (object) $value;
213
  }
214
  try {
215
  if (empty($field['raw'])) {
222
  $elMarkup = "<table class='ff-table'><thead><tr><th></th><th style='text-align: center;'>{$columnHeaders}</th></tr></thead><tbody>";
223
 
224
  foreach (static::makeTabularData($field['raw']) as $row) {
225
+ $elMarkup .= '<tr>';
 
226
  $elMarkup .= "<td>{$row['label']}</td>";
227
  foreach ($row['columns'] as $column) {
228
  $isChecked = '';
229
+ if ('radio' == $fieldType) {
230
  if (isset($value->{$row['name']})) {
231
  $isChecked = $value->{$row['name']} == $column['name'] ? 'checked' : '';
232
  }
239
  if ($isChecked) {
240
  $icon = '✔';
241
  }
242
+ $elMarkup .= "<td style='text-align: center;'>" . $icon . '</td>';
243
  }
244
+ $elMarkup .= '</tr>';
245
  }
246
 
247
+ $elMarkup .= '</tbody></table>';
248
 
249
  return $elMarkup;
250
  } catch (Exception $e) {
 
251
  }
252
  return '';
253
  }
262
  $table[$rowKey] = [
263
  'name' => $rowKey,
264
  'label' => $rowValue,
265
+ 'columns' => [],
266
  ];
267
 
268
  foreach ($columns as $columnKey => $columnValue) {
269
  $table[$rowKey]['columns'][] = [
270
  'name' => $columnKey,
271
+ 'label' => $columnValue,
272
  ];
273
  }
274
  }
286
  public static function formatName($value)
287
  {
288
  if (is_array($value) || is_object($value)) {
289
+ return fluentImplodeRecursive(' ', array_filter(array_values((array) $value)));
290
  }
291
 
292
  return $value;
312
  $html = '<ul style="white-space: normal;">';
313
  foreach ($values as $value) {
314
  $item = $value;
315
+ if ($itemLabel = ArrayHelper::get($field, 'options.' . $item)) {
316
  $item = $itemLabel;
317
  }
318
+ $html .= '<li>' . $item . '</li>';
319
  }
320
 
321
+ return $html . '</ul>';
 
322
  }
323
 
324
  public static function resetData()
app/Modules/Form/FormFieldsParser.php CHANGED
@@ -5,16 +5,18 @@ namespace FluentForm\App\Modules\Form;
5
  use FluentForm\App\Services\Parser\Form as FormParser;
6
 
7
  /**
8
- * @method array getShortCodeInputs(\stdClass $form, array $with = ['admin_label'])
9
- * @method array getValidations(\stdClass $form, array $inputs, array $fields = [])
10
- * @method array getElement(\stdClass $form, string|array $name, array $with = [])
11
- * @method boolean hasElement(\stdClass $form, string $name)
12
- * @method boolean hasPaymentFields(\stdClass $form)
13
- * @method array getPaymentFields(\stdClass $form, $with = [])
14
- * @method array getPaymentInputFields(\stdClass $form, $with = [])
15
- * @method array getAttachmentInputFields(\stdClass $form, $with = [])
16
- * @method boolean hasRequiredFields(\stdClass $form, array $fields)
17
- * @method array getInputsByElementTypes(\stdClass $form, array $elements, array $with = [])
 
 
18
  * @method array|null getField(\stdClass $form, string|array $element, string|array $attribute, array $with = [])
19
  */
20
  class FormFieldsParser
@@ -25,11 +27,11 @@ class FormFieldsParser
25
 
26
  public static function maybeResetForm($form, $with)
27
  {
28
- if(!is_object($form) && is_numeric($form)) {
29
  $form = wpFluent()->table('fluentform_forms')->find($form);
30
  }
31
 
32
- if(isset(static::$formsWith[$form->id]) && array_diff(static::$formsWith[$form->id], $with)) {
33
  static::$forms[$form->id] = [];
34
  }
35
  static::$formsWith[$form->id] = $with;
@@ -54,7 +56,7 @@ class FormFieldsParser
54
 
55
  public static function parse($key, $form, $with)
56
  {
57
- if(!is_object($form) && is_numeric($form)) {
58
  $form = wpFluent()->table('fluentform_forms')->find($form);
59
  }
60
 
@@ -66,7 +68,7 @@ class FormFieldsParser
66
  $parser = new FormParser($form);
67
  $method = str_replace(' ', '', ucwords(str_replace('_', ' ', $key)));
68
 
69
- static::$forms[$form->id][$key] = $parser->{'get'.$method}($with);
70
  }
71
 
72
  return static::$forms[$form->id][$key];
@@ -82,7 +84,7 @@ class FormFieldsParser
82
  $parser = new FormParser($form);
83
  static::$forms[$form->id]['admin_labels'] = $parser->getAdminLabels($fields);
84
  }
85
-
86
  return static::$forms[$form->id]['admin_labels'];
87
  }
88
 
@@ -90,8 +92,9 @@ class FormFieldsParser
90
  * Deligate dynamic static method calls to FormParser method.
91
  * And set the result to the store before returning to dev.
92
  *
93
- * @param string $method
94
- * @param array $parameters
 
95
  * @return mixed
96
  */
97
  public static function __callStatic($method, $parameters)
5
  use FluentForm\App\Services\Parser\Form as FormParser;
6
 
7
  /**
8
+ * Available methods
9
+ *
10
+ * @method array getShortCodeInputs(\stdClass $form, array $with = ['admin_label'])
11
+ * @method array getValidations(\stdClass $form, array $inputs, array $fields = [])
12
+ * @method array getElement(\stdClass $form, string|array $name, array $with = [])
13
+ * @method boolean hasElement(\stdClass $form, string $name)
14
+ * @method boolean hasPaymentFields(\stdClass $form)
15
+ * @method array getPaymentFields(\stdClass $form, $with = [])
16
+ * @method array getPaymentInputFields(\stdClass $form, $with = [])
17
+ * @method array getAttachmentInputFields(\stdClass $form, $with = [])
18
+ * @method boolean hasRequiredFields(\stdClass $form, array $fields)
19
+ * @method array getInputsByElementTypes(\stdClass $form, array $elements, array $with = [])
20
  * @method array|null getField(\stdClass $form, string|array $element, string|array $attribute, array $with = [])
21
  */
22
  class FormFieldsParser
27
 
28
  public static function maybeResetForm($form, $with)
29
  {
30
+ if (!is_object($form) && is_numeric($form)) {
31
  $form = wpFluent()->table('fluentform_forms')->find($form);
32
  }
33
 
34
+ if (isset(static::$formsWith[$form->id]) && array_diff(static::$formsWith[$form->id], $with)) {
35
  static::$forms[$form->id] = [];
36
  }
37
  static::$formsWith[$form->id] = $with;
56
 
57
  public static function parse($key, $form, $with)
58
  {
59
+ if (!is_object($form) && is_numeric($form)) {
60
  $form = wpFluent()->table('fluentform_forms')->find($form);
61
  }
62
 
68
  $parser = new FormParser($form);
69
  $method = str_replace(' ', '', ucwords(str_replace('_', ' ', $key)));
70
 
71
+ static::$forms[$form->id][$key] = $parser->{'get' . $method}($with);
72
  }
73
 
74
  return static::$forms[$form->id][$key];
84
  $parser = new FormParser($form);
85
  static::$forms[$form->id]['admin_labels'] = $parser->getAdminLabels($fields);
86
  }
87
+
88
  return static::$forms[$form->id]['admin_labels'];
89
  }
90
 
92
  * Deligate dynamic static method calls to FormParser method.
93
  * And set the result to the store before returning to dev.
94
  *
95
+ * @param string $method
96
+ * @param array $parameters
97
+ *
98
  * @return mixed
99
  */
100
  public static function __callStatic($method, $parameters)
app/Modules/Form/FormHandler.php CHANGED
@@ -18,16 +18,22 @@ use FluentForm\Framework\Helpers\ArrayHelper;
18
  class FormHandler
19
  {
20
  /**
 
 
21
  * @var \FluentForm\Framework\Foundation\Application
22
  */
23
  protected $app;
24
 
25
  /**
 
 
26
  * @var \FluentForm\Framework\Request\Request
27
  */
28
  protected $request;
29
 
30
  /**
 
 
31
  * @var array $formData
32
  */
33
  protected $formData;
@@ -54,6 +60,7 @@ class FormHandler
54
  * Set the form using it's ID.
55
  *
56
  * @param $formId
 
57
  * @return $this
58
  */
59
  public function setForm($formId)
@@ -70,7 +77,7 @@ class FormHandler
70
  // Parse the url encoded data from the request object.
71
  parse_str($this->app->request->get('data'), $data);
72
 
73
- $data['_wp_http_referer'] = urldecode( $data['_wp_http_referer'] );
74
 
75
  // Merge it back again to the request object.
76
  $this->app->request->merge(['data' => $data]);
@@ -81,8 +88,8 @@ class FormHandler
81
 
82
  if (!$this->form) {
83
  wp_send_json([
84
- 'errors' => [],
85
- 'message' => 'Sorry, No corresponding form found'
86
  ], 423);
87
  }
88
 
@@ -166,8 +173,8 @@ class FormHandler
166
 
167
  return [
168
  'insert_id' => $insertId,
169
- 'result' => $returnData,
170
- 'error' => $error
171
  ];
172
  }
173
 
@@ -182,7 +189,6 @@ class FormHandler
182
  $form->settings = $formSettings ? json_decode($formSettings->value, true) : [];
183
  }
184
 
185
-
186
  $confirmation = apply_filters(
187
  'fluentform_form_submission_confirmation',
188
  $form->settings['confirmation'],
@@ -190,11 +196,9 @@ class FormHandler
190
  $form
191
  );
192
 
193
- if ($confirmation['redirectTo'] == 'samePage') {
194
-
195
  $confirmation['messageToShow'] = apply_filters('fluentform_submission_message_parse', $confirmation['messageToShow'], $insertId, $formData, $form);
196
 
197
-
198
  $message = ShortCodeParser::parse(
199
  $confirmation['messageToShow'],
200
  $insertId,
@@ -204,23 +208,21 @@ class FormHandler
204
  true
205
  );
206
 
207
-
208
  $message = $message ? $message : 'The form has been successfully submitted.';
209
 
210
  $returnData = [
211
  'message' => do_shortcode($message),
212
- 'action' => $confirmation['samePageFormBehavior'],
213
  ];
214
-
215
  } else {
216
  $redirectUrl = Arr::get($confirmation, 'customUrl');
217
 
218
- if ($confirmation['redirectTo'] == 'customPage') {
219
  $redirectUrl = get_permalink($confirmation['customPage']);
220
  }
221
 
222
  if (
223
- (Arr::get($confirmation, 'enable_query_string') == 'yes') &&
224
  Arr::get($confirmation, 'query_strings')
225
  ) {
226
  if (strpos($redirectUrl, '?')) {
@@ -240,11 +242,11 @@ class FormHandler
240
  $isUrlParser
241
  );
242
 
243
- if($isUrlParser) {
244
  /*
245
  * For Empty Redirect Value
246
  */
247
- if(strpos($redirectUrl, '=&') || substr($redirectUrl, -1) == '=') {
248
  $urlArray = explode('?', $redirectUrl);
249
  $baseUrl = array_shift($urlArray);
250
 
@@ -255,7 +257,7 @@ class FormHandler
255
  $params = [];
256
  foreach ($queryParams as $queryParam) {
257
  $paramArray = explode('=', $queryParam);
258
- if(!empty($paramArray[1])) {
259
  $params[$paramArray[0]] = $paramArray[1];
260
  }
261
  }
@@ -275,7 +277,7 @@ class FormHandler
275
 
276
  $returnData = [
277
  'redirectUrl' => wp_sanitize_redirect(urldecode($redirectUrl)),
278
- 'message' => $message
279
  ];
280
  }
281
 
@@ -291,11 +293,12 @@ class FormHandler
291
  * Validate form data.
292
  *
293
  * @param $fields
 
294
  * @return bool
295
  */
296
  private function validate(&$fields)
297
  {
298
- $this->preventMaliciousAttacks();
299
 
300
  $this->validateRestrictions($fields);
301
 
@@ -306,9 +309,9 @@ class FormHandler
306
  $this->validateTurnstile();
307
 
308
  foreach ($fields as $fieldName => $field) {
309
- if(isset($this->formData[$fieldName])) {
310
  $element = $field['element'];
311
- $this->formData[$fieldName] = apply_filters('fluentform_input_data_'.$element, $this->formData[$fieldName], $field, $this->formData, $this->form);
312
  }
313
  }
314
 
@@ -353,7 +356,7 @@ class FormHandler
353
  $errors[$inputName] = [];
354
  }
355
 
356
- if(is_string($error)) {
357
  $error = [$error];
358
  }
359
 
@@ -362,15 +365,15 @@ class FormHandler
362
  }
363
 
364
  $errors = apply_filters('fluentform_validation_errors', $errors, $this->formData, $this->form, $fields);
365
-
366
- if (Helper::getFormMeta($this->form->id, '_has_user_registration') == 'yes' && !get_current_user_id()) {
367
  $errors = apply_filters('fluentform_validation_user_registration_errors', $errors, $this->formData, $this->form, $fields);
368
  }
369
-
370
- if (Helper::getFormMeta($this->form->id, '_has_user_update') == 'yes' && get_current_user_id()) {
371
  $errors = apply_filters('fluentform_validation_user_update_errors', $errors, $this->formData, $this->form, $fields);
372
  }
373
-
374
  if ($errors) {
375
  wp_send_json(['errors' => $errors], 423);
376
  }
@@ -392,8 +395,8 @@ class FormHandler
392
  if (!wp_verify_nonce($nonce, 'fluentform-submit-form')) {
393
  $errors = $this->app->applyFilters('fluentForm_nonce_error', [
394
  '_fluentformnonce' => [
395
- __('Nonce verification failed, please try again.', 'fluentform')
396
- ]
397
  ]);
398
  wp_send_json(['errors' => $errors], 422);
399
  }
@@ -403,12 +406,12 @@ class FormHandler
403
  protected function handleSpamError()
404
  {
405
  $settings = get_option('_fluentform_global_form_settings');
406
- if (!$settings || ArrayHelper::get($settings, 'misc.akismet_validation') != 'validation_failed') {
407
  return;
408
  }
409
 
410
- $errors = [
411
- '_fluentformakismet' => __('Submission marked as spammed. Please try again', 'fluentform')
412
  ];
413
 
414
  wp_send_json(['errors' => $errors], 422);
@@ -440,7 +443,7 @@ class FormHandler
440
  $keys = get_option('_fluentform_reCaptcha_details');
441
  $token = Arr::get($this->formData, 'g-recaptcha-response');
442
  $version = 'v2_visible';
443
- if(!empty($keys['api_version'])) {
444
  $version = $keys['api_version'];
445
  }
446
  $isValid = ReCaptcha::validate($token, $keys['secretKey'], $version);
@@ -449,9 +452,9 @@ class FormHandler
449
  wp_send_json([
450
  'errors' => [
451
  'g-recaptcha-response' => [
452
- __('reCaptcha verification failed, please try again.', 'fluentform')
453
- ]
454
- ]
455
  ], 422);
456
  }
457
  }
@@ -473,9 +476,9 @@ class FormHandler
473
  wp_send_json([
474
  'errors' => [
475
  'h-captcha-response' => [
476
- __('hCaptcha verification failed, please try again.', 'fluentform')
477
- ]
478
- ]
479
  ], 422);
480
  }
481
  }
@@ -497,9 +500,9 @@ class FormHandler
497
  wp_send_json([
498
  'errors' => [
499
  'cf-turnstile-response' => [
500
- __('Turnstile verification failed, please try again.', 'fluentform')
501
- ]
502
- ]
503
  ], 422);
504
  }
505
  }
@@ -520,8 +523,8 @@ class FormHandler
520
  $this->form->settings = $formSettings ? json_decode($formSettings->value, true) : [];
521
 
522
  $isAllowed = [
523
- 'status' => true,
524
- 'message' => ''
525
  ];
526
 
527
  // This will check the following restriction settings.
@@ -534,9 +537,9 @@ class FormHandler
534
  wp_send_json([
535
  'errors' => [
536
  'restricted' => [
537
- $isAllowed['message']
538
- ]
539
- ]
540
  ], 422);
541
  }
542
 
@@ -560,7 +563,7 @@ class FormHandler
560
  if (!FormFieldsParser::hasRequiredFields($this->form, $fields)) {
561
  // Filter out the form data which doesn't have values.
562
  $filteredFormData = array_filter(
563
- // Filter out the other meta fields that aren't actual inputs.
564
  array_intersect_key($this->formData, $fields)
565
  );
566
 
@@ -584,9 +587,9 @@ class FormHandler
584
  ? 'Sorry! You can\'t submit an empty form.'
585
  : $m,
586
  'fluentform'
587
- )
588
- ]
589
- ]
590
  ], 422);
591
  }
592
  }
@@ -597,6 +600,7 @@ class FormHandler
597
  * Prepare the data to be inserted to the database.
598
  *
599
  * @param boolean $formData
 
600
  * @return array
601
  */
602
  public function prepareInsertData($formData = false)
@@ -618,9 +622,9 @@ class FormHandler
618
  $serialNumber = $previousItem->serial_number + 1;
619
  }
620
 
621
- $browser = new Browser;
622
 
623
- $inputConfigs = FormFieldsParser::getEntryInputs($this->form, array('admin_label', 'raw'));
624
 
625
  $this->formData = apply_filters('fluentform_insert_response_data', $formData, $formId, $inputConfigs);
626
 
@@ -631,19 +635,18 @@ class FormHandler
631
  }
632
 
633
  $response = [
634
- 'form_id' => $formId,
635
  'serial_number' => $serialNumber,
636
- 'response' => json_encode($this->formData, JSON_UNESCAPED_UNICODE),
637
- 'source_url' => site_url(Arr::get($formData, '_wp_http_referer')),
638
- 'user_id' => get_current_user_id(),
639
- 'browser' => $browser->getBrowser(),
640
- 'device' => $browser->getPlatform(),
641
- 'ip' => $ipAddress,
642
- 'created_at' => current_time('mysql'),
643
- 'updated_at' => current_time('mysql')
644
  ];
645
 
646
-
647
  return apply_filters('fluentform_filter_insert_data', $response);
648
  }
649
 
@@ -651,8 +654,9 @@ class FormHandler
651
  * Delegate the validation rules & messages to the
652
  * ones that the validation library recognizes.
653
  *
654
- * @param $rules
655
- * @param $messages
 
656
  * @return array
657
  */
658
  protected function delegateValidations($rules, $messages, $search = [], $replace = [])
@@ -673,35 +677,35 @@ class FormHandler
673
  return [$rules, $messages];
674
  }
675
 
676
- /**
677
- * Prevents malicious attacks when the submission
678
- * count exceeds in an allowed interval.
679
- */
680
- public function preventMaliciousAttacks()
681
- {
682
- $prevent = apply_filters('fluentform/prevent_malicious_attacks', true, $this->form->id);
683
-
684
- if ($prevent) {
685
- $maxSubmissionCount = apply_filters('fluentform/max_submission_count', 5, $this->form->id);
686
- $minSubmissionInterval = apply_filters('fluentform/min_submission_interval', 30, $this->form->id);
687
-
688
- $interval = date('Y-m-d H:i:s', strtotime(current_time('mysql')) - $minSubmissionInterval);
689
-
690
- $submissionCount = wpFluent()->table('fluentform_submissions')
691
- ->where('status', '!=', 'trashed')
692
- ->where('ip', $this->app->request->getIp())
693
- ->where('created_at', '>=', $interval)
694
- ->count();
695
-
696
- if ($submissionCount >= $maxSubmissionCount) {
697
- wp_send_json([
698
- 'errors' => [
699
- 'restricted' => [
700
- __(apply_filters('fluentform/too_many_requests', 'Too Many Requests.', $this->form->id), 'fluentform')
701
- ]
702
- ]
703
- ], 429);
704
- }
705
- }
706
- }
707
  }
18
  class FormHandler
19
  {
20
  /**
21
+ * App instance
22
+ *
23
  * @var \FluentForm\Framework\Foundation\Application
24
  */
25
  protected $app;
26
 
27
  /**
28
+ * Request object
29
+ *
30
  * @var \FluentForm\Framework\Request\Request
31
  */
32
  protected $request;
33
 
34
  /**
35
+ * Form Data
36
+ *
37
  * @var array $formData
38
  */
39
  protected $formData;
60
  * Set the form using it's ID.
61
  *
62
  * @param $formId
63
+ *
64
  * @return $this
65
  */
66
  public function setForm($formId)
77
  // Parse the url encoded data from the request object.
78
  parse_str($this->app->request->get('data'), $data);
79
 
80
+ $data['_wp_http_referer'] = urldecode($data['_wp_http_referer']);
81
 
82
  // Merge it back again to the request object.
83
  $this->app->request->merge(['data' => $data]);
88
 
89
  if (!$this->form) {
90
  wp_send_json([
91
+ 'errors' => [],
92
+ 'message' => 'Sorry, No corresponding form found',
93
  ], 423);
94
  }
95
 
173
 
174
  return [
175
  'insert_id' => $insertId,
176
+ 'result' => $returnData,
177
+ 'error' => $error,
178
  ];
179
  }
180
 
189
  $form->settings = $formSettings ? json_decode($formSettings->value, true) : [];
190
  }
191
 
 
192
  $confirmation = apply_filters(
193
  'fluentform_form_submission_confirmation',
194
  $form->settings['confirmation'],
196
  $form
197
  );
198
 
199
+ if ('samePage' == $confirmation['redirectTo']) {
 
200
  $confirmation['messageToShow'] = apply_filters('fluentform_submission_message_parse', $confirmation['messageToShow'], $insertId, $formData, $form);
201
 
 
202
  $message = ShortCodeParser::parse(
203
  $confirmation['messageToShow'],
204
  $insertId,
208
  true
209
  );
210
 
 
211
  $message = $message ? $message : 'The form has been successfully submitted.';
212
 
213
  $returnData = [
214
  'message' => do_shortcode($message),
215
+ 'action' => $confirmation['samePageFormBehavior'],
216
  ];
 
217
  } else {
218
  $redirectUrl = Arr::get($confirmation, 'customUrl');
219
 
220
+ if ('customPage' == $confirmation['redirectTo']) {
221
  $redirectUrl = get_permalink($confirmation['customPage']);
222
  }
223
 
224
  if (
225
+ ('yes' == Arr::get($confirmation, 'enable_query_string')) &&
226
  Arr::get($confirmation, 'query_strings')
227
  ) {
228
  if (strpos($redirectUrl, '?')) {
242
  $isUrlParser
243
  );
244
 
245
+ if ($isUrlParser) {
246
  /*
247
  * For Empty Redirect Value
248
  */
249
+ if (strpos($redirectUrl, '=&') || '=' == substr($redirectUrl, -1)) {
250
  $urlArray = explode('?', $redirectUrl);
251
  $baseUrl = array_shift($urlArray);
252
 
257
  $params = [];
258
  foreach ($queryParams as $queryParam) {
259
  $paramArray = explode('=', $queryParam);
260
+ if (!empty($paramArray[1])) {
261
  $params[$paramArray[0]] = $paramArray[1];
262
  }
263
  }
277
 
278
  $returnData = [
279
  'redirectUrl' => wp_sanitize_redirect(urldecode($redirectUrl)),
280
+ 'message' => $message,
281
  ];
282
  }
283
 
293
  * Validate form data.
294
  *
295
  * @param $fields
296
+ *
297
  * @return bool
298
  */
299
  private function validate(&$fields)
300
  {
301
+ $this->preventMaliciousAttacks();
302
 
303
  $this->validateRestrictions($fields);
304
 
309
  $this->validateTurnstile();
310
 
311
  foreach ($fields as $fieldName => $field) {
312
+ if (isset($this->formData[$fieldName])) {
313
  $element = $field['element'];
314
+ $this->formData[$fieldName] = apply_filters('fluentform_input_data_' . $element, $this->formData[$fieldName], $field, $this->formData, $this->form);
315
  }
316
  }
317
 
356
  $errors[$inputName] = [];
357
  }
358
 
359
+ if (is_string($error)) {
360
  $error = [$error];
361
  }
362
 
365
  }
366
 
367
  $errors = apply_filters('fluentform_validation_errors', $errors, $this->formData, $this->form, $fields);
368
+
369
+ if ('yes' == Helper::getFormMeta($this->form->id, '_has_user_registration') && !get_current_user_id()) {
370
  $errors = apply_filters('fluentform_validation_user_registration_errors', $errors, $this->formData, $this->form, $fields);
371
  }
372
+
373
+ if ('yes' == Helper::getFormMeta($this->form->id, '_has_user_update') && get_current_user_id()) {
374
  $errors = apply_filters('fluentform_validation_user_update_errors', $errors, $this->formData, $this->form, $fields);
375
  }
376
+
377
  if ($errors) {
378
  wp_send_json(['errors' => $errors], 423);
379
  }
395
  if (!wp_verify_nonce($nonce, 'fluentform-submit-form')) {
396
  $errors = $this->app->applyFilters('fluentForm_nonce_error', [
397
  '_fluentformnonce' => [
398
+ __('Nonce verification failed, please try again.', 'fluentform'),
399
+ ],
400
  ]);
401
  wp_send_json(['errors' => $errors], 422);
402
  }
406
  protected function handleSpamError()
407
  {
408
  $settings = get_option('_fluentform_global_form_settings');
409
+ if (!$settings || 'validation_failed' != ArrayHelper::get($settings, 'misc.akismet_validation')) {
410
  return;
411
  }
412
 
413
+ $errors = [
414
+ '_fluentformakismet' => __('Submission marked as spammed. Please try again', 'fluentform'),
415
  ];
416
 
417
  wp_send_json(['errors' => $errors], 422);
443
  $keys = get_option('_fluentform_reCaptcha_details');
444
  $token = Arr::get($this->formData, 'g-recaptcha-response');
445
  $version = 'v2_visible';
446
+ if (!empty($keys['api_version'])) {
447
  $version = $keys['api_version'];
448
  }
449
  $isValid = ReCaptcha::validate($token, $keys['secretKey'], $version);
452
  wp_send_json([
453
  'errors' => [
454
  'g-recaptcha-response' => [
455
+ __('reCaptcha verification failed, please try again.', 'fluentform'),
456
+ ],
457
+ ],
458
  ], 422);
459
  }
460
  }
476
  wp_send_json([
477
  'errors' => [
478
  'h-captcha-response' => [
479
+ __('hCaptcha verification failed, please try again.', 'fluentform'),
480
+ ],
481
+ ],
482
  ], 422);
483
  }
484
  }
500
  wp_send_json([
501
  'errors' => [
502
  'cf-turnstile-response' => [
503
+ __('Turnstile verification failed, please try again.', 'fluentform'),
504
+ ],
505
+ ],
506
  ], 422);
507
  }
508
  }
523
  $this->form->settings = $formSettings ? json_decode($formSettings->value, true) : [];
524
 
525
  $isAllowed = [
526
+ 'status' => true,
527
+ 'message' => '',
528
  ];
529
 
530
  // This will check the following restriction settings.
537
  wp_send_json([
538
  'errors' => [
539
  'restricted' => [
540
+ $isAllowed['message'],
541
+ ],
542
+ ],
543
  ], 422);
544
  }
545
 
563
  if (!FormFieldsParser::hasRequiredFields($this->form, $fields)) {
564
  // Filter out the form data which doesn't have values.
565
  $filteredFormData = array_filter(
566
+ // Filter out the other meta fields that aren't actual inputs.
567
  array_intersect_key($this->formData, $fields)
568
  );
569
 
587
  ? 'Sorry! You can\'t submit an empty form.'
588
  : $m,
589
  'fluentform'
590
+ ),
591
+ ],
592
+ ],
593
  ], 422);
594
  }
595
  }
600
  * Prepare the data to be inserted to the database.
601
  *
602
  * @param boolean $formData
603
+ *
604
  * @return array
605
  */
606
  public function prepareInsertData($formData = false)
622
  $serialNumber = $previousItem->serial_number + 1;
623
  }
624
 
625
+ $browser = new Browser();
626
 
627
+ $inputConfigs = FormFieldsParser::getEntryInputs($this->form, ['admin_label', 'raw']);
628
 
629
  $this->formData = apply_filters('fluentform_insert_response_data', $formData, $formId, $inputConfigs);
630
 
635
  }
636
 
637
  $response = [
638
+ 'form_id' => $formId,
639
  'serial_number' => $serialNumber,
640
+ 'response' => json_encode($this->formData, JSON_UNESCAPED_UNICODE),
641
+ 'source_url' => site_url(Arr::get($formData, '_wp_http_referer')),
642
+ 'user_id' => get_current_user_id(),
643
+ 'browser' => $browser->getBrowser(),
644
+ 'device' => $browser->getPlatform(),
645
+ 'ip' => $ipAddress,
646
+ 'created_at' => current_time('mysql'),
647
+ 'updated_at' => current_time('mysql'),
648
  ];
649
 
 
650
  return apply_filters('fluentform_filter_insert_data', $response);
651
  }
652
 
654
  * Delegate the validation rules & messages to the
655
  * ones that the validation library recognizes.
656
  *
657
+ * @param $rules
658
+ * @param $messages
659
+ *
660
  * @return array
661
  */
662
  protected function delegateValidations($rules, $messages, $search = [], $replace = [])
677
  return [$rules, $messages];
678
  }
679
 
680
+ /**
681
+ * Prevents malicious attacks when the submission
682
+ * count exceeds in an allowed interval.
683
+ */
684
+ public function preventMaliciousAttacks()
685
+ {
686
+ $prevent = apply_filters('fluentform/prevent_malicious_attacks', true, $this->form->id);
687
+
688
+ if ($prevent) {
689
+ $maxSubmissionCount = apply_filters('fluentform/max_submission_count', 5, $this->form->id);
690
+ $minSubmissionInterval = apply_filters('fluentform/min_submission_interval', 30, $this->form->id);
691
+
692
+ $interval = date('Y-m-d H:i:s', strtotime(current_time('mysql')) - $minSubmissionInterval);
693
+
694
+ $submissionCount = wpFluent()->table('fluentform_submissions')
695
+ ->where('status', '!=', 'trashed')
696
+ ->where('ip', $this->app->request->getIp())
697
+ ->where('created_at', '>=', $interval)
698
+ ->count();
699
+
700
+ if ($submissionCount >= $maxSubmissionCount) {
701
+ wp_send_json([
702
+ 'errors' => [
703
+ 'restricted' => [
704
+ __(apply_filters('fluentform/too_many_requests', 'Too Many Requests.', $this->form->id), 'fluentform'),
705
+ ],
706
+ ],
707
+ ], 429);
708
+ }
709
+ }
710
+ }
711
  }
app/Modules/Form/HoneyPot.php CHANGED
@@ -5,7 +5,6 @@ namespace FluentForm\App\Modules\Form;
5
  use FluentForm\Framework\Foundation\Application;
6
  use FluentForm\Framework\Helpers\ArrayHelper;
7
 
8
-
9
  class HoneyPot
10
  {
11
  private $app;
@@ -21,8 +20,9 @@ class HoneyPot
21
  return;
22
  }
23
  ?>
24
- <span style="display: none !important;"><input type="checkbox" name="<?php echo esc_attr($this->getFieldName($form->id)); ?>" value="1"
25
- style="display:none !important;" tabindex="-1"></span>
 
26
  <?php
27
  }
28
 
@@ -36,9 +36,11 @@ class HoneyPot
36
  if (ArrayHelper::get($requestData, $this->getFieldName($formId))) {
37
  // It's a bot! Block him
38
  wp_send_json(
39
- array(
40
- 'errors' => 'Sorry! You can not submit this form at this moment!'
41
- ), 422);
 
 
42
  }
43
 
44
  return;
@@ -47,7 +49,7 @@ class HoneyPot
47
  public function isEnabled($formId = false)
48
  {
49
  $option = get_option('_fluentform_global_form_settings');
50
- $status = ArrayHelper::get($option, 'misc.honeypotStatus') == 'yes';
51
  return apply_filters('fluentform_honeypot_status', $status, $formId);
52
  }
53
 
@@ -55,5 +57,4 @@ class HoneyPot
55
  {
56
  return apply_filters('fluentform_honeypot_name', 'item__' . $formId . '__fluent_checkme_', $formId);
57
  }
58
-
59
- }
5
  use FluentForm\Framework\Foundation\Application;
6
  use FluentForm\Framework\Helpers\ArrayHelper;
7
 
 
8
  class HoneyPot
9
  {
10
  private $app;
20
  return;
21
  }
22
  ?>
23
+ <span style="display: none !important;"><input type="checkbox"
24
+ name="<?php echo esc_attr($this->getFieldName($form->id)); ?>"
25
+ value="1" style="display:none !important;" tabindex="-1"></span>
26
  <?php
27
  }
28
 
36
  if (ArrayHelper::get($requestData, $this->getFieldName($formId))) {
37
  // It's a bot! Block him
38
  wp_send_json(
39
+ [
40
+ 'errors' => 'Sorry! You can not submit this form at this moment!',
41
+ ],
42
+ 422
43
+ );
44
  }
45
 
46
  return;
49
  public function isEnabled($formId = false)
50
  {
51
  $option = get_option('_fluentform_global_form_settings');
52
+ $status = 'yes' == ArrayHelper::get($option, 'misc.honeypotStatus');
53
  return apply_filters('fluentform_honeypot_status', $status, $formId);
54
  }
55
 
57
  {
58
  return apply_filters('fluentform_honeypot_name', 'item__' . $formId . '__fluent_checkme_', $formId);
59
  }
60
+ }
 
app/Modules/Form/Inputs.php CHANGED
@@ -11,12 +11,15 @@ use FluentForm\Framework\Helpers\ArrayHelper;
11
  class Inputs
12
  {
13
  /**
 
 
14
  * @var \FluentForm\Framework\Request\Request
15
  */
16
  private $request;
17
 
18
  /**
19
  * Build the class instance
 
20
  * @throws \Exception
21
  */
22
  public function __construct(Application $application)
@@ -32,9 +35,9 @@ class Inputs
32
  $formId = $this->request->get('formId');
33
 
34
  $form = wpFluent()->table('fluentform_forms')->find($formId);
35
-
36
  $fields = FormFieldsParser::getShortCodeInputs($form, [
37
- 'admin_label', 'attributes', 'options'
38
  ]);
39
 
40
  $fields = array_filter($fields, function ($field) {
@@ -66,7 +69,7 @@ class Inputs
66
  'input_hidden',
67
  'input_file',
68
  'input_image',
69
- 'subscription_payment_component'
70
  ];
71
 
72
  return apply_filters('fluentform_supported_conditional_fields', $supportedConditionalFields);
@@ -76,12 +79,12 @@ class Inputs
76
  {
77
  foreach ($fields as $index => $field) {
78
  $element = ArrayHelper::get($field, 'element');
79
- if ($element == 'select_country') {
80
  $fields[$index]['options'] = App::load(
81
  App::appPath('Services/FormBuilder/CountryNames.php')
82
  );
83
- } elseif ($element == 'gdpr-agreement' || $element == 'terms_and_condition') {
84
- $fields[$index]['options'] = array('on' => 'Checked');
85
  }
86
  }
87
 
11
  class Inputs
12
  {
13
  /**
14
+ * Request object
15
+ *
16
  * @var \FluentForm\Framework\Request\Request
17
  */
18
  private $request;
19
 
20
  /**
21
  * Build the class instance
22
+ *
23
  * @throws \Exception
24
  */
25
  public function __construct(Application $application)
35
  $formId = $this->request->get('formId');
36
 
37
  $form = wpFluent()->table('fluentform_forms')->find($formId);
38
+
39
  $fields = FormFieldsParser::getShortCodeInputs($form, [
40
+ 'admin_label', 'attributes', 'options',
41
  ]);
42
 
43
  $fields = array_filter($fields, function ($field) {
69
  'input_hidden',
70
  'input_file',
71
  'input_image',
72
+ 'subscription_payment_component',
73
  ];
74
 
75
  return apply_filters('fluentform_supported_conditional_fields', $supportedConditionalFields);
79
  {
80
  foreach ($fields as $index => $field) {
81
  $element = ArrayHelper::get($field, 'element');
82
+ if ('select_country' == $element) {
83
  $fields[$index]['options'] = App::load(
84
  App::appPath('Services/FormBuilder/CountryNames.php')
85
  );
86
+ } elseif ('gdpr-agreement' == $element || 'terms_and_condition' == $element) {
87
+ $fields[$index]['options'] = ['on' => 'Checked'];
88
  }
89
  }
90
 
app/Modules/Form/Predefined.php CHANGED
@@ -9,21 +9,22 @@ class Predefined extends Form
9
  {
10
  /**
11
  * all JSON data will be stored here
12
- * @return array
 
13
  */
14
  private function getPredefinedForms()
15
  {
16
- $forms = array(
17
 
18
- 'blank_form' => array(
19
  'screenshot' => App::publicUrl('img/forms/new_blank.png'),
20
  'createable' => true,
21
  'title' => 'Blank Form',
22
- 'tag' => ["blank"],
23
  'category' => 'Basic',
24
  'brief' => '',
25
- 'json' => '[{"id":"132","title":"Blank Form","form":{"fields":[],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline","asteriskPlacement": "asterisk-right"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
26
- ),
27
 
28
  // 'login_form' => array(
29
  // 'screenshot' => App::publicUrl('img/forms/login_form.png'),
@@ -36,777 +37,775 @@ class Predefined extends Form
36
  // 'json' => '[{"id":"40","title":"Login Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"username","value":"","class":"","placeholder":"","maxlength":""},"settings":{"container_class":"","label":"Username \/ Email","label_placement":"","admin_field_label":"","help_message":"","prefix_label":"","suffix_label":"","validation_rules":{"required":{"value":true,"message":"The username field is required."}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"is_unique":"no","unique_validation_message":"This value need to be unique."},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"uniqElKey":"el_16439840653180.5950104089952024"},{"index":12,"element":"input_password","attributes":{"type":"password","name":"password","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Password","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"The password field is required."}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Password Field","icon_class":"ff-edit-password","template":"inputText"},"uniqElKey":"el_16439840677840.8106538437875277"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"remember","value":[]},"settings":{"dynamic_default_value":"","container_class":"","label":"Checkbox Field","admin_field_label":"","label_placement":"hide_label","display_type":"","help_message":"","advanced_options":[{"label":"Remember Me","value":"Remember Me","calc_value":"","image":"","id":0}],"calc_value_status":false,"enable_image_input":false,"values_visible":false,"randomize_options":"no","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"layout_class":""},"editor_options":{"title":"Check Box","icon_class":"ff-edit-checkbox-1","template":"inputCheckable"},"uniqElKey":"el_16439840708000.3612537438431451"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Login","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"form","conditions":null,"created_by":"1","created_at":"2022-02-04 14:14:14","updated_at":"2022-02-04 14:16:22","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>You\'ve been logged in successfully.<\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\",\"selectedDays\":[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"]},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\"}"},{"meta_key":"template_name","value":"blank_form"},{"meta_key":"_primary_email_field","value":""}]}]'
37
  // ),
38
 
39
- 'basic_contact_form' => array(
40
  'screenshot' => App::publicUrl('img/forms/contact_form.png'),
41
  'createable' => true,
42
  'title' => 'Contact Form',
43
  'is_pro' => false,
44
  'brief' => 'Create a basic contact form',
45
- 'category' => "Basic",
46
- 'tag' => ["contact", "registration", "form", "basic"],
47
- 'json' => '[{"id":"15","title":"Contact Form Demo","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name"},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_1570866006692"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_1570866012914"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"subject","value":"","class":"","placeholder":"Subject"},"settings":{"container_class":"","label":"Subject","label_placement":"","admin_field_label":"Subject","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"uniqElKey":"el_1570878958648"},{"index":3,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Your Message","rows":4,"cols":2},"settings":{"container_class":"","label":"Your Message","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Text Area","icon_class":"ff-edit-textarea","template":"inputTextarea"},"uniqElKey":"el_1570879001207"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline","asteriskPlacement":"asterisk-right"},"id":"39"},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
48
- ),
49
 
50
- 'conversational' => array(
51
  'screenshot' => App::publicUrl('img/forms/conversational.gif'),
52
  'createable' => true,
53
  'title' => 'Conversational Form',
54
  'brief' => 'Create Smart form UI',
55
  'category' => 'Basic',
56
  'tag' => ['contact', 'typeform', 'conversational', 'form'],
57
- 'json' => '[{"id":"8","title":"Conversational Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":"eg: John Doe","maxlength":""},"settings":{"container_class":"","label":"Your Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"This value need to be unique."},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"style_pref":{"layout":"default","media":"' . $this->getRandomPhoto() . '","brightness":0,"alt_text":"","media_x_position":50,"media_y_position":50},"uniqElKey":"el_16225264130200.4393750282723139"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"Please Provide your Email Address","admin_field_label":"Email Address","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"style_pref":{"layout":"default","media":"' . $this->getRandomPhoto() . '","brightness":0,"alt_text":"","media_x_position":50,"media_y_position":50},"uniqElKey":"el_16225264372080.5731140635572141"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":"Query Subject","maxlength":""},"settings":{"container_class":"","label":"Subject","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"This value need to be unique."},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"style_pref":{"layout":"default","media":"' . $this->getRandomPhoto() . '","brightness":0,"alt_text":"","media_x_position":50,"media_y_position":50},"uniqElKey":"el_16225264620550.8688317001333026"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"Your Query","rows":3,"cols":2,"maxlength":""},"settings":{"container_class":"","label":"Your Query","admin_field_label":"Query","label_placement":"","help_message":"Please let us know details about your query","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Text Area","icon_class":"ff-edit-textarea","template":"inputTextarea"},"style_pref":{"layout":"default","media":"' . $this->getRandomPhoto() . '","brightness":0,"alt_text":"","media_x_position":50,"media_y_position":50},"uniqElKey":"el_16225264839650.04799061605619115"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"form","conditions":null,"created_by":"1","created_at":"2021-06-01 05:25:54","updated_at":"2021-06-01 05:48:59","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<h2>Thank you for your message. We will get in touch with you shortly<\/h2>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\",\"selectedDays\":[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"]},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let us hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\"}"},{"meta_key":"is_conversion_form","value":"yes"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_primary_email_field","value":"email"}]}]'
58
- ),
59
 
60
  //form number : 84
61
- 'newsletter_form' => array(
62
  'screenshot' => App::publicUrl('img/forms/comment_rating.png'),
63
  'createable' => true,
64
  'title' => 'Newsletter Form',
65
  'is_pro' => false,
66
  'brief' => 'This form can be used to create newsletters.',
67
- 'category' => "Basic",
68
- 'tag' => ["Newsletter", "website", "tech", "subscriber"],
69
- 'json' => '[{"id":"84","title":"Newsletter Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"<h3 style=\"text-align: center;\">Subscribe to our newsletter<\/h3>\n<p style=\"text-align: center;\">Welcome to our Newsletter Subscription Center. Sign up in the newsletter form below to receive the latest news and updates from our company.<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570690779710"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570702292674"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"left","help_message":"N:B: We will send you an email describing how to activate your newsletter subscription.","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570690876531"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"right","button_style":"red","container_class":"","help_message":"","background_color":"#F56C6C","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Subscribe","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
70
- ),
71
-
72
 
73
- 'support_form' => array(
74
  'screenshot' => App::publicUrl('img/forms/support_form.png'),
75
  'createable' => true,
76
  'title' => 'Support Form',
77
  'brief' => 'Using this support form users can ask questions.',
78
- 'category' => "Basic",
79
- 'tag' => ["support", "request", "contact"],
80
- 'json' => '[{"id":"4","title":"Support Form","form":{"fields":[{"index":2,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"First Name field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1516797727681"},{"index":7,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"you@domain.com"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Email field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1516797731343"},{"index":3,"element":"select","attributes":{"name":"department","value":"","id":"","class":""},"settings":{"label":"Department","help_message":"","container_class":"","label_placement":"","placeholder":"- Select Department -","validation_rules":{"required":{"value":true,"message":"Department field is required"}},"conditional_logics":[]},"options":{"Web Design":"Web Design","Web Development":"Web Development","WordPress Development":"WordPress Development","DevOps":"DevOps"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1516797735245"},{"index":1,"element":"input_text","attributes":{"type":"text","name":"subject","value":"","class":"","placeholder":"Type your subject"},"settings":{"container_class":"","label":"Subject","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Subject field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Input","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1516797770161"},{"index":2,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Description","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1516797774136"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Support Form Notification","sendTo":{"type":"email","email":"{wp.admin_email}","field":null,"routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"{inputs.subject}, Support Form","message":"<p>{all_data}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
81
- ),
82
 
83
- 'inline_subscription' => array(
84
  'screenshot' => App::publicUrl('img/forms/inline_subscription.png'),
85
  'createable' => true,
86
  'title' => 'Optin Form',
87
  'brief' => 'Create inline optin form.',
88
- 'category' => "Basic",
89
- 'tag' => ["optin form", "newsletter"],
90
- 'json' => '[{"id":"8","title":"Subscription Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":1,"element":"container","attributes":[],"settings":{"container_class":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"columns":[{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Your Email Address"},"settings":{"container_class":"","label":"","label_placement":"","help_message":"","admin_field_label":"Email","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_16231279686950.8779857923682932"}]},{"fields":[{"index":15,"element":"custom_submit_button","attributes":{"class":"","type":"submit"},"settings":{"button_style":"","button_size":"md","align":"left","container_class":"","current_state":"normal_styles","background_color":"","color":"","hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":"100%"},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":"100%"},"button_ui":{"text":"Subscribe","type":"default","img_url":""},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom Submit Button","icon_class":"dashicons dashicons-arrow-right-alt","template":"customButton"},"uniqElKey":"el_16231279798380.5947400167493171"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_16231279284710.40955091024524304"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Subscribe","img_url":""}},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"form","conditions":null,"created_by":"1","created_at":"2021-06-08 04:51:36","updated_at":"2021-06-08 04:54:02","metas":[{"meta_key": "template_name","value": "inline_subscription"},{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"Thank you for your message. We will get in touch with you shortly\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<p>{all_data}<\\\/p>\\n<p>This form submitted at: {embed_post.permalink}<\\\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\"}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_primary_email_field","value":"email"}]}]'
91
- ),
92
 
93
- 'polling_form' => array(
94
  'screenshot' => App::publicUrl('img/forms/polling_form.png'),
95
  'createable' => true,
96
  'title' => 'Polling Form',
97
  'brief' => 'A sample polling form to get user opinion from your scheduled time.',
98
- 'category' => "Marketing",
99
- 'tag' => ["poll", "vote", "quiz", "test"],
100
- 'json' => '[{"id":"14","title":"Polling Form","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Full Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Full Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1559116201333"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"Email","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1559116203187"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Which game you want to play?","admin_field_label":"Which game you want to play?","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Football":"Football","Cricket":"Cricket","Hocky":"Hocky"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1559116572343"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Time of the match?","admin_field_label":"Time of the match?","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Morning":"Morning","Afternoon":"Afternoon","Any time":"Any time"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1559116394587"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Put your suggestion (optional)","admin_field_label":"suggestions","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1559188488518"}],"submitButton":{"uniqElKey":"el_1559116097684","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"green","container_class":"","help_message":"","background_color":"#67C23A","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Your opinion","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline","cssClassName":""}},"notifications":{"name":"Polling Form Notification","sendTo":{"type":"email","email":"{wp.admin_email}","field":null,"routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"Polling Form","message":"<p>{all_data}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
101
- ),
102
 
103
  //form number : 55
104
- 'product_order_form' => array(
105
  'screenshot' => '',
106
  'createable' => true,
107
  'title' => 'Product Order Form',
108
  'is_pro' => true,
109
  'brief' => 'Use this form to create a product order. (Payment Module is required)',
110
- 'category' => "Product",
111
- 'tag' => ["Shopping", "online order", "customer", "contact", "payment"],
112
- 'json' => '[{"id":"200","title":"Product Order Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[],"label_placement":"top"},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name","maxlength":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"Middle Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_15924974034200.26712438122064186"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_15924974402130.012591725433457768"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address_1","data-type":"address-element"},"settings":{"label":"Shipping Address","admin_field_label":"Address","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":"Address Line 1"},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":"Address Line 2"},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":"City"},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":"State"},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"Zip","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"Select Country","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"priority_based","visible_list":[],"hidden_list":[],"priority_based":[]},"conditional_logics":[]},"options":{"US":"US of America","UK":"United Kingdom"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"ff-edit-address","template":"addressFields"},"uniqElKey":"el_15924974518640.796545629032311"},{"index":8,"element":"multi_payment_component","attributes":{"type":"checkbox","name":"payment_input","value":""},"settings":{"container_class":"","label":"Choose your Products","admin_field_label":"Product","label_placement":"","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"Product Item 1 - $10","value":10,"image":""},{"label":"Product Item 2 - $19","value":"19"},{"label":"Product Item 3 - $29","value":"29"}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"layout_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1592497499371"},{"index":10,"element":"payment_method","attributes":{"name":"payment_method","type":"radio","value":""},"settings":{"container_class":"","label":"Choose Payment Method","default_method":"","label_placement":"","help_message":"","payment_methods":{"stripe":{"title":"Credit\/Debit Card (Stripe)","enabled":"yes","method_value":"stripe","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with Card (Stripe)","label":"Method Label"},"require_billing_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Billing info"},"require_shipping_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Collect Shipping Info"}}},"paypal":{"title":"PayPal","enabled":"yes","method_value":"paypal","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with PayPal","label":"Method Label"},"require_shipping_address":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Shipping Address"}}},"test":{"title":"Test Payment","enabled":"yes","method_value":"test","settings":{"option_label":{"type":"text","template":"inputText","value":"Test Payment","label":"Method Label"}}}},"admin_field_label":"","conditional_logics":[]},"editor_options":{"title":"Payment Method Field","icon_class":"ff-edit-credit-card","template":"inputPaymentMethods"},"uniqElKey":"el_15924975611200.8035560583323771"},{"index":20,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p>Some description about this section<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"container_class":""},"editor_options":{"title":"Custom HTML","icon_class":"ff-edit-html","template":"customHTML"},"uniqElKey":"el_15924975898180.429874118645158"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Purchase {payment_total}","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"1","type":"form","conditions":null,"created_by":"1","created_at":"2020-06-18 23:34:18","updated_at":"2020-06-18 23:35:03","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>Thank you for your order<\/p> <p>{payment.receipt}<\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"New Order Notification to Admin\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<h4>Order Items<\/h4> <p>{payment.order_items}<\/p> <h4>Other Data:<\/h4> <p>{all_data}<\/p> <p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_payment_settings","value":"{\"currency\":\"USD\",\"push_meta_to_stripe\":\"no\",\"receipt_email\":\"email\",\"transaction_type\":\"product\",\"stripe_checkout_methods\":[\"card\"],\"stripe_meta_data\":[{\"item_value\":\"\",\"label\":\"\"}]}"},{"meta_key":"notifications","value":"{\"name\":\"Email To Customer\",\"sendTo\":{\"type\":\"field\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] Your Order Receipt\",\"message\":\"<p>{payment.receipt}<\/p> <p>Thank you<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"report_data_migrated","value":"\"yes\""}]}]'
113
- ),
114
 
115
  //form number : 58
116
- 'online_service_order_form' => array(
117
  'screenshot' => '',
118
  'createable' => true,
119
  'title' => 'Online Service Order Form',
120
  'is_pro' => false,
121
  'brief' => 'This form can be used to create an online service order. (Payment Module is required)',
122
- 'category' => "Product",
123
- 'tag' => ["Order", "service", "online help", "handyman", "payment"],
124
- 'json' => '[{"id":"204","title":"Service Order Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[],"label_placement":"top"},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name","maxlength":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"Middle Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_15924974034200.26712438122064186"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_15924974402130.012591725433457768"},{"index":1,"element":"container","attributes":[],"settings":{"container_class":""},"columns":[{"fields":[{"index":8,"element":"multi_payment_component","attributes":{"type":"radio","name":"payment_input","value":""},"settings":{"container_class":"","label":"Choose Service","admin_field_label":"Product","label_placement":"","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"Service Item 1 - $10\/hour","value":10,"image":""},{"label":"Service Item 2 - $19\/hour","value":"19"},{"label":"Service Item 3- $29\/hour","value":"29"}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"layout_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1592502076962"}]},{"fields":[{"index":6,"element":"item_quantity_component","attributes":{"type":"number","name":"item-quantity","value":"1","id":"","class":"","placeholder":"Hours","data-quantity_item":"yes"},"settings":{"container_class":"","is_payment_field":"yes","label":"How Many Hours?","admin_field_label":"Hours","label_placement":"","help_message":"","number_step":"","prefix_label":"","suffix_label":"","target_product":"payment_input","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"1","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Item Quantity","icon_class":"ff-edit-keyboard-o","template":"inputText"},"uniqElKey":"el_15925020855320.9400112640060003"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_15925020745170.6041197871212416"},{"index":10,"element":"payment_method","attributes":{"name":"payment_method","type":"radio","value":""},"settings":{"container_class":"","label":"Choose Payment Method","default_method":"","label_placement":"","help_message":"","payment_methods":{"stripe":{"title":"Credit\/Debit Card (Stripe)","enabled":"yes","method_value":"stripe","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with Card (Stripe)","label":"Method Label"},"require_billing_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Billing info"},"require_shipping_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Collect Shipping Info"}}},"paypal":{"title":"PayPal","enabled":"yes","method_value":"paypal","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with PayPal","label":"Method Label"},"require_shipping_address":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Shipping Address"}}},"test":{"title":"Offline Payment","enabled":"yes","method_value":"test","settings":{"option_label":{"type":"text","template":"inputText","value":"Test Payment","label":"Method Label"}}}},"admin_field_label":"","conditional_logics":[]},"editor_options":{"title":"Payment Method Field","icon_class":"ff-edit-credit-card","template":"inputPaymentMethods"},"uniqElKey":"el_15924975611200.8035560583323771"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Purchase {payment_total}","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"1","type":"form","conditions":null,"created_by":"1","created_at":"2020-06-18 23:40:30","updated_at":"2020-06-18 23:44:57","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>Thank you for your order<\/p> <p>{payment.receipt}<\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"New Order Notification to Admin\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<h4>Order Items<\/h4> <p>{payment.order_items}<\/p> <h4>Other Data:<\/h4> <p>{all_data}<\/p> <p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_payment_settings","value":"{\"currency\":\"USD\",\"push_meta_to_stripe\":\"no\",\"receipt_email\":\"email\",\"transaction_type\":\"product\",\"stripe_checkout_methods\":[\"card\"],\"stripe_meta_data\":[{\"item_value\":\"\",\"label\":\"\"}]}"},{"meta_key":"notifications","value":"{\"name\":\"Email To Customer\",\"sendTo\":{\"type\":\"field\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] Your Order Receipt\",\"message\":\"<p>{payment.receipt}<\/p> <p>Thank you<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"report_data_migrated","value":"\"yes\""}]}]'
125
- ),
126
 
127
  //form number : 60
128
- 'payment_donation_form' => array(
129
  'screenshot' => '',
130
  'createable' => true,
131
  'title' => 'Online Donation Form',
132
  'is_pro' => true,
133
  'brief' => 'This form can be used to create a service request. (Payment Module is required)',
134
- 'category' => "Product",
135
- 'tag' => ["Order", "service", "online help", "donation", "support", 'donation', "payment"],
136
- 'json' => '[{"id":"206","title":"Donation Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[],"label_placement":"top"},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name","maxlength":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"Middle Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_15925024747330.600432137734858"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_15925024795800.5874464366027161"},{"index":1,"element":"container","attributes":[],"settings":{"container_class":""},"columns":[{"fields":[{"index":8,"element":"multi_payment_component","attributes":{"type":"radio","name":"payment_input","value":""},"settings":{"container_class":"","label":"Donation Amount","admin_field_label":"","label_placement":"","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"$20","value":"20","image":""},{"label":"$30","value":"30"},{"label":"$40","value":"40"},{"label":"Other","value":"0"}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"layout_class":"ff_list_buttons","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1592502662187"}]},{"fields":[{"index":6,"element":"custom_payment_component","attributes":{"type":"number","name":"custom-payment-amount","value":"","id":"","class":"","placeholder":"Please input your amount","data-payment_item":"yes"},"settings":{"container_class":"","is_payment_field":"yes","label":"Please Provide Custom Amount","admin_field_label":"","label_placement":"","help_message":"","number_step":"","prefix_label":"","suffix_label":"","validation_rules":{"required":{"value":true,"message":"Donation Amount is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"1","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"payment_input","value":"Other","operator":"="}]},"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Custom Payment Amount","icon_class":"ff-edit-keyboard-o","template":"inputText"},"uniqElKey":"el_1592502665775"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_15925026583450.5880630376189451"},{"index":10,"element":"payment_method","attributes":{"name":"payment_method","type":"radio","value":""},"settings":{"container_class":"","label":"Choose Payment Method","default_method":"","label_placement":"","help_message":"","payment_methods":{"stripe":{"title":"Credit\/Debit Card (Stripe)","enabled":"yes","method_value":"stripe","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with Card (Stripe)","label":"Method Label"},"require_billing_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Billing info"},"require_shipping_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Collect Shipping Info"}}},"paypal":{"title":"PayPal","enabled":"yes","method_value":"paypal","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with PayPal","label":"Method Label"},"require_shipping_address":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Shipping Address"}}},"test":{"title":"Offline Payment","enabled":"yes","method_value":"test","settings":{"option_label":{"type":"text","template":"inputText","value":"Offline Payment","label":"Method Label"}}}},"admin_field_label":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Payment Method Field","icon_class":"ff-edit-credit-card","template":"inputPaymentMethods"},"uniqElKey":"el_15925026721370.24223713945247938"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Donate Now {payment_total}","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"1","type":"form","conditions":null,"created_by":"1","created_at":"2020-06-18 23:47:51","updated_at":"2020-06-18 23:52:05","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>Thank you for your donation. Here is the donation details<\\\/p>\\n<p>{payment.receipt}<\\\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"New Donation By {inputs.names} - {payment.payment_total}\",\"message\":\"<p>New Donation has been made by {inputs.names}.<\/p>\\n<p>{payment.receipt}<\/p>\\n<h3>Other Data:<\/h3>\\n<p>{all_data}<\/p>\\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"_payment_settings","value":"{\"currency\":\"USD\",\"push_meta_to_stripe\":\"no\",\"receipt_email\":\"email\",\"transaction_type\":\"donation\",\"stripe_checkout_methods\":[\"card\"],\"stripe_meta_data\":[{\"item_value\":\"\",\"label\":\"\"}]}"},{"meta_key":"notifications","value":"{\"name\":\"Email To Donar\",\"sendTo\":{\"type\":\"field\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"Thank you for your Donarion - {payment.payment_total}\",\"message\":\"<p>Hello {inputs.names},<\/p>\\n<p>Thank you for your donation. Here is the donation details:<\/p>\\n<p>{payment.receipt}<\/p>\\n<h3>Other Data:<\/h3>\\n<p>{all_data}<\/p>\\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"}]}]'
137
- ),
138
-
139
 
140
  //form number : 61
141
- 'order_bump_form' => array(
142
  'screenshot' => '',
143
  'createable' => true,
144
  'title' => 'Order Bump Example Form',
145
  'is_pro' => true,
146
  'brief' => 'Example how you can create order bump form. (Payment Module is required)',
147
- 'category' => "Product",
148
- 'tag' => ["Online order", "shirt order", "product order", "payment"],
149
- 'json' => '[{"id":"209","title":"Order Bump Form with Fluent Forms","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":1,"element":"container","attributes":[],"settings":{"container_class":""},"columns":[{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[],"label_placement":"top"},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name","maxlength":""},"settings":{"container_class":"","label":"Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"Middle Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_15906683422410.5133349422787035"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_15906683351580.9543681646809019"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_15906683245510.7830044830042453"},{"index":8,"element":"multi_payment_component","attributes":{"type":"single","name":"payment_input","value":"49"},"settings":{"container_class":"","label":"Your Awesome product","admin_field_label":"","label_placement":"","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"Payment Item 1","value":10,"image":""}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1590668351796"},{"index":10,"element":"payment_method","attributes":{"name":"payment_method","type":"radio","value":""},"settings":{"container_class":"","label":"Payment Method","default_method":"","label_placement":"","help_message":"","payment_methods":{"stripe":{"title":"Credit\/Debit Card (Stripe)","enabled":"yes","method_value":"stripe","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with Card (Stripe)","label":"Method Label"},"require_billing_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Billing info"},"require_shipping_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Collect Shipping Info"}}},"paypal":{"title":"PayPal","enabled":"yes","method_value":"paypal","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with PayPal","label":"Method Label"},"require_shipping_address":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Shipping Address"}}},"test":{"title":"Test Payment","enabled":"yes","method_value":"test","settings":{"option_label":{"type":"text","template":"inputText","value":"Test Payment","label":"Method Label"}}}},"admin_field_label":"","conditional_logics":[]},"editor_options":{"title":"Payment Method Field","icon_class":"ff-edit-credit-card","template":"inputPaymentMethods"},"uniqElKey":"el_1590667729771"},{"index":1,"element":"container","attributes":[],"settings":{"container_class":"highlight_upsell"},"columns":[{"fields":[{"index":8,"element":"multi_payment_component","attributes":{"type":"checkbox","name":"payment_input_1","value":""},"settings":{"container_class":"ff_high_center","label":"Payment Item","admin_field_label":"","label_placement":"hide_label","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"Yes, I want access only $19 Extra","value":"29","image":""}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1590667787762"},{"index":20,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"margin: 0;\"><span style=\"text-decoration: underline;\"><strong>One time offer:<\/strong><\/span> I would also like get over-the-shulder videos that walk me through every single steps of the passive profits system for only $19 extra (a $97 value)<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"container_class":""},"editor_options":{"title":"Custom HTML","icon_class":"ff-edit-html","template":"customHTML"},"uniqElKey":"el_15906677914400.3394559374440802"}]}],"editor_options":{"title":"One Column Container","icon_class":"dashicons dashicons-align-center"},"uniqElKey":"el_15906677855230.32567666841505627"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"center","button_style":"orange","container_class":"","help_message":"","background_color":"#E6A23C","button_size":"lg","color":"#ffffff","button_ui":{"type":"default","text":"Purchase Now {payment_total}","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"1","type":"form","conditions":null,"created_by":"1","created_at":null,"updated_at":null,"metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>Thank you for your purchase<\\\/p>\\n<p>{payment.receipt}<\\\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-left\"},\"delete_entry_on_submission\":\"no\",\"id\":\"452\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"Email to Site Admin\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"New Payment has been made by {inputs.names} - {payment.payment_total}\",\"message\":\"<p>{payment.receipt}<\/p>\\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"_custom_form_css","value":".highlight_upsell {\n padding: 10px 20px 0px;\n border: 4px dashed gray;\n margin-bottom: 20px;\n background: #fffce0;\n}\n\n.highlight_upsell .ff-el-group {\n margin-bottom: 0px;\n}\n\n.ff_high_center {\n background: #fff385;\n padding: 10px 20px;\n text-align: center;\n}\n\n.ff_high_center label {\n color: green;\n font-weight: bolder;\n font-size: 18px;\n}"},{"meta_key":"_custom_form_js","value":""},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"_payment_settings","value":"{\"currency\":\"USD\",\"push_meta_to_stripe\":\"no\",\"receipt_email\":\"email\",\"transaction_type\":\"product\",\"stripe_checkout_methods\":[\"card\"],\"stripe_meta_data\":[{\"item_value\":\"\",\"label\":\"\"}]}"},{"meta_key":"notifications","value":"{\"name\":\"Email To Customer\",\"sendTo\":{\"type\":\"field\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"Thank you for Payment - {payment.payment_total}\",\"message\":\"<p>{payment.receipt}<\/p>\\n<p>&nbsp;<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"}]}]'
150
- ),
151
 
152
  //form number : 62
153
- 'student_survey_form' => array(
154
  'screenshot' => '',
155
  'createable' => true,
156
  'title' => 'Student Survey Form',
157
  'is_pro' => true,
158
  'brief' => 'Use this form to do a student survey.',
159
- 'category' => "Education",
160
- 'tag' => ["Survey", "student survey", "online survey"],
161
- 'json' => '[{"id":"62","title":"Student Survey Form","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Your First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Your Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570681468957"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Your Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570681471575"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h3>How important is it that we provide you with the following?<\/h3>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570681554354"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Variety of student organizations ","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not important at all":"Not important at all","Somewhat important":"Somewhat important","Very Important":"Very Important","Essential":"Essential"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570681716842"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Plenty of professor office hours","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not important at all":"Not important at all","Somewhat important":"Somewhat important","Very Important":"Very Important","Essential":"Essential"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570681806289"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_2","value":""},"settings":{"container_class":"","label":"A global perspective","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not important at all":"Not important at all","Somewhat important":"Somewhat important","Very Important":"Very Important","Essential":"Essential"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570681817431"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_3","value":""},"settings":{"container_class":"","label":"Internship opportunities","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not important at all":"Not important at all","Somewhat important":"Somewhat important","Very Important":"Very Important","Essential":"Essential"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570681830625"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570682052340"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h3>How important is it that we provide you with the following?<\/h3>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570682078971"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_4","value":""},"settings":{"container_class":"","label":"Get a job to help pay for college expenses","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not at all likely\t":"Not at all likely\t","Somewhat likely\t":"Somewhat likely\t","Very Likely":"Very Likely"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682075715"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_5","value":""},"settings":{"container_class":"","label":"Become a teacher assistant\t","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not at all likely\t":"Not at all likely\t","Somewhat likely\t":"Somewhat likely\t","Very Likely":"Very Likely"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682121382"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_6","value":""},"settings":{"container_class":"","label":"Study abroad\t","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not at all likely\t":"Not at all likely\t","Somewhat likely\t":"Somewhat likely\t","Very Likely":"Very Likely"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682123066"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_7","value":""},"settings":{"container_class":"","label":"Take out student loans","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not at all likely\t":"Not at all likely\t","Somewhat likely\t":"Somewhat likely\t","Very Likely":"Very Likely"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682145405"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Please select any activities\/groups you plan on participating in while in school.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Intramural Sports":"Intramural Sports","Student Organizations":"Student Organizations","Fraternity\/Sorority":"Fraternity\/Sorority","Other":"Other"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570682180538"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"others","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox","value":"Other","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570682234942"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button", "attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
162
- ),
163
 
164
  //form number : 63
165
- 'classroom_observation_form' => array(
166
  'screenshot' => '',
167
  'createable' => true,
168
  'title' => 'Classroom Observation Form',
169
  'is_pro' => true,
170
  'brief' => 'Use this form to do a classroom observation.',
171
- 'category' => "Education",
172
- 'tag' => ["Online survey", "education", "classroom"],
173
- 'json' => '[{"id":"63","title":"Classroom Observation Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<div style=\"text-align: center;\">\n<h3>Classroom Observation<\/h3>\nPlease use the following form to evaluate the teachers performance in the classroom. Your feedback is valuable and helps us ensure success for all teachers and students. Please answer each question honestly.\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570682627458"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Teacher\'s Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Teacher\'s Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570682726941"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Classroom\/Course","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570682786996"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Observation Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570682791895"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570682808710"},{"index":9,"element":"tabular_grid","attributes":{"name":"tabular_grid","data-type":"tabular-element"},"settings":{"tabular_field_type":"radio","container_class":"","label":"Please rate the teacher\'s performance in the following areas:","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required","per_row":true}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"grid_columns":{"Strongly Agree\t":"Strongly Agree\t","Agree":"Agree","Neutral":"Neutral","Disagree":"Disagree","Strongly Disagree":"Strongly Disagree"},"grid_rows":{"Teacher was prepared for the lesson.\t":"Teacher was prepared for the lesson.\t","Teacher encouraged student participation.\t":"Teacher encouraged student participation.\t","Teacher explained the lesson thoroughly.\t":"Teacher explained the lesson thoroughly.\t","Teacher interacted with all students.\t":"Teacher interacted with all students.\t","Teacher was able to control the entire classroom.\t":"Teacher was able to control the entire classroom.\t","Teacher effectively used technology.\t":"Teacher effectively used technology.\t","Teacher used time efficiently.\t":"Teacher used time efficiently.\t","Teacher responded appropriately to student questions.\t":"Teacher responded appropriately to student questions.\t","Teacher used a variety of teaching methods.\t":"Teacher used a variety of teaching methods.\t"},"selected_grids":[]},"editor_options":{"title":"Checkable Grid","icon_class":"icon-dot-circle-o","template":"checkableGrids"},"uniqElKey":"el_1570689026920"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570683045855"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_9","value":""},"settings":{"container_class":"","label":"Based on this observation, would you pass or fail this teacher?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Pass":"Pass","Fail":"Fail"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570683067552"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Additional Comments","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570683116056"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p><strong><span id=\"label42633724\" class=\"fsLabel\">Oberserver\'s Details (Optional)<\/span><\/strong><\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570683153616"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570683173183"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"right","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Evalution","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false, "message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
174
- ),
175
 
176
  //form number : 64
177
- 'client_satisfaction_survey_form' => array(
178
  'screenshot' => '',
179
  'createable' => true,
180
  'title' => 'Client Satisfaction Survey Form',
181
  'is_pro' => false,
182
  'brief' => 'You can use this to perform a client satisfaction survey form',
183
- 'category' => "Marketing",
184
- 'tag' => ["Marketing", "survey", "satisfaction"],
185
- 'json' => '[{"id":"64","title":"Client Satisfaction Survey Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Client Satisfaction Survey","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570682763978"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Which product did you purchase?","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Office Accessories ":"Office Accessories ","Home appliance ":"Home appliance ","Digital Product":"Digital Product","Garage Hardware":"Garage Hardware"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570682798953"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What was your primary reason for purchasing the product?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570682852522"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"What three features are most important to you?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Custom responses":"Custom responses","Custom integrations":"Custom integrations","Expanded functionality":"Expanded functionality","Easy to navigate":"Easy to navigate","Offline capabilities":"Offline capabilities"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570682873089"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"How can we improve our products\/services?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570682943938"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Would you use our product \/ service in the future?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"options":{"Definitely":"Definitely","Probably":"Probably","Not Sure":"Not Sure","Probably Not":"Probably Not"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682967577"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"","container_class":"","help_message":"","background_color":"","button_size":"md","color":"","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{"backgroundColor":"rgba(126, 173, 79, 1)"},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
186
- ),
187
 
188
  //form number : 67
189
- 'customer_complaint_form' => array(
190
  'screenshot' => '',
191
  'createable' => true,
192
  'title' => 'Customer Complaint Form',
193
  'is_pro' => false,
194
  'brief' => 'Use this form to crete a customer complaint from.',
195
- 'category' => "Marketing",
196
- 'tag' => ["Marketing", "customer complain", "customer feedback"],
197
  'json' => '[{"id":"67","title":"Customer Complaint Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Customer Information","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570683983321"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570683568392"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Product Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570698648236"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Product ID","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570698660319"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570698540497"}]},{"fields":[{"index":5,"element":"select_country","attributes":{"name":"country-list","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Country","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"US":"United States of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-globe","template":"selectCountry"},"uniqElKey":"el_1570683722526"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Zip Code","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570698634098"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570698522369"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570698459932"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570683671991"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570698501610"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Complaint Information","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570683794847"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Complaint Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570683817559"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Complaint Details:","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570683846055"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"",
198
- "label":"What action needs to be taken to resolve this issue?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570683866743"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"","container_class":"","help_message":"","background_color":"","button_size":"md","color":"","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{"backgroundColor":"rgba(19, 184, 203, 1)","color":"#F4EDED"},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
199
- ),
200
 
201
  //form number : 68
202
- 'course_evaluation_survey_form' => array(
203
  'screenshot' => '',
204
  'createable' => true,
205
  'title' => 'Course Evaluation Survey form',
206
  'is_pro' => true,
207
  'brief' => 'You can use this from to perform the course evaluation survey.',
208
- 'category' => "Education",
209
- 'tag' => ["Course evaluation", "teacher assessment"],
210
  'json' => '[{"id":"68","title":"Course Evaluation Survey form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<div class=\"fsSection fs1Col\">\n<div id=\"fsRow2380722-1\" class=\"fsRow fsFieldRow fsLastRow\">\n<div id=\"fsCell42867454\" class=\"fsRowBody fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" lang=\"en\">\n<p>1. Please answer all required questions.<\/p>\n<p>2. Only complete this evaluation if you will be completing the course.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"fsSection42867455\" class=\"fsSection fs1Col\">\n<div class=\"fsSectionHeader\">\n<h2 class=\"fsSectionHeading\">Course Data:<\/h2>\n<\/div>\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570683714640"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Course Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570683740768"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Course Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570683755077"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Section Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570683779956"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Instructor Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570683742700"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570683838706"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Evaluation","description":"<p>Your Evalutionsare important so do it carefully<\/p>\n<div id=\"gtx-trans\" style=\"position: absolute; left: 293px; top: 38px;\">\n<div class=\"gtx-trans-icon\">\u00a0<\/div>\n<\/div>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570683867069"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Level of effort you put into the course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570683921870"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Your level of knowledge at the beginning of course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570683969337"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_2","value":""},"settings":{"container_class":"","label":"Your level of knowledge at the end of course.\t","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570683985928"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_4","value":""},"settings":{"container_class":"","label":"I understood the objectives of the course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Strongly Agree":"Strongly Agree","Agree":"Agree","Neutral":"Neutral","Disagree":"Disagree","Strongly Disagree":"Strongly Disagree"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684064895"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_9","value":""},"settings":{"container_class":"","label":"The length of the course was appropriate to cover content.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Strongly Agree":"Strongly Agree","Agree":"Agree","Neutral":"Neutral","Disagree":"Disagree","Strongly Disagree":"Strongly Disagree"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684312850"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_5","value":""},"settings":{"container_class":"","label":"The course provided me with new information.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Strongly Agree":"Strongly Agree","Agree":"Agree","Neutral":"Neutral","Disagree":"Disagree","Strongly Disagree":"Strongly Disagree"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684075830"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684089759"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_10","value":""},"settings":{"container_class":"","label":"Instructor\'s preparation.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684446524"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_11","value":""},"settings":{"container_class":"","label":"Instructor\'s deliverance ","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684465079"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_12","value":""},"settings":{"container_class":"","label":"Instructor\'s communication.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},
211
- "options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684473777"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_13","value":""},"settings":{"container_class":"","label":"Instructor\'s effectiveness.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684488290"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_14","value":""},"settings":{"container_class":"","label":"Instructor\'s availability.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684497957"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_15","value":""},"settings":{"container_class":"","label":"Overall quality of the course","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684531092"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_16","value":""},"settings":{"container_class":"","label":"Overall quality of the equipment used for the course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684546492"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_17","value":""},"settings":{"container_class":"","label":"Overall quality of the course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684556880"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684578369"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_18","value":""},"settings":{"container_class":"","label":"Would you recommend this course to other students?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684586872"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_19","value":""},"settings":{"container_class":"","label":"Why you chose this course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Degree requirement":"Degree requirement","Time offered":"Time offered","Interest":"Interest"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684611685"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_20","value":""},"settings":{"container_class":"","label":"Your class standing.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Freshman":"Freshman","Sophomore":"Sophomore","Junior":"Junior","Senior":"Senior","Graduate":"Graduate"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684653872"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684731629"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Please identify aspects of the course you found useful.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684751423"}]},{"fields":[{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Please provide any suggestions to improve the course.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684758119"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570684746154"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
212
- ),
213
 
214
  //form number : 70
215
- 'market_research_survey_form' => array(
216
  'screenshot' => '',
217
  'createable' => true,
218
  'title' => 'Market Research Survey Form',
219
  'is_pro' => true,
220
  'brief' => 'Use this form to a market research.',
221
- 'category' => "Marketing",
222
- 'tag' => ["Market research", "marketing", "online survey"],
223
- 'json' => '[{"id":"70","title":"Market Research Survey Form","form":{"fields":[{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"How often do you use our product?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"More than once a week":"More than once a week","Once a week":"Once a week","Monthly":"Monthly","Every other month":"Every other month","A few times a year":"A few times a year"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570684518054"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684370878"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What similar products do you use? (by name and brand)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684600189"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684374734"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"When did you last purchase our product?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Less than 1 month ago":"Less than 1 month ago","Between 1 month and 6 months ago":"Between 1 month and 6 months ago","Between 6 months and 1 year ago":"Between 6 months and 1 year ago","More than one year ago":"More than one year ago","I don\'t remember":"I don\'t remember"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570684644101"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684773438"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Have you had a chance to review our newest product?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684780085"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684802008"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What do you think of our new product?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684812950"},{"index":3,"element":"textarea","attributes":{"name":"description_2","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What is your least favorite thing about our new product?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684817781"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684889192"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_2","value":[]},"settings":{"container_class":"","label":"How do you feel our products pricing compares with other similar products?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Less expensive":"Less expensive","About the same price":"About the same price","More expensive":"More expensive"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570684895517"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684949903"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Tell us a little about yourself.","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570684992645"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_3","value":[]},"settings":{"container_class":"","label":"What is your age range?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"18 or younger":"18 or younger","19 - 24":"19 - 24","25 - 34":"25 - 34","35 - 44":"35 - 44","45 - 54":"45 - 54","55 or older":"55 or older"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685017517"},{"index":5,"element":"select_country","attributes":{"name":"country-list","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What country are you from?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"US":"United States of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-globe","template":"selectCountry"},"uniqElKey":"el_1570685115869"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
224
- ),
225
 
226
  //form number : 71
227
- 'database_management_help request_from' => array(
228
  'screenshot' => '',
229
  'createable' => true,
230
  'title' => 'Database Management Help Request from',
231
  'is_pro' => true,
232
  'brief' => 'Use this form to seek help form the tech support; for example, the database management help.',
233
- 'category' => "Marketing",
234
- 'tag' => ["Marketing", "online help", "support help"],
235
  'json' => '[{"id":"71","title":"Database Management Help Request from","form":{"fields":[{"index":2,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"First Name field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1516797564818"},{"index":7,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"you@domain.com"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Email field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1516797583697"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570684406116"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570699970556"},{"index":2,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe your current issues\/needs","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1516797589062"},{"index":2,"element":"textarea","attributes":{"name":"message_1","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe your current system if applicable.","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684428634"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"What is your expertise with managing your database?","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Novice":"Novice","Intermediate":"Intermediate","Expert":"Expert"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570684515448"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Do you need an intranet in your office?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570684585832"},{"index":7,"element":"select","attributes":{"name":"dropdown_1","value":"","id":"","class":""},"settings":{"label":"Software Type","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Accounting and Financial Management":"Accounting and Financial Management","Asset Management":"Asset Management"," Business Intelligence and Data Management Customer":" Business Intelligence and Data Management Customer"," Relationship Management (CRM)":" Relationship Management (CRM)"," Enterprise Resource Planning (ERP)":" Enterprise Resource Planning (ERP)"," Human Capital Management (HCM)":" Human Capital Management (HCM)"," Information Management and Collaboration":" Information Management and Collaboration"," Product Lifecycle Management (PLM) ":" Product Lifecycle Management (PLM) "," Project and Process Management":" Project and Process Management"," Supply Chain Management (SCM)":" Supply Chain Management (SCM)"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570684631918"},{"index":7,"element":"select","attributes":{"name":"dropdown_2","value":"","id":"","class":""},"settings":{"label":"Business Area","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Sales and Marketing":"Sales and Marketing","Professional Services and Support":"Professional Services and Support","Production and Distribution":"Production and Distribution","IT Management and Development":"IT Management and Development","Data Management and Analysis":"Data Management and Analysis",
236
- "Back Office and Operations":"Back Office and Operations"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570685212508"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Needed Requirements, Functionality, or Specification","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570685794700"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Desired deliverables","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570685817491"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When do you need the support?","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570685921417"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_6","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What is your budget?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685887742"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Will this system be sold as third party software?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685925016"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_2","value":[]},"settings":{"container_class":"","label":"Will you need back up services?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685980359"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_3","value":[]},"settings":{"container_class":"","label":"Will you need virus protection?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685993577"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"Upload any supporting documents.","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":["pdf","jpg|jpeg|gif|png|bmp"],"message":"allowed_file_types"}},"conditional_logics":[]},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570686018986"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
237
- ),
238
 
239
  //form number : 72
240
- 'university_enrollment_form' => array(
241
  'screenshot' => '',
242
  'createable' => true,
243
  'title' => 'University Enrollment Form',
244
  'is_pro' => true,
245
  'brief' => 'Use this form to do the university enrollment for a studnet.',
246
- 'category' => "Education",
247
- 'tag' => ["Education", "university", "enrollment"],
248
  'json' => '[{"id":"72","title":"University Enrollment Form","form":{"fields":[{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Anticipated Start Date","admin_field_label":"","label_placement":"","date_format":"d.m.Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570684989530"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570685021902"},{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570685042448"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570685046783"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date of Birth","admin_field_label":"","label_placement":"","date_format":"d.m.Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570700188161"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Gender","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"options":{"Male":"Male","Female":"Female","Others":"Others"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570700192033"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570685050447"},{"index":15,"element":"input_image","attributes":{"type":"file","name":"image-upload","value":"","id":"","class":"","accept":"image\/*"},"settings":{"container_class":"","label":"Proof of identity (e.g. birth certificate, Passport etc.)","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_image_types":{"value":["jpg|jpeg","png","gif"],"message":"Allowed image size does not match"}},"conditional_logics":[]},"editor_options":{"title":"Image Upload","icon_class":"icon-picture-o","template":"inputFile"},"uniqElKey":"el_1570685249394"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Background Information:","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570685313901"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Enrollment Status","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Full Time":"Full Time","Part Time":"Part Time"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570685354734"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"High School Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685422648"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address2","data-type":"address-element"},"settings":{"label":"High School Address*","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"",
249
- "label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570685418979"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"GPA","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685436187"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_3","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Diploma Type","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685454020"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"High School Transcripts","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":["doc|ppt|pps|xls|mdb|docx|xlsx|pptx|odt|odp|ods|odg|odc|odb|odf|rtf|txt","pdf","zip|gz|gzip|rar|7z","jpg|jpeg|gif|png|bmp"],"message":"allowed_file_types"}},"conditional_logics":[]},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570685480739"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_4","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Medical Allergies","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685516179"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Parent\/Guardian Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Parent\/Guardian (First Name)","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"(Last Name)","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570685540179"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_5","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Parent\/Guardian Company","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685621269"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Parent\/Guardian Phone","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570685638725"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Parent\/Guardian Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570685654167"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
250
- ),
251
 
252
  //form number : 74
253
- 'volunteer_signup_form' => array(
254
  'screenshot' => '',
255
  'createable' => true,
256
  'title' => 'Volunteer sign up form',
257
  'is_pro' => false,
258
  'brief' => 'Use this form to do the volunteer sign up',
259
- 'category' => "Nonprofit",
260
- 'tag' => ["Non Profit", "volunteer", "help", "humanity"],
261
- 'json' => '[{"id":"74","title":"Volunteer sign up form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Volunteer Sign Up","description":"<div id=\"fsSection83427461\" class=\"fsSection fs1Col\">\n<div id=\"fsRow3617571-3\" class=\"fsRow fsFieldRow fsLastRow\">\n<div id=\"fsCell83427463\" class=\"fsRowBody fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" lang=\"en\">\n<p class=\"fsSectionText\">Come with us and help out your local community!<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"fsSection83427464\" class=\"fsSection fs1Col\">\u00a0<\/div>","align":"center","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570685851381"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Where would you like to volunteer (Check any that apply)","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Food bank":"Food bank","Animal shelter":"Animal shelter","Preschool":"Preschool","City lawn care":"City lawn care","Community Service":"Community Service"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685921940"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"How many hours a week can you dedicate?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685965867"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When are you available to start?","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570686157250"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570686018387"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Permanent Address ","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570686031467"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570686088371"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570686107211"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570686084163"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"","container_class":"","help_message":"","background_color":"","button_size":"md","color":"","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{"backgroundColor":"rgba(85, 66, 66, 1)","color":"#F2EBEB"},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
262
- ),
263
 
264
  //form number : 76
265
- 'donation_form' => array(
266
  'screenshot' => '',
267
  'createable' => true,
268
  'title' => 'Donation Form',
269
  'is_pro' => false,
270
  'brief' => 'To create the donation request form, you can use this',
271
- 'category' => "Nonprofit",
272
- 'tag' => ["Non Profit", "donation", "help", "humanity"],
273
- 'json' => '[{"id":"76","title":"Donation Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\"><strong>Fillup this form to add to our doner list.\u00a0<\/strong><\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570686622963"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570686731683"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570686773473"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570686777497"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570700704044"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Your Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570700718461"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":"e.g.: $10"},"settings":{"container_class":"","label":"Amount you would like to donate","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570686956274"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Your Preferred Method of Donation","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Credit Card":"Credit Card","PayPal":"PayPal","CashApp":"CashApp","Wire Transfer":"Wire Transfer","Check":"Check"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570700560368"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"How repeatedly do you want to donate?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"One Time":"One Time","Yearly":"Yearly","Monthly":"Monthly","Weekly":"Weekly","Daily":"Daily"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570700624445"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
274
- ),
275
 
276
  //form number : 78
277
- 'graphic_designer_contact_form' => array(
278
  'screenshot' => '',
279
  'createable' => true,
280
  'title' => 'Graphic Designer Contact Form',
281
  'is_pro' => false,
282
  'brief' => 'You can use this form to create a form that can be used to request a professional service',
283
- 'category' => "IT",
284
- 'tag' => ["IT", "tech", "designer", "graphic"],
285
- 'json' => '[{"id":"78","title":"Graphic Designer Contact Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"What can I help you with?","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570686619180"},{"index":2,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"First Name field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1516797564818"},{"index":7,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"you@domain.com"},"settings":{"container_class":"","label":"Your Email","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Email field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1516797583697"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570687399112"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When is the best time to contact you?","admin_field_label":"","label_placement":"","date_format":"h:i K","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570701154762"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When is the best date to contact you?","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570687461730"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"What can I help you with?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Social Media Publication":"Social Media Publication","Prints & Ilustrations":"Prints & Ilustrations","Website Design":"Website Design","Other":"Other"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570687540354"},{"index":2,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe your need","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1516797589062"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When do you need the graphic designer?","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570701063541"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
286
- ),
287
 
288
  //form number : 79
289
- 'multi_file_upload_form' => array(
290
  'screenshot' => '',
291
  'createable' => true,
292
  'title' => 'Multi file upload form',
293
  'is_pro' => true,
294
  'brief' => 'You can use this form to create a form for multiple upload.',
295
- 'category' => "IT",
296
- 'tag' => ["It", "education", "file upload"],
297
- 'json' => '[{"id":"79","title":"Multi file upload form","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570687268942"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570687293339"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"1","id":"","class":"","placeholder":"1-5"},"settings":{"container_class":"","label":"How many files do you need uploading?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"1","message":"Minimum value is "},"max":{"value":"10","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570687439535"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"1","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687472221"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload_1","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"2","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687474449"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload_2","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"3","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687504965"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload_3","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"4","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687516403"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload_4","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"5","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687530792"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Additional Comments","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570687595629"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
298
- ),
299
 
300
  //form number : 81
301
- 'highschool_transcript_request_from' => array(
302
  'screenshot' => '',
303
  'createable' => true,
304
  'title' => 'High School Transcript Request From',
305
  'is_pro' => true,
306
  'brief' => 'Use this form to request the school documents.',
307
- 'category' => "Education",
308
- 'tag' => ["Education", "school", "request"],
309
- 'json' => '[{"id":"81","title":"High School Transcript Request From","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570688098700"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Graduation Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570688194088"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570688217102"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Registration Number","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688229288"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Birthdate","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570688245763"},{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Current Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570688265645"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570688289864"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"I wish to pick up an UNOFFICIAL copy of my transcript","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570688311786"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Please send an OFFICIAL copy of my high school transcript to:","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570688417395"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"College\/University Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688445375"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address2","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570688471703"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570688478486"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"<p>College\/University info<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570688542307"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"College\/University Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688579789"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address3","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570688596943"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570688603366"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570688618403"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Today\'s Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570688644312"},{"index":15,"element":"input_image","attributes":{"type":"file","name":"image-upload","value":"","id":"","class":"","accept":"image\/*"},"settings":{"container_class":"","label":"Upload Signature","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_image_types":{"value":["jpg|jpeg","png","gif"],"message":"Allowed image size does not match"}},"conditional_logics":[]},"editor_options":{"title":"Image Upload","icon_class":"icon-picture-o","template":"inputFile"},"uniqElKey":"el_1570688683654"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
310
- ),
311
 
312
  //form number : 82
313
- 'partnership_application_form' => array(
314
  'screenshot' => '',
315
  'createable' => true,
316
  'title' => 'Partnership application form',
317
  'is_pro' => true,
318
  'brief' => 'This form can be used to create a form for patrnership agreement.',
319
- 'category' => "Finance",
320
- 'tag' => ["HR", "Finance", "IT", "Partnership", "application"],
321
  'json' => '[{"id":"82","title":"Partnership application form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Partnership Application Form\t","description":"<p>Thank you for your interests in our company. We are excited to have you on board as one of our esteemed partners. To get started, please complete all fields accordingly. We will review and get in touch with your shortly. If you are unsure about any of the answers, please use an estimation.\u00a0<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570688772459"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Company Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688832461"}]},{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Company URL","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688834783"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570688827205"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Number of Employees","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688832461"}]},{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_3","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Number of Customers","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688834783"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570688872893"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Place of Business","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Singapore":"Singapore","Malaysia":"Malaysia","HongKong":"HongKong"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570688928851"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Current Demand Generation Activities (you can select more than one)","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Direct Mailer":"Direct Mailer","Website Optimization":"Website Optimization","Email\/Mobile Marketing":"Email\/Mobile Marketing","Media Advertisement":"Media Advertisement","Social Media":"Social Media","Paid Search \/ SEO":"Paid Search \/ SEO","Trade show\/Workshop":"Trade show\/Workshop"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570689033598"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570689288717"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Do you want us to publish your profile on our site?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570689328534"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Your Company Profile (less than 150 words)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570689365456"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Company Specialization Keywords (Separated by comma)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570689403621"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_4","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Sales Inquiry Number (Leave blank if unknown)","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570689431777"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Sales Enquiry Email Address","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570689472697"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570689428622"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"Upload Logo (PNG, Transparent Background)","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":[]},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570689521234"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570689550780"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2>Point of Contact - Partnership<\/h2>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570689580798"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_5","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Contact Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570689809823"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,
322
- "message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570689883374"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email Address","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570689894280"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570689850530"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
323
- ),
324
 
325
  //form number : 83
326
- 'employee_evaluation_form' => array(
327
  'screenshot' => '',
328
  'createable' => true,
329
  'title' => 'Employee Evaluation Form',
330
  'is_pro' => true,
331
  'brief' => 'This form can be used to do an employee.',
332
- 'category' => "HR",
333
- 'tag' => ["Evaluation", "HR", "office", "corporate"],
334
  'json' => '[{"id":"83","title":"Employee Evaluation Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\"><strong>Please remember that, the form will be confidential and will be used for only internally; so, feel free to submit your data however you feel to submit;\u00a0<\/strong><\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570702175914"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570689782476"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Title","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570689820062"}]},{"fields":[{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Relationship with employee:","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Coworker":"Coworker","Supervisoe(Direct)":"Supervisoe(Direct)","Supervisoe(indirect)":"Supervisoe(indirect)"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570689833476"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570689816823"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<div class=\"c-title\">\n<h3>Employee Information<\/h3>\n<\/div>\n<div id=\"gtx-trans\" style=\"position: absolute; left: 130px; top: 38px;\">\n<div class=\"gtx-trans-icon\">\u00a0<\/div>\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570689925613"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570689939836"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Text Input","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570690142095"}]},{"fields":[{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Review type:","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"90-Day Review":"90-Day Review","Annual\/Raise Review":"Annual\/Raise Review"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570690153659"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570690139004"},{"index":9,"element":"tabular_grid","attributes":{"name":"tabular_grid","data-type":"tabular-element"},"settings":{"tabular_field_type":"radio","container_class":"","label":"How would you rate the employee...","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required","per_row":false}},"conditional_logics":[],"grid_columns":{"Very Poor":"Very Poor","Poor":"Poor","Average":"Average","Good":"Good","Very Good":"Very Good"},"grid_rows":{"Attendance?\t":"Attendance?\t","Attire?":"Attire?","Professionalism?":"Professionalism?","Work area?":"Work area?","Ability to do the job?":"Ability to do the job?","Ability to work with others?\t":"Ability to work with others?\t","Ability to receive feedback\/criticism?\t":"Ability to receive feedback\/criticism?\t","Ability to adapt?":"Ability to adapt?","Willingness to learn?\t":"Willingness to learn?\t","Willingness to participate?":"Willingness to participate?","Work ethic?":"Work ethic?","Quality of work?":"Quality of work?"},"selected_grids":[]},"editor_options":{"title":"Checkable Grid","icon_class":"icon-dot-circle-o","template":"checkableGrids"},"uniqElKey":"el_1570690219522"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What are the employee\'s top qualities?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570690459722"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"In what ways could the employee improve?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570690441275"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,
335
- "pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
336
- ),
337
 
338
  //form number : 85
339
- 'party_invite_form' => array(
340
  'screenshot' => '',
341
  'createable' => true,
342
  'title' => 'Party Invite Form',
343
  'is_pro' => true,
344
  'brief' => 'For social invitation, you can use this form.',
345
- 'category' => "Social",
346
- 'tag' => ["Social", "party", "invite"],
347
- 'json' => '[{"id":"85","title":"Party Invite Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\"><strong>You\'re Invited! <\/strong><\/p>\n<p style=\"text-align: center;\"><strong>Come get cool at our pool this 4th of July!<\/strong><\/p>\n<div style=\"width: 35%; margin: 0px auto; text-align: center;\">[You can add an Image\/Logo Here]<\/div>\n<p style=\"text-align: center;\">Time: July 4th 2020<\/p>\n<p style=\"text-align: center;\">Address: 2611 Ash Avenue, SAN DIEGO, CA, California, 92152\u00a0<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570690728985"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Are you coming?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570691339820"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Will you bring a guest with you?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570691365305"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Cool! How many? (maximum 3)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"3","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"input_radio_1","value":"yes","operator":"="}]},"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570691383553"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_2","value":""},"settings":{"container_class":"","label":"Are you bringing any food? (e.g. wine, sandwich, pizza etc. )","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570691442090"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Cool! What are you bringing?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"input_radio_2","value":"yes","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570691451487"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"sm","color":"#ffffff","button_ui":{"type":"default","text":"Submit","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
348
- ),
349
 
350
  //form number : 87
351
- 'software_survey_form' => array(
352
  'screenshot' => '',
353
  'createable' => true,
354
  'title' => 'Software Survey Form',
355
  'is_pro' => true,
356
  'brief' => 'Use this form to create a software survey or a product survey.',
357
- 'category' => "IT",
358
- 'tag' => ["Software", "survey", "request", "office"],
359
- 'json' => '[{"id":"87","title":"Software Survey Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Software Survey","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570691364486"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"How did you hear about ...?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Our Website":"Our Website","Frineds":"Frineds","Social Media":"Social Media","Ads":"Ads","Generic Search":"Generic Search"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570691410457"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Which platform do you use?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Mac OS":"Mac OS","Linux":"Linux","Windows":"Windows","Other":"Other"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570691462708"},{"index":8,"element":"ratings","attributes":{"class":"","value":0,"name":"ratings"},"settings":{"label":"How would you rate our software?","show_text":false,"help_message":"","label_placement":"","admin_field_label":"","container_class":"","conditional_logics":[],"validation_rules":{"required":{"value":false,"message":"This field is required"}}},"options":{"1":"Nice","2":"Good","3":"Very Good","4":"Awesome","5":"Amazing"},"editor_options":{"title":"Ratings","icon_class":"icon-eye-slash","template":"ratings"},"uniqElKey":"el_1570691524650"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_2","value":[]},"settings":{"container_class":"","label":"Did you purchase any of our software?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570691587030"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Please let us know if you have any suggestions for us.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570691583718"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
360
- ),
361
 
362
  //form number : 88
363
- 'hardware_request_form' => array(
364
  'screenshot' => '',
365
  'createable' => true,
366
  'title' => 'Hardware Request Form',
367
  'is_pro' => false,
368
  'brief' => 'You can use this form to create a hardware request in your office.',
369
- 'category' => "IT",
370
- 'tag' => ["HR", "IT", "Hardware"],
371
- 'json' => '[{"id":"88","title":"Hardware Request Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Hardware Request Form","description":"<p style=\"text-align: left;\">This form will be used to request if any new hardware is needed in any department.\u00a0<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692575749"},{"index":2,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Requester\'s First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"First Name field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Requester\'s Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1516797564818"},{"index":7,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"you@domain.com"},"settings":{"container_class":"","label":"Requester\'s Email","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Email field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1516797583697"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Requester\'s Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570691864195"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Department to Purchase","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570691901415"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"What type of hardware do you need?","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"New Destop":"New Destop","New Laptop":"New Laptop","Tablet Computer":"Tablet Computer","Accessories ":"Accessories ","Others":"Others"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570691948417"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"If you choose other, please write the name.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570703018093"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Choose Software to to be pre installed ","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Microsoft Office":"Microsoft Office","Adobe Products":"Adobe Products","3D Software":"3D Software"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570692048244"},{"index":2,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Other Software \/ Instruction ","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1516797589062"},{"index":2,"element":"textarea","attributes":{"name":"message_1","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Reason for the Request (Be Specific)","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692289814"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date Submitted","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570692459185"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
372
- ),
373
 
374
  //form number : 89
375
- 'functional_behavioral_assessment_form' => array(
376
  'screenshot' => '',
377
  'createable' => true,
378
  'title' => 'Functional Behavioral Assessment Form',
379
  'is_pro' => true,
380
  'brief' => 'This form can be used to perform a functional behavioral.',
381
- 'category' => "Education",
382
- 'tag' => ["Education", "Social", "behaviour"],
383
- 'json' => '[{"id":"89","title":"Functional Behavioral Assessment Form","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570691787066"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570691810024"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Sources of Data","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Record Review":"Record Review","Scatterplot":"Scatterplot","ABC Logs":"ABC Logs","Other":"Other"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570691825335"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe the data source","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox","value":"Other","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570691891321"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Information Reported by:","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Teacher":"Teacher","Parent":"Parent","Student":"Student","Other":"Other"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570691930433"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe your role.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570691982011"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Assessor Name ","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Assessor Name(First Name)","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Assessor Name(Last Name)","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570692022666"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Problem Behaviors","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692095297"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_6","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Describe behaviors in specific and observable terms.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692282542"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_8","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Estimated frequency","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692305723"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_9","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Describe any observed patterns related to reported behavior.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692329357"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Medical\/Health Information","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692238232"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Known health, medical, or psychiatric conditions","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692110572"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Current medications","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692123766"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Effects and side-effect of medication","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692132688"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_3","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Known traumatic events","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692140643"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_4","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Medical treatments, therapies, or services (outside of school)","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692150614"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570692169923"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Intervention History","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692361306"},{"index":3,"element":"textarea","attributes":{"name":"description_2","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe a brief history of the problem behavior and any interventions.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692375525"},{"index":3,"element":"textarea","attributes":{"name":"description_3","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"If applicable, how would you describe the effectiveness of past intervention efforts?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692388449"},{"index":3,"element":"textarea","attributes":{"name":"description_4","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What rewards are currently provided to the student in school? For what and how often?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692388545"},{"index":3,"element":"textarea","attributes":{"name":"description_5","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What consequences are currently used in school for problem behaviors?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692407455"},{"index":3,"element":"textarea","attributes":{"name":"description_6","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What is the typical student response to these consequences?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692417021"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Skills Assessment","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692436456"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_10","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What are the student\'s academic strengths?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692454937"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_11","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What are the student\'s academic needs?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692462466"},{"index":3,"element":"textarea","attributes":{"name":"description_8","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What are the student\'s organizational needs?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692474324"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_12","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What are the student\'s preferred learning styles?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692483064"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_13","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What are the student\'s social strengths?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692496386"},{"index":3,"element":"textarea","attributes":{"name":"description_9","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What are the student\'s deficits in regard to social skills with adults and peers?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692522715"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Communication Summary","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692543126"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Does the student have difficulty in expressing any of these basic communication functions?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Gaining adult attention":"Gaining adult attention","Gaining attention of peers":"Gaining attention of peers","Dealing with a difficult task":"Dealing with a difficult task","Expressing frustration or confusion":"Expressing frustration or confusion","Requesting things of others":"Requesting things of others","Rejecting or protesting something":"Rejecting or protesting something","Indicating preferences or making choices":"Indicating preferences or making choices","Requesting assistance":"Requesting assistance"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570692605327"},{"index":3,"element":"textarea","attributes":{"name":"description_10","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Use the summary below to think about and identify possible replacement behaviors for instruction. Number separate issues in each of the the following fields to clearly connect problem behavior to communication function and replacement behavior. Target Problem Behavior(s)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox_1","value":"Gaining adult attention","operator":"="},{"field":"checkbox_1","value":"Gaining attention of peers","operator":"="},{"field":"checkbox_1","value":"Dealing with a difficult task","operator":"="},{"field":"checkbox_1","value":"Requesting things of others","operator":"="},{"field":"checkbox_1","value":"Rejecting or protesting something","operator":"="},{"field":"checkbox_1","value":"Indicating preferences or making choices","operator":"="},{"field":"checkbox_1","value":"Requesting assistance","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692813772"},{"index":3,"element":"textarea","attributes":{"name":"description_14","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Related Communication Function(s)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox_1","value":"Gaining adult attention","operator":"="},{"field":"checkbox_1","value":"Gaining attention of peers","operator":"="},{"field":"checkbox_1","value":"Dealing with a difficult task","operator":"="},{"field":"checkbox_1","value":"Requesting things of others","operator":"="},{"field":"checkbox_1","value":"Rejecting or protesting something","operator":"="},{"field":"checkbox_1","value":"Indicating preferences or making choices","operator":"="},{"field":"checkbox_1","value":"Requesting assistance","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570693189319"},{"index":3,"element":"textarea","attributes":{"name":"description_15","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Possible Replacement Behavior(s)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox_1","value":"Gaining adult attention","operator":"="},{"field":"checkbox_1","value":"Gaining attention of peers","operator":"="},{"field":"checkbox_1","value":"Dealing with a difficult task","operator":"="},{"field":"checkbox_1","value":"Requesting things of others","operator":"="},{"field":"checkbox_1","value":"Rejecting or protesting something","operator":"="},{"field":"checkbox_1","value":"Indicating preferences or making choices","operator":"="},{"field":"checkbox_1","value":"Requesting assistance","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570693182568"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570693241639"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Consequence Analysis","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570693246106"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_14","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Thinking about the last few times the behavior occurred, what typically actually happens immediately afterward?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693259824"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_15","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Are demands typically altered after the target behavior?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693270694"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_16","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Does someone usually intervene to help the student after the target behavior?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693281502"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_17","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Does the student gain access to something that he\/she appears to want?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693290589"},{"index":3,"element":"textarea","attributes":{"name":"description_16","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Does the behavior appear pleasurable to the student apart from what else is going on around him\/her?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570693299919"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_18","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Does the behavior appear to give the student control of others or the situation? Explain.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693309895"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_19","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Does the behavior, or do related behaviors, appear to be compulsive (i.e., repetitive, internally driven)? Explain.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693352870"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
384
- ),
385
 
386
  //form number : 92
387
- 'finance_application_form' => array(
388
  'screenshot' => '',
389
  'createable' => true,
390
  'title' => 'Finance Application Form',
391
  'is_pro' => true,
392
  'brief' => 'Use this form to create finance application form.',
393
- 'category' => "Finance",
394
- 'tag' => "Finance",
395
- 'json' => '[{"id":"92","title":"Finance Application Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Finance Application\t","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570699678710"},{"index":2,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date","admin_field_label":"","label_placement":"","date_format":"m\/d\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570699483235"}]},{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Sales Person","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570699667479"}]},{"fields":[{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Choose One","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Individual Credit":"Individual Credit","Joint Credit":"Joint Credit"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570699506553"}]}],"editor_options":{"title":"Three Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570699473578"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570699786078"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2>Applicant Name:<\/h2>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570700145081"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570699761165"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570699868756"}]},{"fields":[]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570699864073"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Social Security Number","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570699945451"},{"index":2,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Birth Date","admin_field_label":"","label_placement":"","date_format":"m\/d\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570699995268"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Home Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700031669"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Cell Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700064870"}]}],"editor_options":{"title":"Three Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570699889337"},{"index":2,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Applicant Email ","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570700341279"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_2","value":"","id":"","class":"","placeholder":"ex: 23"},"settings":{"container_class":"","label":"Number of Dependants","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700371647"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_3","value":"","id":"","class":"","placeholder":"00 years 00 month"},"settings":{"container_class":"","label":"Time at Resident","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700064870"}]}],"editor_options":{"title":"Three Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570700325201"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Present Address","admin_field_label":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Street Address","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Street Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570700685712"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address2","data-type":"address-element"},"settings":{"label":"Previous Address ( If less than 2 years at present address )","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Street Address","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Street Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570700788152"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Employer Information","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570700865459"},{"index":2,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_4","value":"","id":"","class":"","placeholder":"ex: 23"},"settings":{"container_class":"","label":"How Many Years","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700917049"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_5","value":"","id":"","class":"","placeholder":"$000,00.00"},"settings":{"container_class":"","label":"Gross Annual Income ","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701088541"}]},{"fields":[{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Mark please ","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Military":"Military","Spouse":"Spouse","Single":"Single"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570701132423"}]}],"editor_options":{"title":"Three Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570700882691"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_6","value":"","id":"","class":"","placeholder":"ex: 23"},"settings":{"container_class":"","label":"Military Unit Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701211272"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_7","value":"","id":"","class":"","placeholder":"ex: 23"},"settings":{"container_class":"","label":"Military Rank","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701221873"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570701192286"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_8","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Work Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701287515"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_9","value":"","id":"","class":"","placeholder":"$000,00.00"},"settings":{"container_class":"","label":"Numeric Field","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701305635"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570701278024"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_3","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Source of Additional Income","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570701344289"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"<div class=\"form-header-group \">\n<div class=\"header-text httac htvam\">\n<h2 id=\"header_45\" class=\"form-header\" style=\"text-align: center;\" data-component=\"header\">Co-Applicant Information<\/h2>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570701398711"},{"index":0,"element":"input_name","attributes":{"name":"names_2","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_1570859339482"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_1","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_1570859345110"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_10","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Cell Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701470956"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address2","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"ff-edit-address","template":"addressFields"},"uniqElKey":"el_1570859349319"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570701489712"},{"index":5,"element":"terms_and_condition","attributes":{"type":"checkbox","name":"terms-n-condition","value":false,"class":""},"settings":{"tnc_html":"<p>By clicking the submit button, I agree to terms &amp; conditions<\/p>","has_checkbox":true,"admin_field_label":"Terms and Conditions","container_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Terms & Conditions","icon_class":"icon-check-square-o","template":"termsCheckbox"},"uniqElKey":"el_1570701603420"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p>I authorize the XXX to make whatever inquires it deems necessary in connection with this credit application and in the course of review or collection of any credit extended in reliance on this application. I further authorized any person or YYY to complete and finish to the XXX any information that it may have or obtain in response to such inquires and agree that such information along with this application shall remain the XXX\'s property, whether or not credit is extended. All information stated in this application is declared to be a true representation of the facts and made for the purpose of obtaining the credit request. I HAVE REVIEWED THE ABOVE DISCLOSURE.<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570701686850"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
396
- ),
397
 
398
  //form number : 94
399
- 'blood_donation_form' => array(
400
  'screenshot' => '',
401
  'createable' => true,
402
  'title' => 'Blood Donation Form',
403
  'is_pro' => false,
404
  'brief' => 'To create a blood donation form, you can use this form.',
405
- 'category' => "Nonprofit",
406
- 'tag' => ["Nonprofit", "blood donation", "volunteer"],
407
- 'json' => '[{"id":"94","title":"Blood Donation Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Donate blood save life","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570696019397"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\">[Add your company logo her]<\/p>\n<p style=\"text-align: center;\">[Your company Address]<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570695661845"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Donor\'s Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name"},"settings":{"container_class":"","label":"Donor\'s First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false},"settings":{"container_class":"","label":"Donor\'s Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570695037123"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":"dd\/mm\/yy"},"settings":{"container_class":"","label":"Date of birth","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570695185518"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Donor\'s Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570695245123"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Donor\'s Phone","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570695257011"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Permanent Address ","admin_field_label":"","help_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Current Address ","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570695312563"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Blood Group","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"O+":"O+","O-":"O-","A+":"A+","A-":"A-","B+":"B+","B-":"B-","AB+":"AB+","AB-":"AB-"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570695412686"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Have you done a blood donation before?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570695595515"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Do you have any known allergy?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570703537287"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"green","container_class":"","help_message":"","background_color":"#67C23A","button_size":"sm","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
408
- ),
409
 
410
  //form number : 95
411
- 'room_booking_form' => array(
412
  'screenshot' => '',
413
  'createable' => true,
414
  'title' => 'Room Booking Form',
415
  'is_pro' => true,
416
  'brief' => 'You can use this form to book a room in a hotel.',
417
- 'category' => "Finance",
418
- 'tag' => ["Hotel", "finance", "room booking"],
419
- 'json' => '[{"id":"95","title":"Room Booking Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Book a Room","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570696919480"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\"><strong>[Add Your Hotel Logo]<\/strong><\/p>\n<p style=\"text-align: center;\"><strong>[Add Your Hotel Name]<\/strong><\/p>\n<p style=\"text-align: center;\"><strong>[Add Your Hotel Address]<\/strong><\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570696828484"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570696950842"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570696964480"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Room Type","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Standard room ( 1 to 2 people )":"Standard room ( 1 to 2 people )","Family room ( 1 to 4 people )":"Family room ( 1 to 4 people )","Private room ( 1 to 3 people )":"Private room ( 1 to 3 people )","Only female room":"Only female room"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570696990504"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":"dd\/mm\/yy"},"settings":{"container_class":"","label":"Arrival Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570697190440"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":"dd\/mm\/yy"},"settings":{"container_class":"","label":"Departure Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570697195279"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"No. of people","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570697423440"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Special Requests","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570697445463"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"","container_class":"","help_message":"","background_color":"","button_size":"md","color":"","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{"backgroundColor":"rgba(227, 166, 14, 1)","color":"#F5E8E8"},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
420
- ),
421
 
422
  //form number : 96
423
- 'marriage_gift_registration' => array(
424
  'screenshot' => '',
425
  'createable' => true,
426
  'title' => 'Marriage Gift Registration',
427
  'is_pro' => true,
428
  'brief' => 'Use this form to register the gifts on your marriage.',
429
- 'category' => "Social",
430
- 'tag' => ["Gift", "social", "registration"],
431
- 'json' => '[{"id":"96","title":"Marriage Gift Registration,"form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2 style=\"text-align: center;\" data-component=\"header\">[Add a Couple Image Here]<\/h2>\n<h2 id=\"header_1\" class=\"form-header\" style=\"text-align: center;\" data-component=\"header\"><span style=\"font-size: 16px;\">Our Wedding Gifts Registry<\/span><\/h2>\n<div id=\"subHeader_1\" class=\"form-subHeader\" style=\"text-align: center;\">Please select What you plan to give - Thank You<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570698614512"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Gift quantity","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570699327908"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Gift Name","label_placement":"top","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570698708437"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name ","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Your First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Your Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570698917813"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570699574779"}]},{"fields":[{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570699579971"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570699570499"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"","admin_field_label":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address ","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570698745981"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"center","button_style":"red","container_class":"","help_message":"","background_color":"#F56C6C","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
432
- ),
433
 
434
  //form number : 97
435
- 'accident_report_form' => array(
436
  'screenshot' => '',
437
  'createable' => true,
438
  'title' => 'Accident Report Form',
439
  'is_pro' => false,
440
  'brief' => 'Use this form to report an accident.',
441
- 'category' => "Government",
442
- 'tag' => ["Government", "report"],
443
- 'json' => '[{"id":"97","title":"Accident Report Form","form":{"fields":[{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"I am reporting a :","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Loss of time\/injury":"Loss of time\/injury","Work vehicle accident":"Work vehicle accident","Work accident":"Work accident","First aid incident":"First aid incident","Observation":"Observation"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570698626401"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Person Reporting Incident","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570698896825"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Person Reporting Incident (Name)","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570698682321"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Person Involved in Incident","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570698915027"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Person Reporting Incident (Name)","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570698838638"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Incident Date and Time","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y h:i K","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570698969680"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Location of Incident","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570699010617"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Please describe the event in detail.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570699031846"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Was damage done to the property?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570699051601"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"How many hours were lost because of this incident?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570699066851"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What first aid measures were needed?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570699080287"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Could this incident been avioded?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570699096303"},{"index":5,"element":"terms_and_condition","attributes":{"type":"checkbox","name":"terms-n-condition","value":false,"class":""},"settings":{"tnc_html":"I certify that the information I have provided is truthful to the best of my knowledge.\n","has_checkbox":true,"admin_field_label":"Terms and Conditions","container_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Terms & Conditions","icon_class":"icon-check-square-o","template":"termsCheckbox"},"uniqElKey":"el_1570699117158"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
444
- ),
445
 
446
  //form number : 98
447
- 'bug_report_form' => array(
448
  'screenshot' => '',
449
  'createable' => true,
450
  'title' => 'Bug Report From',
451
  'is_pro' => true,
452
  'brief' => 'You can use this form to report a bug.',
453
- 'category' => "IT",
454
- 'tag' => ["IT", "bug", "report", "tech"],
455
- 'json' => '[{"id":"98","title":"Bug Report From","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2 class=\"fsSectionHeading\" style=\"text-align: center;\">Bug Report<\/h2>\n<div class=\"fsSectionText\">\n<p style=\"text-align: center;\">Please be as detailed as possible to aid us in the troubleshooting process.<\/p>\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570699342053"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570699386484"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570699410878"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date and time you first noticed this bug","admin_field_label":"","label_placement":"","date_format":"m\/d\/Y h:i K","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570699445478"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Impact","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Low":"Low","Medium":"Medium","High":"High","Emergency":"Emergency"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570699483067"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Detailed explanation of bug","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570699556732"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"Upload a screen capture (optional)","admin_field_label":"","label_placement":"right","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":["jpg|jpeg|gif|png|bmp","doc|ppt|pps|xls|mdb|docx|xlsx|pptx|odt|odp|ods|odg|odc|odb|odf|rtf|txt","pdf","avi|divx|flv|mov|ogv|mkv|mp4|m4v|divx|mpg|mpeg|mpe|video\/quicktime|qt"],"message":"allowed_file_types"}},"conditional_logics":[]},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570699582345"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"right","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"sm","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
456
- ),
457
 
458
  //form number : 100
459
- 'check_request_form' => array(
460
  'screenshot' => '',
461
  'createable' => true,
462
  'title' => 'Check Request Form',
463
  'is_pro' => false,
464
  'brief' => 'This form can be used to do a check request from a bank.',
465
- 'category' => "Finance",
466
- 'tag' => ["Finance", "bank", "request"],
467
- 'json' => '[{"id":"100","title":"Check Request Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2 class=\"fsSectionHeading\" style=\"text-align: center;\">Check Request<\/h2>\n<div class=\"fsSectionText\">\n<p style=\"text-align: center;\">If you are in need of funds, please fill out the following check request. We will reach out to you once the request has been approved. If this is an emergency, please contact the financial department directly.<\/p>\n<\/div>\n<div id=\"gtx-trans\" style=\"position: absolute; left: -17px; top: -4.09375px;\">\n<div class=\"gtx-trans-icon\">\u00a0<\/div>\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570699935694"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h3>Requested By:<\/h3>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570699970041"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570700028158"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570700033589"},{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570700039785"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date Requested","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570700049670"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date Needed","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570700064579"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Purpose of Funds","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570700091770"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Amount Requested ($)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700125004"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h3>Make Payable To\n:<\/h3>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570700204801"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570700247628"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Payable to Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570700261819"},{"index":5,"element":"terms_and_condition","attributes":{"type":"checkbox","name":"terms-n-condition","value":false,"class":""},"settings":{"tnc_html":"I have read and agree to the <a href=\"#\">Terms and Conditions<\/a> and <a href=\"#\">Privacy Policy<\/a>","has_checkbox":true,"admin_field_label":"Terms and Conditions","container_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Terms & Conditions","icon_class":"icon-check-square-o","template":"termsCheckbox"},"uniqElKey":"el_1570700286895"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
468
- ),
469
 
470
  //form number : 120
471
- 'quote_request_form' => array(
472
  'screenshot' => '',
473
  'createable' => true,
474
  'title' => 'Quote Request Form',
475
  'is_pro' => true,
476
  'brief' => 'To create an online quote request form, use this.',
477
- 'category' => "Finance",
478
- 'tag' => ["IT", "finance", "quote", "work"],
479
- 'json' => '[{"id":"120","title":"Quote request (final)","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"REQUEST FOR QUOTE","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570709716273"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date","admin_field_label":"","label_placement":"","date_format":"m\/d\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570709737257"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570709776789"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"CONTACT INFORMATION","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570709794267"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570709814795"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570709821047"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"ff-edit-step","template":"formStep"},"uniqElKey":"el_1570860545019"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"PRODUCTS","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570709834544"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p>ITEM 1<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570710083917"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Product Name:","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570710076041"}]},{"fields":[{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Quantity","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570709979534"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570709935743"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p>ITEM 2<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570710203341"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_4","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Product Name:","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570710076041"}]},{"fields":[{"index":7,"element":"select","attributes":{"name":"dropdown_4","value":"","id":"","class":""},"settings":{"label":"Quantity","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570709979534"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570710195267"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p>ITEM 3<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570710208172"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_3","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Product Name:","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570710076041"}]},{"fields":[{"index":7,"element":"select","attributes":{"name":"dropdown_3","value":"","id":"","class":""},"settings":{"label":"Quantity","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570709979534"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570710194731"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p>NOTES<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570710260879"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Additional comments or questions:","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570710276122"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]'
480
- ),
9
  {
10
  /**
11
  * all JSON data will be stored here
12
+ *
13
+ * @return array
14
  */
15
  private function getPredefinedForms()
16
  {
17
+ $forms = [
18
 
19
+ 'blank_form' => [
20
  'screenshot' => App::publicUrl('img/forms/new_blank.png'),
21
  'createable' => true,
22
  'title' => 'Blank Form',
23
+ 'tag' => ['blank'],
24
  'category' => 'Basic',
25
  'brief' => '',
26
+ 'json' => '[{"id":"132","title":"Blank Form","form":{"fields":[],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline","asteriskPlacement": "asterisk-right"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
27
+ ],
28
 
29
  // 'login_form' => array(
30
  // 'screenshot' => App::publicUrl('img/forms/login_form.png'),
37
  // 'json' => '[{"id":"40","title":"Login Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"username","value":"","class":"","placeholder":"","maxlength":""},"settings":{"container_class":"","label":"Username \/ Email","label_placement":"","admin_field_label":"","help_message":"","prefix_label":"","suffix_label":"","validation_rules":{"required":{"value":true,"message":"The username field is required."}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"is_unique":"no","unique_validation_message":"This value need to be unique."},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"uniqElKey":"el_16439840653180.5950104089952024"},{"index":12,"element":"input_password","attributes":{"type":"password","name":"password","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Password","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"The password field is required."}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Password Field","icon_class":"ff-edit-password","template":"inputText"},"uniqElKey":"el_16439840677840.8106538437875277"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"remember","value":[]},"settings":{"dynamic_default_value":"","container_class":"","label":"Checkbox Field","admin_field_label":"","label_placement":"hide_label","display_type":"","help_message":"","advanced_options":[{"label":"Remember Me","value":"Remember Me","calc_value":"","image":"","id":0}],"calc_value_status":false,"enable_image_input":false,"values_visible":false,"randomize_options":"no","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"layout_class":""},"editor_options":{"title":"Check Box","icon_class":"ff-edit-checkbox-1","template":"inputCheckable"},"uniqElKey":"el_16439840708000.3612537438431451"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Login","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"form","conditions":null,"created_by":"1","created_at":"2022-02-04 14:14:14","updated_at":"2022-02-04 14:16:22","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>You\'ve been logged in successfully.<\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\",\"selectedDays\":[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"]},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\"}"},{"meta_key":"template_name","value":"blank_form"},{"meta_key":"_primary_email_field","value":""}]}]'
38
  // ),
39
 
40
+ 'basic_contact_form' => [
41
  'screenshot' => App::publicUrl('img/forms/contact_form.png'),
42
  'createable' => true,
43
  'title' => 'Contact Form',
44
  'is_pro' => false,
45
  'brief' => 'Create a basic contact form',
46
+ 'category' => 'Basic',
47
+ 'tag' => ['contact', 'registration', 'form', 'basic'],
48
+ 'json' => '[{"id":"15","title":"Contact Form Demo","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name"},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_1570866006692"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_1570866012914"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"subject","value":"","class":"","placeholder":"Subject"},"settings":{"container_class":"","label":"Subject","label_placement":"","admin_field_label":"Subject","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"uniqElKey":"el_1570878958648"},{"index":3,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Your Message","rows":4,"cols":2},"settings":{"container_class":"","label":"Your Message","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Text Area","icon_class":"ff-edit-textarea","template":"inputTextarea"},"uniqElKey":"el_1570879001207"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline","asteriskPlacement":"asterisk-right"},"id":"39"},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
49
+ ],
50
 
51
+ 'conversational' => [
52
  'screenshot' => App::publicUrl('img/forms/conversational.gif'),
53
  'createable' => true,
54
  'title' => 'Conversational Form',
55
  'brief' => 'Create Smart form UI',
56
  'category' => 'Basic',
57
  'tag' => ['contact', 'typeform', 'conversational', 'form'],
58
+ 'json' => '[{"id":"8","title":"Conversational Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":"eg: John Doe","maxlength":""},"settings":{"container_class":"","label":"Your Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"This value need to be unique."},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"style_pref":{"layout":"default","media":"' . $this->getRandomPhoto() . '","brightness":0,"alt_text":"","media_x_position":50,"media_y_position":50},"uniqElKey":"el_16225264130200.4393750282723139"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"Please Provide your Email Address","admin_field_label":"Email Address","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"style_pref":{"layout":"default","media":"' . $this->getRandomPhoto() . '","brightness":0,"alt_text":"","media_x_position":50,"media_y_position":50},"uniqElKey":"el_16225264372080.5731140635572141"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":"Query Subject","maxlength":""},"settings":{"container_class":"","label":"Subject","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"This value need to be unique."},"editor_options":{"title":"Simple Text","icon_class":"ff-edit-text","template":"inputText"},"style_pref":{"layout":"default","media":"' . $this->getRandomPhoto() . '","brightness":0,"alt_text":"","media_x_position":50,"media_y_position":50},"uniqElKey":"el_16225264620550.8688317001333026"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"Your Query","rows":3,"cols":2,"maxlength":""},"settings":{"container_class":"","label":"Your Query","admin_field_label":"Query","label_placement":"","help_message":"Please let us know details about your query","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Text Area","icon_class":"ff-edit-textarea","template":"inputTextarea"},"style_pref":{"layout":"default","media":"' . $this->getRandomPhoto() . '","brightness":0,"alt_text":"","media_x_position":50,"media_y_position":50},"uniqElKey":"el_16225264839650.04799061605619115"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"form","conditions":null,"created_by":"1","created_at":"2021-06-01 05:25:54","updated_at":"2021-06-01 05:48:59","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<h2>Thank you for your message. We will get in touch with you shortly<\/h2>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\",\"selectedDays\":[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"]},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let us hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\"}"},{"meta_key":"is_conversion_form","value":"yes"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_primary_email_field","value":"email"}]}]',
59
+ ],
60
 
61
  //form number : 84
62
+ 'newsletter_form' => [
63
  'screenshot' => App::publicUrl('img/forms/comment_rating.png'),
64
  'createable' => true,
65
  'title' => 'Newsletter Form',
66
  'is_pro' => false,
67
  'brief' => 'This form can be used to create newsletters.',
68
+ 'category' => 'Basic',
69
+ 'tag' => ['Newsletter', 'website', 'tech', 'subscriber'],
70
+ 'json' => '[{"id":"84","title":"Newsletter Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"<h3 style=\"text-align: center;\">Subscribe to our newsletter<\/h3>\n<p style=\"text-align: center;\">Welcome to our Newsletter Subscription Center. Sign up in the newsletter form below to receive the latest news and updates from our company.<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570690779710"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570702292674"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"left","help_message":"N:B: We will send you an email describing how to activate your newsletter subscription.","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570690876531"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"right","button_style":"red","container_class":"","help_message":"","background_color":"#F56C6C","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Subscribe","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
71
+ ],
 
72
 
73
+ 'support_form' => [
74
  'screenshot' => App::publicUrl('img/forms/support_form.png'),
75
  'createable' => true,
76
  'title' => 'Support Form',
77
  'brief' => 'Using this support form users can ask questions.',
78
+ 'category' => 'Basic',
79
+ 'tag' => ['support', 'request', 'contact'],
80
+ 'json' => '[{"id":"4","title":"Support Form","form":{"fields":[{"index":2,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"First Name field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1516797727681"},{"index":7,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"you@domain.com"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Email field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1516797731343"},{"index":3,"element":"select","attributes":{"name":"department","value":"","id":"","class":""},"settings":{"label":"Department","help_message":"","container_class":"","label_placement":"","placeholder":"- Select Department -","validation_rules":{"required":{"value":true,"message":"Department field is required"}},"conditional_logics":[]},"options":{"Web Design":"Web Design","Web Development":"Web Development","WordPress Development":"WordPress Development","DevOps":"DevOps"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1516797735245"},{"index":1,"element":"input_text","attributes":{"type":"text","name":"subject","value":"","class":"","placeholder":"Type your subject"},"settings":{"container_class":"","label":"Subject","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Subject field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Input","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1516797770161"},{"index":2,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Description","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1516797774136"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Support Form Notification","sendTo":{"type":"email","email":"{wp.admin_email}","field":null,"routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"{inputs.subject}, Support Form","message":"<p>{all_data}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
81
+ ],
82
 
83
+ 'inline_subscription' => [
84
  'screenshot' => App::publicUrl('img/forms/inline_subscription.png'),
85
  'createable' => true,
86
  'title' => 'Optin Form',
87
  'brief' => 'Create inline optin form.',
88
+ 'category' => 'Basic',
89
+ 'tag' => ['optin form', 'newsletter'],
90
+ 'json' => '[{"id":"8","title":"Subscription Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":1,"element":"container","attributes":[],"settings":{"container_class":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"columns":[{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Your Email Address"},"settings":{"container_class":"","label":"","label_placement":"","help_message":"","admin_field_label":"Email","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_16231279686950.8779857923682932"}]},{"fields":[{"index":15,"element":"custom_submit_button","attributes":{"class":"","type":"submit"},"settings":{"button_style":"","button_size":"md","align":"left","container_class":"","current_state":"normal_styles","background_color":"","color":"","hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":"100%"},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":"100%"},"button_ui":{"text":"Subscribe","type":"default","img_url":""},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom Submit Button","icon_class":"dashicons dashicons-arrow-right-alt","template":"customButton"},"uniqElKey":"el_16231279798380.5947400167493171"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_16231279284710.40955091024524304"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Subscribe","img_url":""}},"editor_options":{"title":"Submit Button"}}},"has_payment":"0","type":"form","conditions":null,"created_by":"1","created_at":"2021-06-08 04:51:36","updated_at":"2021-06-08 04:54:02","metas":[{"meta_key": "template_name","value": "inline_subscription"},{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"Thank you for your message. We will get in touch with you shortly\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<p>{all_data}<\\\/p>\\n<p>This form submitted at: {embed_post.permalink}<\\\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\"}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_primary_email_field","value":"email"}]}]',
91
+ ],
92
 
93
+ 'polling_form' => [
94
  'screenshot' => App::publicUrl('img/forms/polling_form.png'),
95
  'createable' => true,
96
  'title' => 'Polling Form',
97
  'brief' => 'A sample polling form to get user opinion from your scheduled time.',
98
+ 'category' => 'Marketing',
99
+ 'tag' => ['poll', 'vote', 'quiz', 'test'],
100
+ 'json' => '[{"id":"14","title":"Polling Form","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Full Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Full Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1559116201333"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"Email","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1559116203187"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Which game you want to play?","admin_field_label":"Which game you want to play?","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Football":"Football","Cricket":"Cricket","Hocky":"Hocky"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1559116572343"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Time of the match?","admin_field_label":"Time of the match?","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Morning":"Morning","Afternoon":"Afternoon","Any time":"Any time"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1559116394587"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Put your suggestion (optional)","admin_field_label":"suggestions","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1559188488518"}],"submitButton":{"uniqElKey":"el_1559116097684","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"green","container_class":"","help_message":"","background_color":"#67C23A","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Your opinion","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline","cssClassName":""}},"notifications":{"name":"Polling Form Notification","sendTo":{"type":"email","email":"{wp.admin_email}","field":null,"routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"Polling Form","message":"<p>{all_data}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
101
+ ],
102
 
103
  //form number : 55
104
+ 'product_order_form' => [
105
  'screenshot' => '',
106
  'createable' => true,
107
  'title' => 'Product Order Form',
108
  'is_pro' => true,
109
  'brief' => 'Use this form to create a product order. (Payment Module is required)',
110
+ 'category' => 'Product',
111
+ 'tag' => ['Shopping', 'online order', 'customer', 'contact', 'payment'],
112
+ 'json' => '[{"id":"200","title":"Product Order Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[],"label_placement":"top"},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name","maxlength":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"Middle Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_15924974034200.26712438122064186"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_15924974402130.012591725433457768"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address_1","data-type":"address-element"},"settings":{"label":"Shipping Address","admin_field_label":"Address","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":"Address Line 1"},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":"Address Line 2"},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":"City"},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":"State"},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"Zip","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"Select Country","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"priority_based","visible_list":[],"hidden_list":[],"priority_based":[]},"conditional_logics":[]},"options":{"US":"US of America","UK":"United Kingdom"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"ff-edit-address","template":"addressFields"},"uniqElKey":"el_15924974518640.796545629032311"},{"index":8,"element":"multi_payment_component","attributes":{"type":"checkbox","name":"payment_input","value":""},"settings":{"container_class":"","label":"Choose your Products","admin_field_label":"Product","label_placement":"","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"Product Item 1 - $10","value":10,"image":""},{"label":"Product Item 2 - $19","value":"19"},{"label":"Product Item 3 - $29","value":"29"}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"layout_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1592497499371"},{"index":10,"element":"payment_method","attributes":{"name":"payment_method","type":"radio","value":""},"settings":{"container_class":"","label":"Choose Payment Method","default_method":"","label_placement":"","help_message":"","payment_methods":{"stripe":{"title":"Credit\/Debit Card (Stripe)","enabled":"yes","method_value":"stripe","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with Card (Stripe)","label":"Method Label"},"require_billing_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Billing info"},"require_shipping_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Collect Shipping Info"}}},"paypal":{"title":"PayPal","enabled":"yes","method_value":"paypal","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with PayPal","label":"Method Label"},"require_shipping_address":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Shipping Address"}}},"test":{"title":"Test Payment","enabled":"yes","method_value":"test","settings":{"option_label":{"type":"text","template":"inputText","value":"Test Payment","label":"Method Label"}}}},"admin_field_label":"","conditional_logics":[]},"editor_options":{"title":"Payment Method Field","icon_class":"ff-edit-credit-card","template":"inputPaymentMethods"},"uniqElKey":"el_15924975611200.8035560583323771"},{"index":20,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p>Some description about this section<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"container_class":""},"editor_options":{"title":"Custom HTML","icon_class":"ff-edit-html","template":"customHTML"},"uniqElKey":"el_15924975898180.429874118645158"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Purchase {payment_total}","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"1","type":"form","conditions":null,"created_by":"1","created_at":"2020-06-18 23:34:18","updated_at":"2020-06-18 23:35:03","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>Thank you for your order<\/p> <p>{payment.receipt}<\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"New Order Notification to Admin\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<h4>Order Items<\/h4> <p>{payment.order_items}<\/p> <h4>Other Data:<\/h4> <p>{all_data}<\/p> <p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_payment_settings","value":"{\"currency\":\"USD\",\"push_meta_to_stripe\":\"no\",\"receipt_email\":\"email\",\"transaction_type\":\"product\",\"stripe_checkout_methods\":[\"card\"],\"stripe_meta_data\":[{\"item_value\":\"\",\"label\":\"\"}]}"},{"meta_key":"notifications","value":"{\"name\":\"Email To Customer\",\"sendTo\":{\"type\":\"field\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] Your Order Receipt\",\"message\":\"<p>{payment.receipt}<\/p> <p>Thank you<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"report_data_migrated","value":"\"yes\""}]}]',
113
+ ],
114
 
115
  //form number : 58
116
+ 'online_service_order_form' => [
117
  'screenshot' => '',
118
  'createable' => true,
119
  'title' => 'Online Service Order Form',
120
  'is_pro' => false,
121
  'brief' => 'This form can be used to create an online service order. (Payment Module is required)',
122
+ 'category' => 'Product',
123
+ 'tag' => ['Order', 'service', 'online help', 'handyman', 'payment'],
124
+ 'json' => '[{"id":"204","title":"Service Order Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[],"label_placement":"top"},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name","maxlength":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"Middle Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_15924974034200.26712438122064186"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_15924974402130.012591725433457768"},{"index":1,"element":"container","attributes":[],"settings":{"container_class":""},"columns":[{"fields":[{"index":8,"element":"multi_payment_component","attributes":{"type":"radio","name":"payment_input","value":""},"settings":{"container_class":"","label":"Choose Service","admin_field_label":"Product","label_placement":"","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"Service Item 1 - $10\/hour","value":10,"image":""},{"label":"Service Item 2 - $19\/hour","value":"19"},{"label":"Service Item 3- $29\/hour","value":"29"}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"layout_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1592502076962"}]},{"fields":[{"index":6,"element":"item_quantity_component","attributes":{"type":"number","name":"item-quantity","value":"1","id":"","class":"","placeholder":"Hours","data-quantity_item":"yes"},"settings":{"container_class":"","is_payment_field":"yes","label":"How Many Hours?","admin_field_label":"Hours","label_placement":"","help_message":"","number_step":"","prefix_label":"","suffix_label":"","target_product":"payment_input","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"1","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Item Quantity","icon_class":"ff-edit-keyboard-o","template":"inputText"},"uniqElKey":"el_15925020855320.9400112640060003"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_15925020745170.6041197871212416"},{"index":10,"element":"payment_method","attributes":{"name":"payment_method","type":"radio","value":""},"settings":{"container_class":"","label":"Choose Payment Method","default_method":"","label_placement":"","help_message":"","payment_methods":{"stripe":{"title":"Credit\/Debit Card (Stripe)","enabled":"yes","method_value":"stripe","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with Card (Stripe)","label":"Method Label"},"require_billing_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Billing info"},"require_shipping_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Collect Shipping Info"}}},"paypal":{"title":"PayPal","enabled":"yes","method_value":"paypal","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with PayPal","label":"Method Label"},"require_shipping_address":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Shipping Address"}}},"test":{"title":"Offline Payment","enabled":"yes","method_value":"test","settings":{"option_label":{"type":"text","template":"inputText","value":"Test Payment","label":"Method Label"}}}},"admin_field_label":"","conditional_logics":[]},"editor_options":{"title":"Payment Method Field","icon_class":"ff-edit-credit-card","template":"inputPaymentMethods"},"uniqElKey":"el_15924975611200.8035560583323771"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Purchase {payment_total}","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"1","type":"form","conditions":null,"created_by":"1","created_at":"2020-06-18 23:40:30","updated_at":"2020-06-18 23:44:57","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>Thank you for your order<\/p> <p>{payment.receipt}<\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"New Order Notification to Admin\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] New Form Submission\",\"message\":\"<h4>Order Items<\/h4> <p>{payment.order_items}<\/p> <h4>Other Data:<\/h4> <p>{all_data}<\/p> <p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"_payment_settings","value":"{\"currency\":\"USD\",\"push_meta_to_stripe\":\"no\",\"receipt_email\":\"email\",\"transaction_type\":\"product\",\"stripe_checkout_methods\":[\"card\"],\"stripe_meta_data\":[{\"item_value\":\"\",\"label\":\"\"}]}"},{"meta_key":"notifications","value":"{\"name\":\"Email To Customer\",\"sendTo\":{\"type\":\"field\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"[{inputs.names}] Your Order Receipt\",\"message\":\"<p>{payment.receipt}<\/p> <p>Thank you<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"report_data_migrated","value":"\"yes\""}]}]',
125
+ ],
126
 
127
  //form number : 60
128
+ 'payment_donation_form' => [
129
  'screenshot' => '',
130
  'createable' => true,
131
  'title' => 'Online Donation Form',
132
  'is_pro' => true,
133
  'brief' => 'This form can be used to create a service request. (Payment Module is required)',
134
+ 'category' => 'Product',
135
+ 'tag' => ['Order', 'service', 'online help', 'donation', 'support', 'donation', 'payment'],
136
+ 'json' => '[{"id":"206","title":"Donation Form","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[],"label_placement":"top"},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name","maxlength":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"Middle Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_15925024747330.600432137734858"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_15925024795800.5874464366027161"},{"index":1,"element":"container","attributes":[],"settings":{"container_class":""},"columns":[{"fields":[{"index":8,"element":"multi_payment_component","attributes":{"type":"radio","name":"payment_input","value":""},"settings":{"container_class":"","label":"Donation Amount","admin_field_label":"","label_placement":"","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"$20","value":"20","image":""},{"label":"$30","value":"30"},{"label":"$40","value":"40"},{"label":"Other","value":"0"}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"layout_class":"ff_list_buttons","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1592502662187"}]},{"fields":[{"index":6,"element":"custom_payment_component","attributes":{"type":"number","name":"custom-payment-amount","value":"","id":"","class":"","placeholder":"Please input your amount","data-payment_item":"yes"},"settings":{"container_class":"","is_payment_field":"yes","label":"Please Provide Custom Amount","admin_field_label":"","label_placement":"","help_message":"","number_step":"","prefix_label":"","suffix_label":"","validation_rules":{"required":{"value":true,"message":"Donation Amount is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"1","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"payment_input","value":"Other","operator":"="}]},"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Custom Payment Amount","icon_class":"ff-edit-keyboard-o","template":"inputText"},"uniqElKey":"el_1592502665775"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_15925026583450.5880630376189451"},{"index":10,"element":"payment_method","attributes":{"name":"payment_method","type":"radio","value":""},"settings":{"container_class":"","label":"Choose Payment Method","default_method":"","label_placement":"","help_message":"","payment_methods":{"stripe":{"title":"Credit\/Debit Card (Stripe)","enabled":"yes","method_value":"stripe","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with Card (Stripe)","label":"Method Label"},"require_billing_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Billing info"},"require_shipping_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Collect Shipping Info"}}},"paypal":{"title":"PayPal","enabled":"yes","method_value":"paypal","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with PayPal","label":"Method Label"},"require_shipping_address":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Shipping Address"}}},"test":{"title":"Offline Payment","enabled":"yes","method_value":"test","settings":{"option_label":{"type":"text","template":"inputText","value":"Offline Payment","label":"Method Label"}}}},"admin_field_label":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Payment Method Field","icon_class":"ff-edit-credit-card","template":"inputPaymentMethods"},"uniqElKey":"el_15925026721370.24223713945247938"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Donate Now {payment_total}","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"1","type":"form","conditions":null,"created_by":"1","created_at":"2020-06-18 23:47:51","updated_at":"2020-06-18 23:52:05","metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>Thank you for your donation. Here is the donation details<\\\/p>\\n<p>{payment.receipt}<\\\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-right\"},\"delete_entry_on_submission\":\"no\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"Admin Notification Email\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"New Donation By {inputs.names} - {payment.payment_total}\",\"message\":\"<p>New Donation has been made by {inputs.names}.<\/p>\\n<p>{payment.receipt}<\/p>\\n<h3>Other Data:<\/h3>\\n<p>{all_data}<\/p>\\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"step_data_persistency_status","value":"no"},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"_payment_settings","value":"{\"currency\":\"USD\",\"push_meta_to_stripe\":\"no\",\"receipt_email\":\"email\",\"transaction_type\":\"donation\",\"stripe_checkout_methods\":[\"card\"],\"stripe_meta_data\":[{\"item_value\":\"\",\"label\":\"\"}]}"},{"meta_key":"notifications","value":"{\"name\":\"Email To Donar\",\"sendTo\":{\"type\":\"field\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"Thank you for your Donarion - {payment.payment_total}\",\"message\":\"<p>Hello {inputs.names},<\/p>\\n<p>Thank you for your donation. Here is the donation details:<\/p>\\n<p>{payment.receipt}<\/p>\\n<h3>Other Data:<\/h3>\\n<p>{all_data}<\/p>\\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"}]}]',
137
+ ],
 
138
 
139
  //form number : 61
140
+ 'order_bump_form' => [
141
  'screenshot' => '',
142
  'createable' => true,
143
  'title' => 'Order Bump Example Form',
144
  'is_pro' => true,
145
  'brief' => 'Example how you can create order bump form. (Payment Module is required)',
146
+ 'category' => 'Product',
147
+ 'tag' => ['Online order', 'shirt order', 'product order', 'payment'],
148
+ 'json' => '[{"id":"209","title":"Order Bump Form with Fluent Forms","status":"published","appearance_settings":null,"form_fields":{"fields":[{"index":1,"element":"container","attributes":[],"settings":{"container_class":""},"columns":[{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[],"label_placement":"top"},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name","maxlength":""},"settings":{"container_class":"","label":"Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"Middle Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false,"maxlength":""},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_15906683422410.5133349422787035"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[],"is_unique":"no","unique_validation_message":"Email address need to be unique."},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_15906683351580.9543681646809019"}]}],"editor_options":{"title":"Two Column Container","icon_class":"ff-edit-column-2"},"uniqElKey":"el_15906683245510.7830044830042453"},{"index":8,"element":"multi_payment_component","attributes":{"type":"single","name":"payment_input","value":"49"},"settings":{"container_class":"","label":"Your Awesome product","admin_field_label":"","label_placement":"","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"Payment Item 1","value":10,"image":""}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1590668351796"},{"index":10,"element":"payment_method","attributes":{"name":"payment_method","type":"radio","value":""},"settings":{"container_class":"","label":"Payment Method","default_method":"","label_placement":"","help_message":"","payment_methods":{"stripe":{"title":"Credit\/Debit Card (Stripe)","enabled":"yes","method_value":"stripe","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with Card (Stripe)","label":"Method Label"},"require_billing_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Billing info"},"require_shipping_info":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Collect Shipping Info"}}},"paypal":{"title":"PayPal","enabled":"yes","method_value":"paypal","settings":{"option_label":{"type":"text","template":"inputText","value":"Pay with PayPal","label":"Method Label"},"require_shipping_address":{"type":"checkbox","template":"inputYesNoCheckbox","value":"no","label":"Require Shipping Address"}}},"test":{"title":"Test Payment","enabled":"yes","method_value":"test","settings":{"option_label":{"type":"text","template":"inputText","value":"Test Payment","label":"Method Label"}}}},"admin_field_label":"","conditional_logics":[]},"editor_options":{"title":"Payment Method Field","icon_class":"ff-edit-credit-card","template":"inputPaymentMethods"},"uniqElKey":"el_1590667729771"},{"index":1,"element":"container","attributes":[],"settings":{"container_class":"highlight_upsell"},"columns":[{"fields":[{"index":8,"element":"multi_payment_component","attributes":{"type":"checkbox","name":"payment_input_1","value":""},"settings":{"container_class":"ff_high_center","label":"Payment Item","admin_field_label":"","label_placement":"hide_label","display_type":"","help_message":"","is_payment_field":"yes","pricing_options":[{"label":"Yes, I want access only $19 Extra","value":"29","image":""}],"price_label":"Price:","enable_quantity":false,"enable_image_input":false,"is_element_lock":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Payment Field","icon_class":"ff-edit-shopping-cart","element":"input-radio","template":"inputMultiPayment"},"uniqElKey":"el_1590667787762"},{"index":20,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"margin: 0;\"><span style=\"text-decoration: underline;\"><strong>One time offer:<\/strong><\/span> I would also like get over-the-shulder videos that walk me through every single steps of the passive profits system for only $19 extra (a $97 value)<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"container_class":""},"editor_options":{"title":"Custom HTML","icon_class":"ff-edit-html","template":"customHTML"},"uniqElKey":"el_15906677914400.3394559374440802"}]}],"editor_options":{"title":"One Column Container","icon_class":"dashicons dashicons-align-center"},"uniqElKey":"el_15906677855230.32567666841505627"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"center","button_style":"orange","container_class":"","help_message":"","background_color":"#E6A23C","button_size":"lg","color":"#ffffff","button_ui":{"type":"default","text":"Purchase Now {payment_total}","img_url":""},"normal_styles":{"backgroundColor":"#409EFF","borderColor":"#409EFF","color":"#ffffff","borderRadius":"","minWidth":""},"hover_styles":{"backgroundColor":"#ffffff","borderColor":"#409EFF","color":"#409EFF","borderRadius":"","minWidth":""},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"has_payment":"1","type":"form","conditions":null,"created_by":"1","created_at":null,"updated_at":null,"metas":[{"meta_key":"formSettings","value":"{\"confirmation\":{\"redirectTo\":\"samePage\",\"messageToShow\":\"<p>Thank you for your purchase<\\\/p>\\n<p>{payment.receipt}<\\\/p>\",\"customPage\":null,\"samePageFormBehavior\":\"hide_form\",\"customUrl\":null},\"restrictions\":{\"limitNumberOfEntries\":{\"enabled\":false,\"numberOfEntries\":null,\"period\":\"total\",\"limitReachedMsg\":\"Maximum number of entries exceeded.\"},\"scheduleForm\":{\"enabled\":false,\"start\":null,\"end\":null,\"pendingMsg\":\"Form submission is not started yet.\",\"expiredMsg\":\"Form submission is now closed.\"},\"requireLogin\":{\"enabled\":false,\"requireLoginMsg\":\"You must be logged in to submit the form.\"},\"denyEmptySubmission\":{\"enabled\":false,\"message\":\"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say.\"}},\"layout\":{\"labelPlacement\":\"top\",\"helpMessagePlacement\":\"with_label\",\"errorMessagePlacement\":\"inline\",\"asteriskPlacement\":\"asterisk-left\"},\"delete_entry_on_submission\":\"no\",\"id\":\"452\",\"appendSurveyResult\":{\"enabled\":false,\"showLabel\":false,\"showCount\":false}}"},{"meta_key":"notifications","value":"{\"name\":\"Email to Site Admin\",\"sendTo\":{\"type\":\"email\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"New Payment has been made by {inputs.names} - {payment.payment_total}\",\"message\":\"<p>{payment.receipt}<\/p>\\n<p>This form submitted at: {embed_post.permalink}<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"},{"meta_key":"_custom_form_css","value":".highlight_upsell {\n padding: 10px 20px 0px;\n border: 4px dashed gray;\n margin-bottom: 20px;\n background: #fffce0;\n}\n\n.highlight_upsell .ff-el-group {\n margin-bottom: 0px;\n}\n\n.ff_high_center {\n background: #fff385;\n padding: 10px 20px;\n text-align: center;\n}\n\n.ff_high_center label {\n color: green;\n font-weight: bolder;\n font-size: 18px;\n}"},{"meta_key":"_custom_form_js","value":""},{"meta_key":"advancedValidationSettings","value":"{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":\"\",\"operator\":\"=\",\"value\":\"\"}],\"error_message\":\"\",\"validation_type\":\"fail_on_condition_met\"}"},{"meta_key":"_payment_settings","value":"{\"currency\":\"USD\",\"push_meta_to_stripe\":\"no\",\"receipt_email\":\"email\",\"transaction_type\":\"product\",\"stripe_checkout_methods\":[\"card\"],\"stripe_meta_data\":[{\"item_value\":\"\",\"label\":\"\"}]}"},{"meta_key":"notifications","value":"{\"name\":\"Email To Customer\",\"sendTo\":{\"type\":\"field\",\"email\":\"{wp.admin_email}\",\"field\":\"email\",\"routing\":[{\"email\":null,\"field\":null,\"operator\":\"=\",\"value\":null}]},\"fromName\":\"\",\"fromEmail\":\"\",\"replyTo\":\"\",\"bcc\":\"\",\"subject\":\"Thank you for Payment - {payment.payment_total}\",\"message\":\"<p>{payment.receipt}<\/p>\\n<p>&nbsp;<\/p>\",\"conditionals\":{\"status\":false,\"type\":\"all\",\"conditions\":[{\"field\":null,\"operator\":\"=\",\"value\":null}]},\"enabled\":false,\"email_template\":\"\",\"attachments\":[],\"pdf_attachments\":[]}"}]}]',
149
+ ],
150
 
151
  //form number : 62
152
+ 'student_survey_form' => [
153
  'screenshot' => '',
154
  'createable' => true,
155
  'title' => 'Student Survey Form',
156
  'is_pro' => true,
157
  'brief' => 'Use this form to do a student survey.',
158
+ 'category' => 'Education',
159
+ 'tag' => ['Survey', 'student survey', 'online survey'],
160
+ 'json' => '[{"id":"62","title":"Student Survey Form","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Your First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Your Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570681468957"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Your Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570681471575"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h3>How important is it that we provide you with the following?<\/h3>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570681554354"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Variety of student organizations ","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not important at all":"Not important at all","Somewhat important":"Somewhat important","Very Important":"Very Important","Essential":"Essential"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570681716842"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Plenty of professor office hours","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not important at all":"Not important at all","Somewhat important":"Somewhat important","Very Important":"Very Important","Essential":"Essential"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570681806289"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_2","value":""},"settings":{"container_class":"","label":"A global perspective","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not important at all":"Not important at all","Somewhat important":"Somewhat important","Very Important":"Very Important","Essential":"Essential"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570681817431"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_3","value":""},"settings":{"container_class":"","label":"Internship opportunities","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not important at all":"Not important at all","Somewhat important":"Somewhat important","Very Important":"Very Important","Essential":"Essential"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570681830625"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570682052340"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h3>How important is it that we provide you with the following?<\/h3>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570682078971"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_4","value":""},"settings":{"container_class":"","label":"Get a job to help pay for college expenses","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not at all likely\t":"Not at all likely\t","Somewhat likely\t":"Somewhat likely\t","Very Likely":"Very Likely"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682075715"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_5","value":""},"settings":{"container_class":"","label":"Become a teacher assistant\t","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not at all likely\t":"Not at all likely\t","Somewhat likely\t":"Somewhat likely\t","Very Likely":"Very Likely"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682121382"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_6","value":""},"settings":{"container_class":"","label":"Study abroad\t","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not at all likely\t":"Not at all likely\t","Somewhat likely\t":"Somewhat likely\t","Very Likely":"Very Likely"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682123066"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_7","value":""},"settings":{"container_class":"","label":"Take out student loans","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Not at all likely\t":"Not at all likely\t","Somewhat likely\t":"Somewhat likely\t","Very Likely":"Very Likely"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682145405"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Please select any activities\/groups you plan on participating in while in school.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Intramural Sports":"Intramural Sports","Student Organizations":"Student Organizations","Fraternity\/Sorority":"Fraternity\/Sorority","Other":"Other"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570682180538"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"others","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox","value":"Other","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570682234942"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button", "attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
161
+ ],
162
 
163
  //form number : 63
164
+ 'classroom_observation_form' => [
165
  'screenshot' => '',
166
  'createable' => true,
167
  'title' => 'Classroom Observation Form',
168
  'is_pro' => true,
169
  'brief' => 'Use this form to do a classroom observation.',
170
+ 'category' => 'Education',
171
+ 'tag' => ['Online survey', 'education', 'classroom'],
172
+ 'json' => '[{"id":"63","title":"Classroom Observation Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<div style=\"text-align: center;\">\n<h3>Classroom Observation<\/h3>\nPlease use the following form to evaluate the teachers performance in the classroom. Your feedback is valuable and helps us ensure success for all teachers and students. Please answer each question honestly.\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570682627458"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Teacher\'s Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Teacher\'s Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570682726941"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Classroom\/Course","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570682786996"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Observation Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570682791895"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570682808710"},{"index":9,"element":"tabular_grid","attributes":{"name":"tabular_grid","data-type":"tabular-element"},"settings":{"tabular_field_type":"radio","container_class":"","label":"Please rate the teacher\'s performance in the following areas:","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required","per_row":true}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"grid_columns":{"Strongly Agree\t":"Strongly Agree\t","Agree":"Agree","Neutral":"Neutral","Disagree":"Disagree","Strongly Disagree":"Strongly Disagree"},"grid_rows":{"Teacher was prepared for the lesson.\t":"Teacher was prepared for the lesson.\t","Teacher encouraged student participation.\t":"Teacher encouraged student participation.\t","Teacher explained the lesson thoroughly.\t":"Teacher explained the lesson thoroughly.\t","Teacher interacted with all students.\t":"Teacher interacted with all students.\t","Teacher was able to control the entire classroom.\t":"Teacher was able to control the entire classroom.\t","Teacher effectively used technology.\t":"Teacher effectively used technology.\t","Teacher used time efficiently.\t":"Teacher used time efficiently.\t","Teacher responded appropriately to student questions.\t":"Teacher responded appropriately to student questions.\t","Teacher used a variety of teaching methods.\t":"Teacher used a variety of teaching methods.\t"},"selected_grids":[]},"editor_options":{"title":"Checkable Grid","icon_class":"icon-dot-circle-o","template":"checkableGrids"},"uniqElKey":"el_1570689026920"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570683045855"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_9","value":""},"settings":{"container_class":"","label":"Based on this observation, would you pass or fail this teacher?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Pass":"Pass","Fail":"Fail"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570683067552"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Additional Comments","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570683116056"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p><strong><span id=\"label42633724\" class=\"fsLabel\">Oberserver\'s Details (Optional)<\/span><\/strong><\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570683153616"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570683173183"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"right","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Evalution","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false, "message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
173
+ ],
174
 
175
  //form number : 64
176
+ 'client_satisfaction_survey_form' => [
177
  'screenshot' => '',
178
  'createable' => true,
179
  'title' => 'Client Satisfaction Survey Form',
180
  'is_pro' => false,
181
  'brief' => 'You can use this to perform a client satisfaction survey form',
182
+ 'category' => 'Marketing',
183
+ 'tag' => ['Marketing', 'survey', 'satisfaction'],
184
+ 'json' => '[{"id":"64","title":"Client Satisfaction Survey Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Client Satisfaction Survey","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570682763978"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Which product did you purchase?","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Office Accessories ":"Office Accessories ","Home appliance ":"Home appliance ","Digital Product":"Digital Product","Garage Hardware":"Garage Hardware"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570682798953"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What was your primary reason for purchasing the product?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570682852522"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"What three features are most important to you?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Custom responses":"Custom responses","Custom integrations":"Custom integrations","Expanded functionality":"Expanded functionality","Easy to navigate":"Easy to navigate","Offline capabilities":"Offline capabilities"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570682873089"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"How can we improve our products\/services?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570682943938"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Would you use our product \/ service in the future?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"options":{"Definitely":"Definitely","Probably":"Probably","Not Sure":"Not Sure","Probably Not":"Probably Not"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570682967577"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"","container_class":"","help_message":"","background_color":"","button_size":"md","color":"","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{"backgroundColor":"rgba(126, 173, 79, 1)"},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
185
+ ],
186
 
187
  //form number : 67
188
+ 'customer_complaint_form' => [
189
  'screenshot' => '',
190
  'createable' => true,
191
  'title' => 'Customer Complaint Form',
192
  'is_pro' => false,
193
  'brief' => 'Use this form to crete a customer complaint from.',
194
+ 'category' => 'Marketing',
195
+ 'tag' => ['Marketing', 'customer complain', 'customer feedback'],
196
  'json' => '[{"id":"67","title":"Customer Complaint Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Customer Information","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570683983321"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570683568392"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Product Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570698648236"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Product ID","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570698660319"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570698540497"}]},{"fields":[{"index":5,"element":"select_country","attributes":{"name":"country-list","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Country","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"US":"United States of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-globe","template":"selectCountry"},"uniqElKey":"el_1570683722526"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Zip Code","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570698634098"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570698522369"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570698459932"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570683671991"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570698501610"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Complaint Information","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570683794847"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Complaint Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570683817559"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Complaint Details:","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570683846055"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"",
197
+ "label":"What action needs to be taken to resolve this issue?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570683866743"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"","container_class":"","help_message":"","background_color":"","button_size":"md","color":"","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{"backgroundColor":"rgba(19, 184, 203, 1)","color":"#F4EDED"},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
198
+ ],
199
 
200
  //form number : 68
201
+ 'course_evaluation_survey_form' => [
202
  'screenshot' => '',
203
  'createable' => true,
204
  'title' => 'Course Evaluation Survey form',
205
  'is_pro' => true,
206
  'brief' => 'You can use this from to perform the course evaluation survey.',
207
+ 'category' => 'Education',
208
+ 'tag' => ['Course evaluation', 'teacher assessment'],
209
  'json' => '[{"id":"68","title":"Course Evaluation Survey form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<div class=\"fsSection fs1Col\">\n<div id=\"fsRow2380722-1\" class=\"fsRow fsFieldRow fsLastRow\">\n<div id=\"fsCell42867454\" class=\"fsRowBody fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" lang=\"en\">\n<p>1. Please answer all required questions.<\/p>\n<p>2. Only complete this evaluation if you will be completing the course.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"fsSection42867455\" class=\"fsSection fs1Col\">\n<div class=\"fsSectionHeader\">\n<h2 class=\"fsSectionHeading\">Course Data:<\/h2>\n<\/div>\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570683714640"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Course Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570683740768"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Course Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570683755077"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Section Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570683779956"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Instructor Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570683742700"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570683838706"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Evaluation","description":"<p>Your Evalutionsare important so do it carefully<\/p>\n<div id=\"gtx-trans\" style=\"position: absolute; left: 293px; top: 38px;\">\n<div class=\"gtx-trans-icon\">\u00a0<\/div>\n<\/div>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570683867069"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Level of effort you put into the course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570683921870"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Your level of knowledge at the beginning of course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570683969337"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_2","value":""},"settings":{"container_class":"","label":"Your level of knowledge at the end of course.\t","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570683985928"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_4","value":""},"settings":{"container_class":"","label":"I understood the objectives of the course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Strongly Agree":"Strongly Agree","Agree":"Agree","Neutral":"Neutral","Disagree":"Disagree","Strongly Disagree":"Strongly Disagree"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684064895"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_9","value":""},"settings":{"container_class":"","label":"The length of the course was appropriate to cover content.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Strongly Agree":"Strongly Agree","Agree":"Agree","Neutral":"Neutral","Disagree":"Disagree","Strongly Disagree":"Strongly Disagree"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684312850"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_5","value":""},"settings":{"container_class":"","label":"The course provided me with new information.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Strongly Agree":"Strongly Agree","Agree":"Agree","Neutral":"Neutral","Disagree":"Disagree","Strongly Disagree":"Strongly Disagree"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684075830"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684089759"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_10","value":""},"settings":{"container_class":"","label":"Instructor\'s preparation.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684446524"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_11","value":""},"settings":{"container_class":"","label":"Instructor\'s deliverance ","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684465079"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_12","value":""},"settings":{"container_class":"","label":"Instructor\'s communication.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},
210
+ "options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684473777"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_13","value":""},"settings":{"container_class":"","label":"Instructor\'s effectiveness.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684488290"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_14","value":""},"settings":{"container_class":"","label":"Instructor\'s availability.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684497957"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_15","value":""},"settings":{"container_class":"","label":"Overall quality of the course","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684531092"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_16","value":""},"settings":{"container_class":"","label":"Overall quality of the equipment used for the course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684546492"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_17","value":""},"settings":{"container_class":"","label":"Overall quality of the course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Very Good\t":"Very Good\t","Good":"Good","Fair":"Fair","Poor":"Poor","Very Poor":"Very Poor"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684556880"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684578369"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_18","value":""},"settings":{"container_class":"","label":"Would you recommend this course to other students?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684586872"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_19","value":""},"settings":{"container_class":"","label":"Why you chose this course.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Degree requirement":"Degree requirement","Time offered":"Time offered","Interest":"Interest"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684611685"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_20","value":""},"settings":{"container_class":"","label":"Your class standing.","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Freshman":"Freshman","Sophomore":"Sophomore","Junior":"Junior","Senior":"Senior","Graduate":"Graduate"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684653872"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684731629"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Please identify aspects of the course you found useful.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684751423"}]},{"fields":[{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Please provide any suggestions to improve the course.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684758119"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570684746154"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
211
+ ],
212
 
213
  //form number : 70
214
+ 'market_research_survey_form' => [
215
  'screenshot' => '',
216
  'createable' => true,
217
  'title' => 'Market Research Survey Form',
218
  'is_pro' => true,
219
  'brief' => 'Use this form to a market research.',
220
+ 'category' => 'Marketing',
221
+ 'tag' => ['Market research', 'marketing', 'online survey'],
222
+ 'json' => '[{"id":"70","title":"Market Research Survey Form","form":{"fields":[{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"How often do you use our product?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"More than once a week":"More than once a week","Once a week":"Once a week","Monthly":"Monthly","Every other month":"Every other month","A few times a year":"A few times a year"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570684518054"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684370878"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What similar products do you use? (by name and brand)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684600189"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684374734"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"When did you last purchase our product?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Less than 1 month ago":"Less than 1 month ago","Between 1 month and 6 months ago":"Between 1 month and 6 months ago","Between 6 months and 1 year ago":"Between 6 months and 1 year ago","More than one year ago":"More than one year ago","I don\'t remember":"I don\'t remember"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570684644101"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684773438"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Have you had a chance to review our newest product?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570684780085"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684802008"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What do you think of our new product?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684812950"},{"index":3,"element":"textarea","attributes":{"name":"description_2","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What is your least favorite thing about our new product?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684817781"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684889192"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_2","value":[]},"settings":{"container_class":"","label":"How do you feel our products pricing compares with other similar products?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Less expensive":"Less expensive","About the same price":"About the same price","More expensive":"More expensive"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570684895517"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570684949903"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Tell us a little about yourself.","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570684992645"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_3","value":[]},"settings":{"container_class":"","label":"What is your age range?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"18 or younger":"18 or younger","19 - 24":"19 - 24","25 - 34":"25 - 34","35 - 44":"35 - 44","45 - 54":"45 - 54","55 or older":"55 or older"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685017517"},{"index":5,"element":"select_country","attributes":{"name":"country-list","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What country are you from?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"US":"United States of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-globe","template":"selectCountry"},"uniqElKey":"el_1570685115869"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
223
+ ],
224
 
225
  //form number : 71
226
+ 'database_management_help request_from' => [
227
  'screenshot' => '',
228
  'createable' => true,
229
  'title' => 'Database Management Help Request from',
230
  'is_pro' => true,
231
  'brief' => 'Use this form to seek help form the tech support; for example, the database management help.',
232
+ 'category' => 'Marketing',
233
+ 'tag' => ['Marketing', 'online help', 'support help'],
234
  'json' => '[{"id":"71","title":"Database Management Help Request from","form":{"fields":[{"index":2,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"First Name field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1516797564818"},{"index":7,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"you@domain.com"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Email field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1516797583697"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570684406116"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570699970556"},{"index":2,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe your current issues\/needs","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1516797589062"},{"index":2,"element":"textarea","attributes":{"name":"message_1","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe your current system if applicable.","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570684428634"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"What is your expertise with managing your database?","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Novice":"Novice","Intermediate":"Intermediate","Expert":"Expert"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570684515448"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Do you need an intranet in your office?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570684585832"},{"index":7,"element":"select","attributes":{"name":"dropdown_1","value":"","id":"","class":""},"settings":{"label":"Software Type","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Accounting and Financial Management":"Accounting and Financial Management","Asset Management":"Asset Management"," Business Intelligence and Data Management Customer":" Business Intelligence and Data Management Customer"," Relationship Management (CRM)":" Relationship Management (CRM)"," Enterprise Resource Planning (ERP)":" Enterprise Resource Planning (ERP)"," Human Capital Management (HCM)":" Human Capital Management (HCM)"," Information Management and Collaboration":" Information Management and Collaboration"," Product Lifecycle Management (PLM) ":" Product Lifecycle Management (PLM) "," Project and Process Management":" Project and Process Management"," Supply Chain Management (SCM)":" Supply Chain Management (SCM)"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570684631918"},{"index":7,"element":"select","attributes":{"name":"dropdown_2","value":"","id":"","class":""},"settings":{"label":"Business Area","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Sales and Marketing":"Sales and Marketing","Professional Services and Support":"Professional Services and Support","Production and Distribution":"Production and Distribution","IT Management and Development":"IT Management and Development","Data Management and Analysis":"Data Management and Analysis",
235
+ "Back Office and Operations":"Back Office and Operations"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570685212508"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Needed Requirements, Functionality, or Specification","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570685794700"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Desired deliverables","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570685817491"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When do you need the support?","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570685921417"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_6","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What is your budget?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685887742"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Will this system be sold as third party software?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685925016"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_2","value":[]},"settings":{"container_class":"","label":"Will you need back up services?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685980359"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_3","value":[]},"settings":{"container_class":"","label":"Will you need virus protection?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685993577"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"Upload any supporting documents.","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":["pdf","jpg|jpeg|gif|png|bmp"],"message":"allowed_file_types"}},"conditional_logics":[]},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570686018986"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
236
+ ],
237
 
238
  //form number : 72
239
+ 'university_enrollment_form' => [
240
  'screenshot' => '',
241
  'createable' => true,
242
  'title' => 'University Enrollment Form',
243
  'is_pro' => true,
244
  'brief' => 'Use this form to do the university enrollment for a studnet.',
245
+ 'category' => 'Education',
246
+ 'tag' => ['Education', 'university', 'enrollment'],
247
  'json' => '[{"id":"72","title":"University Enrollment Form","form":{"fields":[{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Anticipated Start Date","admin_field_label":"","label_placement":"","date_format":"d.m.Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570684989530"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570685021902"},{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570685042448"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570685046783"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date of Birth","admin_field_label":"","label_placement":"","date_format":"d.m.Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570700188161"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Gender","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"options":{"Male":"Male","Female":"Female","Others":"Others"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570700192033"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570685050447"},{"index":15,"element":"input_image","attributes":{"type":"file","name":"image-upload","value":"","id":"","class":"","accept":"image\/*"},"settings":{"container_class":"","label":"Proof of identity (e.g. birth certificate, Passport etc.)","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_image_types":{"value":["jpg|jpeg","png","gif"],"message":"Allowed image size does not match"}},"conditional_logics":[]},"editor_options":{"title":"Image Upload","icon_class":"icon-picture-o","template":"inputFile"},"uniqElKey":"el_1570685249394"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Background Information:","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570685313901"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Enrollment Status","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Full Time":"Full Time","Part Time":"Part Time"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570685354734"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"High School Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685422648"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address2","data-type":"address-element"},"settings":{"label":"High School Address*","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"",
248
+ "label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570685418979"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"GPA","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685436187"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_3","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Diploma Type","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685454020"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"High School Transcripts","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":["doc|ppt|pps|xls|mdb|docx|xlsx|pptx|odt|odp|ods|odg|odc|odb|odf|rtf|txt","pdf","zip|gz|gzip|rar|7z","jpg|jpeg|gif|png|bmp"],"message":"allowed_file_types"}},"conditional_logics":[]},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570685480739"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_4","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Medical Allergies","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685516179"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Parent\/Guardian Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Parent\/Guardian (First Name)","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"(Last Name)","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570685540179"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_5","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Parent\/Guardian Company","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685621269"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Parent\/Guardian Phone","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570685638725"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Parent\/Guardian Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570685654167"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
249
+ ],
250
 
251
  //form number : 74
252
+ 'volunteer_signup_form' => [
253
  'screenshot' => '',
254
  'createable' => true,
255
  'title' => 'Volunteer sign up form',
256
  'is_pro' => false,
257
  'brief' => 'Use this form to do the volunteer sign up',
258
+ 'category' => 'Nonprofit',
259
+ 'tag' => ['Non Profit', 'volunteer', 'help', 'humanity'],
260
+ 'json' => '[{"id":"74","title":"Volunteer sign up form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Volunteer Sign Up","description":"<div id=\"fsSection83427461\" class=\"fsSection fs1Col\">\n<div id=\"fsRow3617571-3\" class=\"fsRow fsFieldRow fsLastRow\">\n<div id=\"fsCell83427463\" class=\"fsRowBody fsCell fsFieldCell fsFirst fsLast fsLabelVertical fsSpan100\" lang=\"en\">\n<p class=\"fsSectionText\">Come with us and help out your local community!<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"fsSection83427464\" class=\"fsSection fs1Col\">\u00a0<\/div>","align":"center","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570685851381"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Where would you like to volunteer (Check any that apply)","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Food bank":"Food bank","Animal shelter":"Animal shelter","Preschool":"Preschool","City lawn care":"City lawn care","Community Service":"Community Service"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570685921940"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"How many hours a week can you dedicate?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570685965867"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When are you available to start?","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570686157250"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570686018387"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Permanent Address ","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570686031467"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570686088371"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570686107211"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570686084163"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"","container_class":"","help_message":"","background_color":"","button_size":"md","color":"","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{"backgroundColor":"rgba(85, 66, 66, 1)","color":"#F2EBEB"},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
261
+ ],
262
 
263
  //form number : 76
264
+ 'donation_form' => [
265
  'screenshot' => '',
266
  'createable' => true,
267
  'title' => 'Donation Form',
268
  'is_pro' => false,
269
  'brief' => 'To create the donation request form, you can use this',
270
+ 'category' => 'Nonprofit',
271
+ 'tag' => ['Non Profit', 'donation', 'help', 'humanity'],
272
+ 'json' => '[{"id":"76","title":"Donation Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\"><strong>Fillup this form to add to our doner list.\u00a0<\/strong><\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570686622963"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570686731683"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570686773473"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570686777497"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570700704044"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Your Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570700718461"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":"e.g.: $10"},"settings":{"container_class":"","label":"Amount you would like to donate","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570686956274"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Your Preferred Method of Donation","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Credit Card":"Credit Card","PayPal":"PayPal","CashApp":"CashApp","Wire Transfer":"Wire Transfer","Check":"Check"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570700560368"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"How repeatedly do you want to donate?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"One Time":"One Time","Yearly":"Yearly","Monthly":"Monthly","Weekly":"Weekly","Daily":"Daily"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570700624445"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
273
+ ],
274
 
275
  //form number : 78
276
+ 'graphic_designer_contact_form' => [
277
  'screenshot' => '',
278
  'createable' => true,
279
  'title' => 'Graphic Designer Contact Form',
280
  'is_pro' => false,
281
  'brief' => 'You can use this form to create a form that can be used to request a professional service',
282
+ 'category' => 'IT',
283
+ 'tag' => ['IT', 'tech', 'designer', 'graphic'],
284
+ 'json' => '[{"id":"78","title":"Graphic Designer Contact Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"What can I help you with?","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570686619180"},{"index":2,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"First Name field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1516797564818"},{"index":7,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"you@domain.com"},"settings":{"container_class":"","label":"Your Email","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Email field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1516797583697"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570687399112"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When is the best time to contact you?","admin_field_label":"","label_placement":"","date_format":"h:i K","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570701154762"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When is the best date to contact you?","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570687461730"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"What can I help you with?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Social Media Publication":"Social Media Publication","Prints & Ilustrations":"Prints & Ilustrations","Website Design":"Website Design","Other":"Other"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570687540354"},{"index":2,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe your need","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1516797589062"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"When do you need the graphic designer?","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570701063541"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
285
+ ],
286
 
287
  //form number : 79
288
+ 'multi_file_upload_form' => [
289
  'screenshot' => '',
290
  'createable' => true,
291
  'title' => 'Multi file upload form',
292
  'is_pro' => true,
293
  'brief' => 'You can use this form to create a form for multiple upload.',
294
+ 'category' => 'IT',
295
+ 'tag' => ['It', 'education', 'file upload'],
296
+ 'json' => '[{"id":"79","title":"Multi file upload form","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570687268942"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570687293339"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"1","id":"","class":"","placeholder":"1-5"},"settings":{"container_class":"","label":"How many files do you need uploading?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"1","message":"Minimum value is "},"max":{"value":"10","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570687439535"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"1","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687472221"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload_1","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"2","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687474449"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload_2","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"3","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687504965"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload_3","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"4","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687516403"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload_4","value":"","id":"","class":""},"settings":{"container_class":"","label":"File Upload","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"numeric-field","value":"5","operator":">="}]}},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570687530792"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Additional Comments","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570687595629"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
297
+ ],
298
 
299
  //form number : 81
300
+ 'highschool_transcript_request_from' => [
301
  'screenshot' => '',
302
  'createable' => true,
303
  'title' => 'High School Transcript Request From',
304
  'is_pro' => true,
305
  'brief' => 'Use this form to request the school documents.',
306
+ 'category' => 'Education',
307
+ 'tag' => ['Education', 'school', 'request'],
308
+ 'json' => '[{"id":"81","title":"High School Transcript Request From","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570688098700"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Graduation Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570688194088"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570688217102"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Registration Number","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688229288"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Birthdate","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570688245763"},{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Current Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570688265645"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570688289864"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"I wish to pick up an UNOFFICIAL copy of my transcript","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570688311786"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Please send an OFFICIAL copy of my high school transcript to:","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570688417395"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"College\/University Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688445375"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address2","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570688471703"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570688478486"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"<p>College\/University info<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570688542307"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"College\/University Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688579789"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address3","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570688596943"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570688603366"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570688618403"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Today\'s Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570688644312"},{"index":15,"element":"input_image","attributes":{"type":"file","name":"image-upload","value":"","id":"","class":"","accept":"image\/*"},"settings":{"container_class":"","label":"Upload Signature","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_image_types":{"value":["jpg|jpeg","png","gif"],"message":"Allowed image size does not match"}},"conditional_logics":[]},"editor_options":{"title":"Image Upload","icon_class":"icon-picture-o","template":"inputFile"},"uniqElKey":"el_1570688683654"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
309
+ ],
310
 
311
  //form number : 82
312
+ 'partnership_application_form' => [
313
  'screenshot' => '',
314
  'createable' => true,
315
  'title' => 'Partnership application form',
316
  'is_pro' => true,
317
  'brief' => 'This form can be used to create a form for patrnership agreement.',
318
+ 'category' => 'Finance',
319
+ 'tag' => ['HR', 'Finance', 'IT', 'Partnership', 'application'],
320
  'json' => '[{"id":"82","title":"Partnership application form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Partnership Application Form\t","description":"<p>Thank you for your interests in our company. We are excited to have you on board as one of our esteemed partners. To get started, please complete all fields accordingly. We will review and get in touch with your shortly. If you are unsure about any of the answers, please use an estimation.\u00a0<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570688772459"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Company Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688832461"}]},{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Company URL","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688834783"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570688827205"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Number of Employees","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688832461"}]},{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_3","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Number of Customers","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570688834783"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570688872893"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Place of Business","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Singapore":"Singapore","Malaysia":"Malaysia","HongKong":"HongKong"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570688928851"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Current Demand Generation Activities (you can select more than one)","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Direct Mailer":"Direct Mailer","Website Optimization":"Website Optimization","Email\/Mobile Marketing":"Email\/Mobile Marketing","Media Advertisement":"Media Advertisement","Social Media":"Social Media","Paid Search \/ SEO":"Paid Search \/ SEO","Trade show\/Workshop":"Trade show\/Workshop"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570689033598"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570689288717"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Do you want us to publish your profile on our site?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570689328534"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Your Company Profile (less than 150 words)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570689365456"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Company Specialization Keywords (Separated by comma)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570689403621"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_4","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Sales Inquiry Number (Leave blank if unknown)","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570689431777"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Sales Enquiry Email Address","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570689472697"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570689428622"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"Upload Logo (PNG, Transparent Background)","admin_field_label":"","label_placement":"","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":[],"message":"allowed_file_types"}},"conditional_logics":[]},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570689521234"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570689550780"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2>Point of Contact - Partnership<\/h2>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570689580798"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_5","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Contact Name","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570689809823"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,
321
+ "message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570689883374"}]},{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email Address","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570689894280"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570689850530"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
322
+ ],
323
 
324
  //form number : 83
325
+ 'employee_evaluation_form' => [
326
  'screenshot' => '',
327
  'createable' => true,
328
  'title' => 'Employee Evaluation Form',
329
  'is_pro' => true,
330
  'brief' => 'This form can be used to do an employee.',
331
+ 'category' => 'HR',
332
+ 'tag' => ['Evaluation', 'HR', 'office', 'corporate'],
333
  'json' => '[{"id":"83","title":"Employee Evaluation Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\"><strong>Please remember that, the form will be confidential and will be used for only internally; so, feel free to submit your data however you feel to submit;\u00a0<\/strong><\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570702175914"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570689782476"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Title","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570689820062"}]},{"fields":[{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Relationship with employee:","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Coworker":"Coworker","Supervisoe(Direct)":"Supervisoe(Direct)","Supervisoe(indirect)":"Supervisoe(indirect)"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570689833476"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570689816823"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<div class=\"c-title\">\n<h3>Employee Information<\/h3>\n<\/div>\n<div id=\"gtx-trans\" style=\"position: absolute; left: 130px; top: 38px;\">\n<div class=\"gtx-trans-icon\">\u00a0<\/div>\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570689925613"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570689939836"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Text Input","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570690142095"}]},{"fields":[{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Review type:","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"90-Day Review":"90-Day Review","Annual\/Raise Review":"Annual\/Raise Review"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570690153659"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570690139004"},{"index":9,"element":"tabular_grid","attributes":{"name":"tabular_grid","data-type":"tabular-element"},"settings":{"tabular_field_type":"radio","container_class":"","label":"How would you rate the employee...","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required","per_row":false}},"conditional_logics":[],"grid_columns":{"Very Poor":"Very Poor","Poor":"Poor","Average":"Average","Good":"Good","Very Good":"Very Good"},"grid_rows":{"Attendance?\t":"Attendance?\t","Attire?":"Attire?","Professionalism?":"Professionalism?","Work area?":"Work area?","Ability to do the job?":"Ability to do the job?","Ability to work with others?\t":"Ability to work with others?\t","Ability to receive feedback\/criticism?\t":"Ability to receive feedback\/criticism?\t","Ability to adapt?":"Ability to adapt?","Willingness to learn?\t":"Willingness to learn?\t","Willingness to participate?":"Willingness to participate?","Work ethic?":"Work ethic?","Quality of work?":"Quality of work?"},"selected_grids":[]},"editor_options":{"title":"Checkable Grid","icon_class":"icon-dot-circle-o","template":"checkableGrids"},"uniqElKey":"el_1570690219522"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What are the employee\'s top qualities?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570690459722"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"In what ways could the employee improve?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570690441275"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,
334
+ "pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
335
+ ],
336
 
337
  //form number : 85
338
+ 'party_invite_form' => [
339
  'screenshot' => '',
340
  'createable' => true,
341
  'title' => 'Party Invite Form',
342
  'is_pro' => true,
343
  'brief' => 'For social invitation, you can use this form.',
344
+ 'category' => 'Social',
345
+ 'tag' => ['Social', 'party', 'invite'],
346
+ 'json' => '[{"id":"85","title":"Party Invite Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\"><strong>You\'re Invited! <\/strong><\/p>\n<p style=\"text-align: center;\"><strong>Come get cool at our pool this 4th of July!<\/strong><\/p>\n<div style=\"width: 35%; margin: 0px auto; text-align: center;\">[You can add an Image\/Logo Here]<\/div>\n<p style=\"text-align: center;\">Time: July 4th 2020<\/p>\n<p style=\"text-align: center;\">Address: 2611 Ash Avenue, SAN DIEGO, CA, California, 92152\u00a0<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570690728985"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Are you coming?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570691339820"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Will you bring a guest with you?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570691365305"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Cool! How many? (maximum 3)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"3","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"input_radio_1","value":"yes","operator":"="}]},"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570691383553"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_2","value":""},"settings":{"container_class":"","label":"Are you bringing any food? (e.g. wine, sandwich, pizza etc. )","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570691442090"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Cool! What are you bringing?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"input_radio_2","value":"yes","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570691451487"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"sm","color":"#ffffff","button_ui":{"type":"default","text":"Submit","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
347
+ ],
348
 
349
  //form number : 87
350
+ 'software_survey_form' => [
351
  'screenshot' => '',
352
  'createable' => true,
353
  'title' => 'Software Survey Form',
354
  'is_pro' => true,
355
  'brief' => 'Use this form to create a software survey or a product survey.',
356
+ 'category' => 'IT',
357
+ 'tag' => ['Software', 'survey', 'request', 'office'],
358
+ 'json' => '[{"id":"87","title":"Software Survey Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Software Survey","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570691364486"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"How did you hear about ...?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Our Website":"Our Website","Frineds":"Frineds","Social Media":"Social Media","Ads":"Ads","Generic Search":"Generic Search"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570691410457"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Which platform do you use?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Mac OS":"Mac OS","Linux":"Linux","Windows":"Windows","Other":"Other"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570691462708"},{"index":8,"element":"ratings","attributes":{"class":"","value":0,"name":"ratings"},"settings":{"label":"How would you rate our software?","show_text":false,"help_message":"","label_placement":"","admin_field_label":"","container_class":"","conditional_logics":[],"validation_rules":{"required":{"value":false,"message":"This field is required"}}},"options":{"1":"Nice","2":"Good","3":"Very Good","4":"Awesome","5":"Amazing"},"editor_options":{"title":"Ratings","icon_class":"icon-eye-slash","template":"ratings"},"uniqElKey":"el_1570691524650"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_2","value":[]},"settings":{"container_class":"","label":"Did you purchase any of our software?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Yes":"Yes","No":"No"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570691587030"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Please let us know if you have any suggestions for us.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570691583718"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
359
+ ],
360
 
361
  //form number : 88
362
+ 'hardware_request_form' => [
363
  'screenshot' => '',
364
  'createable' => true,
365
  'title' => 'Hardware Request Form',
366
  'is_pro' => false,
367
  'brief' => 'You can use this form to create a hardware request in your office.',
368
+ 'category' => 'IT',
369
+ 'tag' => ['HR', 'IT', 'Hardware'],
370
+ 'json' => '[{"id":"88","title":"Hardware Request Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Hardware Request Form","description":"<p style=\"text-align: left;\">This form will be used to request if any new hardware is needed in any department.\u00a0<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692575749"},{"index":2,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Requester\'s First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"First Name field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Requester\'s Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1516797564818"},{"index":7,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":"you@domain.com"},"settings":{"container_class":"","label":"Requester\'s Email","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Email field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1516797583697"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Requester\'s Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570691864195"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Department to Purchase","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570691901415"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"What type of hardware do you need?","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"New Destop":"New Destop","New Laptop":"New Laptop","Tablet Computer":"Tablet Computer","Accessories ":"Accessories ","Others":"Others"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570691948417"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"If you choose other, please write the name.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570703018093"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Choose Software to to be pre installed ","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Microsoft Office":"Microsoft Office","Adobe Products":"Adobe Products","3D Software":"3D Software"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570692048244"},{"index":2,"element":"textarea","attributes":{"name":"message","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Other Software \/ Instruction ","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1516797589062"},{"index":2,"element":"textarea","attributes":{"name":"message_1","value":"","id":"","class":"","placeholder":"Type your message here...","rows":4,"cols":2},"settings":{"container_class":"","label":"Reason for the Request (Be Specific)","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"Message field is required"}},"conditional_logics":[]},"editor_options":{"title":"Textarea","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692289814"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date Submitted","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570692459185"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
371
+ ],
372
 
373
  //form number : 89
374
+ 'functional_behavioral_assessment_form' => [
375
  'screenshot' => '',
376
  'createable' => true,
377
  'title' => 'Functional Behavioral Assessment Form',
378
  'is_pro' => true,
379
  'brief' => 'This form can be used to perform a functional behavioral.',
380
+ 'category' => 'Education',
381
+ 'tag' => ['Education', 'Social', 'behaviour'],
382
+ 'json' => '[{"id":"89","title":"Functional Behavioral Assessment Form","form":{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570691787066"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570691810024"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Sources of Data","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Record Review":"Record Review","Scatterplot":"Scatterplot","ABC Logs":"ABC Logs","Other":"Other"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570691825335"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe the data source","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox","value":"Other","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570691891321"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Information Reported by:","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Teacher":"Teacher","Parent":"Parent","Student":"Student","Other":"Other"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570691930433"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe your role.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570691982011"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Assessor Name ","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Assessor Name(First Name)","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Assessor Name(Last Name)","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570692022666"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Problem Behaviors","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692095297"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_6","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Describe behaviors in specific and observable terms.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692282542"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_8","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Estimated frequency","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692305723"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_9","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Describe any observed patterns related to reported behavior.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692329357"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Medical\/Health Information","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692238232"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Known health, medical, or psychiatric conditions","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692110572"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Current medications","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692123766"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Effects and side-effect of medication","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692132688"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_3","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Known traumatic events","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692140643"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_4","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Medical treatments, therapies, or services (outside of school)","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692150614"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570692169923"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Intervention History","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692361306"},{"index":3,"element":"textarea","attributes":{"name":"description_2","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Describe a brief history of the problem behavior and any interventions.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692375525"},{"index":3,"element":"textarea","attributes":{"name":"description_3","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"If applicable, how would you describe the effectiveness of past intervention efforts?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692388449"},{"index":3,"element":"textarea","attributes":{"name":"description_4","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What rewards are currently provided to the student in school? For what and how often?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692388545"},{"index":3,"element":"textarea","attributes":{"name":"description_5","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What consequences are currently used in school for problem behaviors?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692407455"},{"index":3,"element":"textarea","attributes":{"name":"description_6","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What is the typical student response to these consequences?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692417021"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Skills Assessment","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692436456"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_10","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What are the student\'s academic strengths?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692454937"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_11","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What are the student\'s academic needs?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692462466"},{"index":3,"element":"textarea","attributes":{"name":"description_8","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What are the student\'s organizational needs?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692474324"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_12","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What are the student\'s preferred learning styles?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692483064"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_13","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"What are the student\'s social strengths?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570692496386"},{"index":3,"element":"textarea","attributes":{"name":"description_9","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What are the student\'s deficits in regard to social skills with adults and peers?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692522715"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Communication Summary","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570692543126"},{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Does the student have difficulty in expressing any of these basic communication functions?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Gaining adult attention":"Gaining adult attention","Gaining attention of peers":"Gaining attention of peers","Dealing with a difficult task":"Dealing with a difficult task","Expressing frustration or confusion":"Expressing frustration or confusion","Requesting things of others":"Requesting things of others","Rejecting or protesting something":"Rejecting or protesting something","Indicating preferences or making choices":"Indicating preferences or making choices","Requesting assistance":"Requesting assistance"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570692605327"},{"index":3,"element":"textarea","attributes":{"name":"description_10","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Use the summary below to think about and identify possible replacement behaviors for instruction. Number separate issues in each of the the following fields to clearly connect problem behavior to communication function and replacement behavior. Target Problem Behavior(s)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox_1","value":"Gaining adult attention","operator":"="},{"field":"checkbox_1","value":"Gaining attention of peers","operator":"="},{"field":"checkbox_1","value":"Dealing with a difficult task","operator":"="},{"field":"checkbox_1","value":"Requesting things of others","operator":"="},{"field":"checkbox_1","value":"Rejecting or protesting something","operator":"="},{"field":"checkbox_1","value":"Indicating preferences or making choices","operator":"="},{"field":"checkbox_1","value":"Requesting assistance","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570692813772"},{"index":3,"element":"textarea","attributes":{"name":"description_14","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Related Communication Function(s)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox_1","value":"Gaining adult attention","operator":"="},{"field":"checkbox_1","value":"Gaining attention of peers","operator":"="},{"field":"checkbox_1","value":"Dealing with a difficult task","operator":"="},{"field":"checkbox_1","value":"Requesting things of others","operator":"="},{"field":"checkbox_1","value":"Rejecting or protesting something","operator":"="},{"field":"checkbox_1","value":"Indicating preferences or making choices","operator":"="},{"field":"checkbox_1","value":"Requesting assistance","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570693189319"},{"index":3,"element":"textarea","attributes":{"name":"description_15","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Possible Replacement Behavior(s)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":{"type":"any","status":true,"conditions":[{"field":"checkbox_1","value":"Gaining adult attention","operator":"="},{"field":"checkbox_1","value":"Gaining attention of peers","operator":"="},{"field":"checkbox_1","value":"Dealing with a difficult task","operator":"="},{"field":"checkbox_1","value":"Requesting things of others","operator":"="},{"field":"checkbox_1","value":"Rejecting or protesting something","operator":"="},{"field":"checkbox_1","value":"Indicating preferences or making choices","operator":"="},{"field":"checkbox_1","value":"Requesting assistance","operator":"="}]}},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570693182568"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"icon-step-forward","template":"formStep"},"uniqElKey":"el_1570693241639"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Consequence Analysis","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570693246106"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_14","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Thinking about the last few times the behavior occurred, what typically actually happens immediately afterward?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693259824"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_15","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Are demands typically altered after the target behavior?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693270694"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_16","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Does someone usually intervene to help the student after the target behavior?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693281502"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_17","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Does the student gain access to something that he\/she appears to want?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693290589"},{"index":3,"element":"textarea","attributes":{"name":"description_16","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Does the behavior appear pleasurable to the student apart from what else is going on around him\/her?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570693299919"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_18","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Does the behavior appear to give the student control of others or the situation? Explain.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693309895"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_19","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Does the behavior, or do related behaviors, appear to be compulsive (i.e., repetitive, internally driven)? Explain.","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570693352870"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}},"stepsWrapper":{"stepStart":{"element":"step_start","attributes":{"id":"","class":""},"settings":{"progress_indicator":"","step_titles":[]},"editor_options":{"title":"Start Paging"}},"stepEnd":{"element":"step_end","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""}},"editor_options":{"title":"End Paging"}}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
383
+ ],
384
 
385
  //form number : 92
386
+ 'finance_application_form' => [
387
  'screenshot' => '',
388
  'createable' => true,
389
  'title' => 'Finance Application Form',
390
  'is_pro' => true,
391
  'brief' => 'Use this form to create finance application form.',
392
+ 'category' => 'Finance',
393
+ 'tag' => 'Finance',
394
+ 'json' => '[{"id":"92","title":"Finance Application Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Finance Application\t","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570699678710"},{"index":2,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date","admin_field_label":"","label_placement":"","date_format":"m\/d\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570699483235"}]},{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Sales Person","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570699667479"}]},{"fields":[{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"Choose One","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Individual Credit":"Individual Credit","Joint Credit":"Joint Credit"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570699506553"}]}],"editor_options":{"title":"Three Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570699473578"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570699786078"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2>Applicant Name:<\/h2>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570700145081"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570699761165"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570699868756"}]},{"fields":[]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570699864073"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Social Security Number","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570699945451"},{"index":2,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Birth Date","admin_field_label":"","label_placement":"","date_format":"m\/d\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570699995268"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Home Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700031669"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Cell Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700064870"}]}],"editor_options":{"title":"Three Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570699889337"},{"index":2,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Applicant Email ","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570700341279"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_2","value":"","id":"","class":"","placeholder":"ex: 23"},"settings":{"container_class":"","label":"Number of Dependants","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700371647"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_3","value":"","id":"","class":"","placeholder":"00 years 00 month"},"settings":{"container_class":"","label":"Time at Resident","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700064870"}]}],"editor_options":{"title":"Three Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570700325201"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Present Address","admin_field_label":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Street Address","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Street Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570700685712"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address2","data-type":"address-element"},"settings":{"label":"Previous Address ( If less than 2 years at present address )","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Street Address","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Street Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570700788152"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_2","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Employer Information","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570700865459"},{"index":2,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_4","value":"","id":"","class":"","placeholder":"ex: 23"},"settings":{"container_class":"","label":"How Many Years","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700917049"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_5","value":"","id":"","class":"","placeholder":"$000,00.00"},"settings":{"container_class":"","label":"Gross Annual Income ","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701088541"}]},{"fields":[{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox_1","value":[]},"settings":{"container_class":"","label":"Mark please ","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"options":{"Military":"Military","Spouse":"Spouse","Single":"Single"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570701132423"}]}],"editor_options":{"title":"Three Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570700882691"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_6","value":"","id":"","class":"","placeholder":"ex: 23"},"settings":{"container_class":"","label":"Military Unit Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701211272"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_7","value":"","id":"","class":"","placeholder":"ex: 23"},"settings":{"container_class":"","label":"Military Rank","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701221873"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570701192286"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_8","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Work Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701287515"}]},{"fields":[{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_9","value":"","id":"","class":"","placeholder":"$000,00.00"},"settings":{"container_class":"","label":"Numeric Field","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701305635"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570701278024"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_3","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Source of Additional Income","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570701344289"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"<div class=\"form-header-group \">\n<div class=\"header-text httac htvam\">\n<h2 id=\"header_45\" class=\"form-header\" style=\"text-align: center;\" data-component=\"header\">Co-Applicant Information<\/h2>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570701398711"},{"index":0,"element":"input_name","attributes":{"name":"names_2","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"ff-edit-name","template":"nameFields"},"uniqElKey":"el_1570859339482"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email_1","value":"","id":"","class":"","placeholder":"Email Address"},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"ff-edit-email","template":"inputText"},"uniqElKey":"el_1570859345110"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field_10","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Cell Phone Number","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570701470956"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address2","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"ff-edit-address","template":"addressFields"},"uniqElKey":"el_1570859349319"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570701489712"},{"index":5,"element":"terms_and_condition","attributes":{"type":"checkbox","name":"terms-n-condition","value":false,"class":""},"settings":{"tnc_html":"<p>By clicking the submit button, I agree to terms &amp; conditions<\/p>","has_checkbox":true,"admin_field_label":"Terms and Conditions","container_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Terms & Conditions","icon_class":"icon-check-square-o","template":"termsCheckbox"},"uniqElKey":"el_1570701603420"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p>I authorize the XXX to make whatever inquires it deems necessary in connection with this credit application and in the course of review or collection of any credit extended in reliance on this application. I further authorized any person or YYY to complete and finish to the XXX any information that it may have or obtain in response to such inquires and agree that such information along with this application shall remain the XXX\'s property, whether or not credit is extended. All information stated in this application is declared to be a true representation of the facts and made for the purpose of obtaining the credit request. I HAVE REVIEWED THE ABOVE DISCLOSURE.<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570701686850"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
395
+ ],
396
 
397
  //form number : 94
398
+ 'blood_donation_form' => [
399
  'screenshot' => '',
400
  'createable' => true,
401
  'title' => 'Blood Donation Form',
402
  'is_pro' => false,
403
  'brief' => 'To create a blood donation form, you can use this form.',
404
+ 'category' => 'Nonprofit',
405
+ 'tag' => ['Nonprofit', 'blood donation', 'volunteer'],
406
+ 'json' => '[{"id":"94","title":"Blood Donation Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Donate blood save life","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570696019397"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\">[Add your company logo her]<\/p>\n<p style=\"text-align: center;\">[Your company Address]<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570695661845"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Donor\'s Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":"First Name"},"settings":{"container_class":"","label":"Donor\'s First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"Last Name","required":false},"settings":{"container_class":"","label":"Donor\'s Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570695037123"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":"dd\/mm\/yy"},"settings":{"container_class":"","label":"Date of birth","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570695185518"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Donor\'s Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570695245123"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Donor\'s Phone","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570695257011"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Permanent Address ","admin_field_label":"","help_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Current Address ","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570695312563"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Blood Group","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"O+":"O+","O-":"O-","A+":"A+","A-":"A-","B+":"B+","B-":"B-","AB+":"AB+","AB-":"AB-"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570695412686"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Have you done a blood donation before?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570695595515"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Do you have any known allergy?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570703537287"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"green","container_class":"","help_message":"","background_color":"#67C23A","button_size":"sm","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
407
+ ],
408
 
409
  //form number : 95
410
+ 'room_booking_form' => [
411
  'screenshot' => '',
412
  'createable' => true,
413
  'title' => 'Room Booking Form',
414
  'is_pro' => true,
415
  'brief' => 'You can use this form to book a room in a hotel.',
416
+ 'category' => 'Finance',
417
+ 'tag' => ['Hotel', 'finance', 'room booking'],
418
+ 'json' => '[{"id":"95","title":"Room Booking Form","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Book a Room","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570696919480"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p style=\"text-align: center;\"><strong>[Add Your Hotel Logo]<\/strong><\/p>\n<p style=\"text-align: center;\"><strong>[Add Your Hotel Name]<\/strong><\/p>\n<p style=\"text-align: center;\"><strong>[Add Your Hotel Address]<\/strong><\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570696828484"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570696950842"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570696964480"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Room Type","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Standard room ( 1 to 2 people )":"Standard room ( 1 to 2 people )","Family room ( 1 to 4 people )":"Family room ( 1 to 4 people )","Private room ( 1 to 3 people )":"Private room ( 1 to 3 people )","Only female room":"Only female room"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570696990504"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":"dd\/mm\/yy"},"settings":{"container_class":"","label":"Arrival Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570697190440"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":"dd\/mm\/yy"},"settings":{"container_class":"","label":"Departure Date","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570697195279"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"No. of people","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570697423440"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Special Requests","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570697445463"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"","container_class":"","help_message":"","background_color":"","button_size":"md","color":"","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{"backgroundColor":"rgba(227, 166, 14, 1)","color":"#F5E8E8"},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
419
+ ],
420
 
421
  //form number : 96
422
+ 'marriage_gift_registration' => [
423
  'screenshot' => '',
424
  'createable' => true,
425
  'title' => 'Marriage Gift Registration',
426
  'is_pro' => true,
427
  'brief' => 'Use this form to register the gifts on your marriage.',
428
+ 'category' => 'Social',
429
+ 'tag' => ['Gift', 'social', 'registration'],
430
+ 'json' => '[{"id":"96","title":"Marriage Gift Registration,"form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2 style=\"text-align: center;\" data-component=\"header\">[Add a Couple Image Here]<\/h2>\n<h2 id=\"header_1\" class=\"form-header\" style=\"text-align: center;\" data-component=\"header\"><span style=\"font-size: 16px;\">Our Wedding Gifts Registry<\/span><\/h2>\n<div id=\"subHeader_1\" class=\"form-subHeader\" style=\"text-align: center;\">Please select What you plan to give - Thank You<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570698614512"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Gift quantity","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":[],"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570699327908"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Gift Name","label_placement":"top","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570698708437"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name ","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Your First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Your Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570698917813"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570699574779"}]},{"fields":[{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570699579971"}]}],"editor_options":{"title":"Two Column Container","icon_class":"icon-columns"},"uniqElKey":"el_1570699570499"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"","admin_field_label":"","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address ","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570698745981"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"center","button_style":"red","container_class":"","help_message":"","background_color":"#F56C6C","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Let\'s hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
431
+ ],
432
 
433
  //form number : 97
434
+ 'accident_report_form' => [
435
  'screenshot' => '',
436
  'createable' => true,
437
  'title' => 'Accident Report Form',
438
  'is_pro' => false,
439
  'brief' => 'Use this form to report an accident.',
440
+ 'category' => 'Government',
441
+ 'tag' => ['Government', 'report'],
442
+ 'json' => '[{"id":"97","title":"Accident Report Form","form":{"fields":[{"index":9,"element":"input_checkbox","attributes":{"type":"checkbox","name":"checkbox","value":[]},"settings":{"container_class":"","label":"I am reporting a :","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Loss of time\/injury":"Loss of time\/injury","Work vehicle accident":"Work vehicle accident","Work accident":"Work accident","First aid incident":"First aid incident","Observation":"Observation"},"editor_options":{"title":"Check Box","icon_class":"icon-check-square-o","template":"inputCheckbox"},"uniqElKey":"el_1570698626401"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Person Reporting Incident","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570698896825"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Person Reporting Incident (Name)","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570698682321"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"Person Involved in Incident","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570698915027"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Person Reporting Incident (Name)","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570698838638"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Incident Date and Time","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y h:i K","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570698969680"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Location of Incident","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570699010617"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Please describe the event in detail.","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570699031846"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio","value":""},"settings":{"container_class":"","label":"Was damage done to the property?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570699051601"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text_1","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"How many hours were lost because of this incident?","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570699066851"},{"index":3,"element":"textarea","attributes":{"name":"description_1","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"What first aid measures were needed?","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570699080287"},{"index":8,"element":"input_radio","attributes":{"type":"radio","name":"input_radio_1","value":""},"settings":{"container_class":"","label":"Could this incident been avioded?","admin_field_label":"","label_placement":"","display_type":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"yes":"Yes","no":"No"},"editor_options":{"title":"Radio Button","icon_class":"icon-dot-circle-o","element":"input-radio","template":"inputRadio"},"uniqElKey":"el_1570699096303"},{"index":5,"element":"terms_and_condition","attributes":{"type":"checkbox","name":"terms-n-condition","value":false,"class":""},"settings":{"tnc_html":"I certify that the information I have provided is truthful to the best of my knowledge.\n","has_checkbox":true,"admin_field_label":"Terms and Conditions","container_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Terms & Conditions","icon_class":"icon-check-square-o","template":"termsCheckbox"},"uniqElKey":"el_1570699117158"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
443
+ ],
444
 
445
  //form number : 98
446
+ 'bug_report_form' => [
447
  'screenshot' => '',
448
  'createable' => true,
449
  'title' => 'Bug Report From',
450
  'is_pro' => true,
451
  'brief' => 'You can use this form to report a bug.',
452
+ 'category' => 'IT',
453
+ 'tag' => ['IT', 'bug', 'report', 'tech'],
454
+ 'json' => '[{"id":"98","title":"Bug Report From","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2 class=\"fsSectionHeading\" style=\"text-align: center;\">Bug Report<\/h2>\n<div class=\"fsSectionText\">\n<p style=\"text-align: center;\">Please be as detailed as possible to aid us in the troubleshooting process.<\/p>\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570699342053"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570699386484"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570699410878"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date and time you first noticed this bug","admin_field_label":"","label_placement":"","date_format":"m\/d\/Y h:i K","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570699445478"},{"index":7,"element":"select","attributes":{"name":"dropdown","value":"","id":"","class":""},"settings":{"label":"Impact","admin_field_label":"","help_message":"","container_class":"","label_placement":"","placeholder":"- Select -","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"options":{"Low":"Low","Medium":"Medium","High":"High","Emergency":"Emergency"},"editor_options":{"title":"Dropdown","icon_class":"icon-caret-square-o-down","element":"select","template":"select"},"uniqElKey":"el_1570699483067"},{"index":3,"element":"textarea","attributes":{"name":"description","value":"","id":"","class":"","placeholder":"","rows":4,"cols":2},"settings":{"container_class":"","label":"Detailed explanation of bug","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Text Area","icon_class":"icon-paragraph","template":"inputTextarea"},"uniqElKey":"el_1570699556732"},{"index":14,"element":"input_file","attributes":{"type":"file","name":"file-upload","value":"","id":"","class":""},"settings":{"container_class":"","label":"Upload a screen capture (optional)","admin_field_label":"","label_placement":"right","btn_text":"Choose File","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"max_file_size":{"value":1048576,"_valueFrom":"MB","message":"Maximum file size limit"},"max_file_count":{"value":1,"message":"Max file count"},"allowed_file_types":{"value":["jpg|jpeg|gif|png|bmp","doc|ppt|pps|xls|mdb|docx|xlsx|pptx|odt|odp|ods|odg|odc|odb|odf|rtf|txt","pdf","avi|divx|flv|mov|ogv|mkv|mp4|m4v|divx|mpg|mpeg|mpe|video\/quicktime|qt"],"message":"allowed_file_types"}},"conditional_logics":[]},"editor_options":{"title":"File Upload","icon_class":"icon-upload","template":"inputFile"},"uniqElKey":"el_1570699582345"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"right","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"sm","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""},"normal_styles":{},"hover_styles":{},"current_state":"normal_styles"},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
455
+ ],
456
 
457
  //form number : 100
458
+ 'check_request_form' => [
459
  'screenshot' => '',
460
  'createable' => true,
461
  'title' => 'Check Request Form',
462
  'is_pro' => false,
463
  'brief' => 'This form can be used to do a check request from a bank.',
464
+ 'category' => 'Finance',
465
+ 'tag' => ['Finance', 'bank', 'request'],
466
+ 'json' => '[{"id":"100","title":"Check Request Form","form":{"fields":[{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h2 class=\"fsSectionHeading\" style=\"text-align: center;\">Check Request<\/h2>\n<div class=\"fsSectionText\">\n<p style=\"text-align: center;\">If you are in need of funds, please fill out the following check request. We will reach out to you once the request has been approved. If this is an emergency, please contact the financial department directly.<\/p>\n<\/div>\n<div id=\"gtx-trans\" style=\"position: absolute; left: -17px; top: -4.09375px;\">\n<div class=\"gtx-trans-icon\">\u00a0<\/div>\n<\/div>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570699935694"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h3>Requested By:<\/h3>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570699970041"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570700028158"},{"index":1,"element":"input_email","attributes":{"type":"email","name":"email","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Email","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"email":{"value":true,"message":"This field must contain a valid email"}},"conditional_logics":[]},"editor_options":{"title":"Email Address","icon_class":"icon-envelope-o","template":"inputText"},"uniqElKey":"el_1570700033589"},{"index":30,"element":"phone","attributes":{"name":"phone","class":"","value":"","type":"tel","placeholder":""},"settings":{"container_class":"","placeholder":"","int_tel_number":"no","label":"Phone","label_placement":"","help_message":"","admin_field_label":"","validation_rules":{"required":{"value":false,"message":"This field is required"},"valid_phone_number":{"value":false,"message":"Phone number is not valid"}},"conditional_logics":[]},"editor_options":{"title":"Phone Field","icon_class":"el-icon-phone-outline","template":"inputText"},"uniqElKey":"el_1570700039785"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date Requested","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570700049670"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date Needed","admin_field_label":"","label_placement":"","date_format":"d\/m\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570700064579"},{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Purpose of Funds","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template":"inputText"},"uniqElKey":"el_1570700091770"},{"index":6,"element":"input_number","attributes":{"type":"number","name":"numeric-field","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Amount Requested ($)","admin_field_label":"","label_placement":"","help_message":"","validation_rules":{"required":{"value":true,"message":"This field is required"},"numeric":{"value":true,"message":"This field must contain numeric value"},"min":{"value":"","message":"Minimum value is "},"max":{"value":"","message":"Maximum value is "}},"conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]},"calculation_settings":{"status":false,"formula":""}},"editor_options":{"title":"Numeric Field","icon_class":"icon-slack","template":"inputText"},"uniqElKey":"el_1570700125004"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<h3>Make Payable To\n:<\/h3>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570700204801"},{"index":0,"element":"input_name","attributes":{"name":"names_1","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570700247628"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Payable to Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570700261819"},{"index":5,"element":"terms_and_condition","attributes":{"type":"checkbox","name":"terms-n-condition","value":false,"class":""},"settings":{"tnc_html":"I have read and agree to the <a href=\"#\">Terms and Conditions<\/a> and <a href=\"#\">Privacy Policy<\/a>","has_checkbox":true,"admin_field_label":"Terms and Conditions","container_class":"","validation_rules":{"required":{"value":true,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Terms & Conditions","icon_class":"icon-check-square-o","template":"termsCheckbox"},"uniqElKey":"el_1570700286895"}],"submitButton":{"uniqElKey":"el_1524065200616","element":"button","attributes":{"type":"submit","class":""},"settings":{"align":"left","button_style":"default","container_class":"","help_message":"","background_color":"#409EFF","button_size":"md","color":"#ffffff","button_ui":{"type":"default","text":"Submit Form","img_url":""}},"editor_options":{"title":"Submit Button"}}},"formSettings":{"confirmation":{"redirectTo":"samePage","messageToShow":"Thank you for your message. We will get in touch with you shortly","customPage":null,"samePageFormBehavior":"hide_form","customUrl":null},"restrictions":{"limitNumberOfEntries":{"enabled":false,"numberOfEntries":null,"period":"total","limitReachedMsg":"Maximum number of entries exceeded."},"scheduleForm":{"enabled":false,"start":null,"end":null,"pendingMsg":"Form submission is not started yet.","expiredMsg":"Form submission is now closed."},"requireLogin":{"enabled":false,"requireLoginMsg":"You must be logged in to submit the form."},"denyEmptySubmission":{"enabled":false,"message":"Sorry, you cannot submit an empty form. Lets hear what you wanna say."}},"layout":{"labelPlacement":"top","helpMessagePlacement":"with_label","errorMessagePlacement":"inline"}},"notifications":{"name":"Admin Notification Email","sendTo":{"type":"email","email":"{wp.admin_email}","field":"email","routing":[{"email":null,"field":null,"operator":"=","value":null}]},"fromName":"","fromEmail":"","replyTo":"","bcc":"","subject":"[{inputs.names}] New Form Submission","message":"<p>{all_data}<\/p>\n<p>This form submitted at: {embed_post.permalink}<\/p>","conditionals":{"status":false,"type":"all","conditions":[{"field":null,"operator":"=","value":null}]},"enabled":false,"email_template":""}}]',
467
+ ],
468
 
469
  //form number : 120
470
+ 'quote_request_form' => [
471
  'screenshot' => '',
472
  'createable' => true,
473
  'title' => 'Quote Request Form',
474
  'is_pro' => true,
475
  'brief' => 'To create an online quote request form, use this.',
476
+ 'category' => 'Finance',
477
+ 'tag' => ['IT', 'finance', 'quote', 'work'],
478
+ 'json' => '[{"id":"120","title":"Quote request (final)","form":{"fields":[{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"REQUEST FOR QUOTE","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570709716273"},{"index":13,"element":"input_date","attributes":{"type":"text","name":"datetime","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Date","admin_field_label":"","label_placement":"","date_format":"m\/d\/Y","help_message":"","is_time_enabled":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Time & Date","icon_class":"icon-calendar-o","template":"inputText"},"uniqElKey":"el_1570709737257"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570709776789"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"CONTACT INFORMATION","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570709794267"},{"index":0,"element":"input_name","attributes":{"name":"names","data-type":"name-element"},"settings":{"container_class":"","admin_field_label":"Name","conditional_logics":[]},"fields":{"first_name":{"element":"input_text","attributes":{"type":"text","name":"first_name","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"First Name","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"middle_name":{"element":"input_text","attributes":{"type":"text","name":"middle_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Middle Name","help_message":"","error_message":"","visible":false,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"last_name":{"element":"input_text","attributes":{"type":"text","name":"last_name","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Last Name","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}}},"editor_options":{"title":"Name Fields","element":"name-fields","icon_class":"icon-user","template":"nameFields"},"uniqElKey":"el_1570709814795"},{"index":4,"element":"address","attributes":{"id":"","class":"","name":"address1","data-type":"address-element"},"settings":{"label":"Address","admin_field_label":"","conditional_logics":[]},"fields":{"address_line_1":{"element":"input_text","attributes":{"type":"text","name":"address_line_1","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 1","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"address_line_2":{"element":"input_text","attributes":{"type":"text","name":"address_line_2","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Address Line 2","admin_field_label":"","help_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"city":{"element":"input_text","attributes":{"type":"text","name":"city","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"City","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"state":{"element":"input_text","attributes":{"type":"text","name":"state","value":"","id":"","class":"","placeholder":""},"settings":{"container_class":"","label":"State","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"zip":{"element":"input_text","attributes":{"type":"text","name":"zip","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Zip Code","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"template":"inputText"}},"country":{"element":"select_country","attributes":{"name":"country","value":"","id":"","class":"","placeholder":"","required":false},"settings":{"container_class":"","label":"Country","admin_field_label":"","help_message":"","error_message":"","visible":true,"validation_rules":{"required":{"value":false,"message":"This field is required"}},"country_list":{"active_list":"all","visible_list":[],"hidden_list":[]},"conditional_logics":[]},"options":{"BD":"Bangladesh","US":"US of America"},"editor_options":{"title":"Country List","element":"country-list","icon_class":"icon-text-width","template":"selectCountry"}}},"editor_options":{"title":"Address Fields","element":"address-fields","icon_class":"icon-credit-card","template":"addressFields"},"uniqElKey":"el_1570709821047"},{"index":7,"element":"form_step","attributes":{"id":"","class":""},"settings":{"prev_btn":{"type":"default","text":"Previous","img_url":""},"next_btn":{"type":"default","text":"Next","img_url":""}},"editor_options":{"title":"Form Step","icon_class":"ff-edit-step","template":"formStep"},"uniqElKey":"el_1570860545019"},{"index":1,"element":"section_break","attributes":{"id":"","class":""},"settings":{"label":"PRODUCTS","description":"","align":"left","conditional_logics":[]},"editor_options":{"title":"Section Break","icon_class":"icon-puzzle-piece","template":"sectionBreak"},"uniqElKey":"el_1570709834544"},{"index":3,"element":"custom_html","attributes":[],"settings":{"html_codes":"<p>ITEM 1<\/p>","conditional_logics":{"type":"any","status":false,"conditions":[{"field":"","value":"","operator":""}]}},"editor_options":{"title":"Custom HTML","icon_class":"icon-code","template":"customHTML"},"uniqElKey":"el_1570710083917"},{"index":1,"element":"container","attributes":[],"settings":[],"columns":[{"fields":[{"index":2,"element":"input_text","attributes":{"type":"text","name":"input_text","value":"","class":"","placeholder":""},"settings":{"container_class":"","label":"Product Name:","label_placement":"","admin_field_label":"","help_message":"","validation_rules":{"required":{"value":false,"message":"This field is required"}},"conditional_logics":[]},"editor_options":{"title":"Simple Text","icon_class":"icon-text-width","template"