I have a form that uses several product fields. I need to modify ONE of the product fields.
I can target the individual form, but the gform_product_price filter (reference) changes ALL of the product fields. Is there any way to target just ONE?
Hi Preston. The filter applies to all the product fields in one form, if you target it by form. It does not apply to individual products in that form. If you have any other questions, please let us know.
Looking at the code on this one, it appears that you might be able to also call up a third argument (field ID) into that filter. With that, youād be able to conditionally check/apply based on that field ID. However, it looks like that third parameter is not available when the filter is run on the entry detail screen. Maybe try something like this? Iāve not tested ā only guessing from what I see in the filter. Curious to know what you find.
Nope. Does not generate an error, but fails at returning āCostā. Reverts back to (else) displaying āPriceā. ā¦and I also double-checked that I am referencing the correct field.
@Preston - if you want to suggest this change, I recommend adding a note for our product team here. https://www.gravityforms.com/gravity-forms-roadmap/ - Click the blue in the lower left on this page to add a note for our product team: