| @@ -95,8 +95,10 @@ | ||
| 95 | 95 | return; |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | if ( ! empty( $form->options['chat'] ) ) { |
| 99 | + // Track view test mode with chat form. | |
| 100 | + FrmUsageController::update_flows_data( 'view_test_mode', 'chat_form' ); | |
| 99 | 101 | echo '<div class="frm_note_style">' . esc_html__( 'Test Mode is currently not supported for conversational forms.', 'formidable' ) . '</div>'; |
| 100 | 102 | return; |
| 101 | 103 | } |
| 102 | 104 | |
| @@ -141,8 +143,12 @@ | ||
| 141 | 143 | $test_mode_install_span_attrs['data-oneclick'] = json_encode( $oneclick_data ); |
| 142 | 144 | } |
| 143 | 145 | |
| 144 | 146 | self::include_svg(); |
| 147 | + | |
| 148 | + if ( ! $enabled ) { | |
| 149 | + FrmUsageController::update_flows_data( 'view_test_mode', 'no_addon' ); | |
| 150 | + } | |
| 145 | 151 | |
| 146 | 152 | include FrmAppHelper::plugin_path() . '/classes/views/test-mode/container.php'; |
| 147 | 153 | } |
| 148 | 154 | |