Skip to content

Commit ed6731d

Browse files
committed
gw-product-quantity-conditional.php: Added snippet to use quantity value of Product Field as a conditional logic field.
1 parent 73e6bef commit ed6731d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

gravity-forms/gw-product-quantity-conditional.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,6 @@ public function enqueue_admin_scripts() {
5656
}
5757
return false;
5858
},
59-
60-
// Check if field is a custom quantity field
61-
isCustomQtyField: function(fieldId) {
62-
return typeof fieldId === 'string' && fieldId.indexOf('quantity_') === 0;
63-
},
64-
65-
// Get the product field ID from a quantity field ID
66-
getCustomQtyFieldId: function(fieldId) {
67-
return fieldId.replace('quantity_', '');
68-
},
69-
70-
isQtyField: function(fieldId) {
71-
var field = GetFieldById(fieldId);
72-
return field && field.type == 'quantity';
73-
}
74-
7559
};
7660

7761
gform.addFilter('gform_conditional_logic_fields', function(options, form, selectedFieldId) {

0 commit comments

Comments
 (0)