We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gw-conditional-logic-enable-current-field.php
1 parent 9e6142c commit 1a82b41Copy full SHA for 1a82b41
gravity-forms/gw-conditional-logic-enable-current-field.php
@@ -23,7 +23,7 @@
23
<script>
24
gform.addFilter( 'gform_is_conditional_logic_field', function( isSupported, field ) {
25
// Only apply our logic in the form editor when the current field is selected and its visibility is not set to "administrative".
26
- if ( GetSelectedField() && GetSelectedField().id == field.id && field.visibility !== 'administrative' ) {
+ if ( typeof GetSelectedField === "function" && GetSelectedField() && GetSelectedField().id == field.id && field.visibility !== 'administrative' ) {
27
var inputType = GetInputType( field );
28
isSupported = jQuery.inArray( inputType, GetConditionalLogicFields() ) !== -1;
29
}
0 commit comments