Skip to content

Commit 6dac47d

Browse files
committed
gw-gravity-forms-custom-js.php: Fixed issues introduced by GF 2.7 where Custom Code setting was appearing on all form setting views.
1 parent 67b92d5 commit 6dac47d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gravity-forms/gw-gravity-forms-custom-js.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ public function noconflict_styles( $scripts = array() ) {
9494
}
9595

9696
public function add_custom_js_setting( $form_settings, $form ) {
97+
if ( rgget( 'subview' ) !== 'settings' ) {
98+
return $form_settings;
99+
}
97100
$form_settings['Custom Code'] = array(
98101
'title' => esc_html__( 'Custom Code' ),
99102
'fields' => array(

0 commit comments

Comments
 (0)