|
18 | 18 | 'label' => __('Enable Audio (in Beta)', 'videomail-for-ninja-forms'), |
19 | 19 | 'width' => 'one-half', |
20 | 20 | 'group' => 'primary', |
21 | | - 'value' => TRUE, |
| 21 | + 'value' => true, |
22 | 22 | 'help' => __('The audio feature is in beta and needs feedback for improvement. Otherwise leave it disabled and stick to Sign Language, grins') |
23 | 23 | ), |
24 | 24 |
|
|
40 | 40 | 'placeholder' => __('Email address or search for a field', 'videomail-for-ninja-forms'), |
41 | 41 | 'value' => '', |
42 | 42 | 'width' => 'full', |
43 | | - 'use_merge_tags' => TRUE |
| 43 | + 'use_merge_tags' => true |
44 | 44 | ), |
45 | 45 |
|
46 | 46 | 'email_to' => array( |
|
51 | 51 | 'placeholder' => __('Email address or search for a field', 'videomail-for-ninja-forms'), |
52 | 52 | 'value' => '', |
53 | 53 | 'width' => 'full', |
54 | | - 'use_merge_tags' => TRUE |
| 54 | + 'use_merge_tags' => true |
55 | 55 | ), |
56 | 56 |
|
57 | 57 | 'email_subject' => array( |
|
62 | 62 | 'placeholder' => __('Subject Text or search for a field', 'videomail-for-ninja-forms'), |
63 | 63 | 'value' => '', |
64 | 64 | 'width' => 'full', |
65 | | - 'use_merge_tags' => TRUE |
| 65 | + 'use_merge_tags' => true |
66 | 66 | ), |
67 | 67 |
|
68 | 68 | 'email_body' => array( |
|
73 | 73 | 'placeholder' => __('Body Text or search for a field', 'videomail-for-ninja-forms'), |
74 | 74 | 'value' => '', |
75 | 75 | 'width' => 'full', |
76 | | - 'use_merge_tags' => TRUE |
| 76 | + 'use_merge_tags' => true |
77 | 77 | ), |
78 | 78 |
|
79 | 79 | 'limit_seconds' => array( |
|
119 | 119 | 'label' => __('Stretch', 'videomail-for-ninja-forms'), |
120 | 120 | 'width' => 'one-half', |
121 | 121 | 'group' => 'display', |
122 | | - 'value' => FALSE, |
| 122 | + 'value' => false, |
123 | 123 | 'help' => __('Stretch video to full width of the parent container.', 'videomail-for-ninja-forms') |
124 | 124 | ), |
125 | 125 |
|
|
129 | 129 | 'label' => __('Debug Mode', 'videomail-for-ninja-forms'), |
130 | 130 | 'width' => 'one-half', |
131 | 131 | 'group' => 'advanced', |
132 | | - 'value' => FALSE, |
| 132 | + 'value' => false, |
133 | 133 | 'help' => __('Show verbose comments in the developer console.', 'videomail-for-ninja-forms') |
134 | 134 | ), |
135 | 135 |
|
|
139 | 139 | 'label' => __('Ask for camera permission on record (fallback, not recommended)', 'videomail-for-ninja-forms'), |
140 | 140 | 'width' => 'one-half', |
141 | 141 | 'group' => 'advanced', |
142 | | - 'value' => FALSE, |
| 142 | + 'value' => false, |
143 | 143 | 'help' => __('With this option enabled, the user will not be asked for camera permissions unless the record button is clicked. When disabled (default), permissions are being asked on page load which is preferred. This option is only for when the there is a conflict with the application when already many other events occur on page load.', 'videomail-for-ninja-forms') |
144 | 144 | ) |
| 145 | + |
| 146 | + 'disable_form_when_submitting' => array( |
| 147 | + 'name' => 'disable_form_when_submitting', |
| 148 | + 'type' => 'toggle', |
| 149 | + 'label' => __('Disable form inputs once submitted', 'videomail-for-ninja-forms'), |
| 150 | + 'width' => 'one-half', |
| 151 | + 'group' => 'advanced', |
| 152 | + 'value' => false, |
| 153 | + 'help' => __('With this option enabled, all form inputs become disabled once submitted and cannot be changed which the ideal during any submissions. Unfortunately WordPress plugins can overlap with each other the submit button, hence it is disabled by default. Only enable if you are sure and have fully tested it.', 'videomail-for-ninja-forms') |
| 154 | + ) |
145 | 155 | )); |
0 commit comments