Hi, i am trying to build a form where i place five product fields and depending of how many items are in the shopping cart turn the product field visibility on or off. I have tried several methods and none of then i can't get to work,
1) If i do it with conditional logic the checkbox field must be visible, it won't work if the field is admin only (not visible), that is not acceptable for my solution.
2) I tried the gform_product_info filter to try to add new product fields dynamically, somehow i never got this filter to even execute, i tried both gform_product_info and gform_product_info_ID.
3) Tried the gform_pre_render approach changing the price field's adminOnly property, the property does change but it does nothing, the field always shows, even though the documentation says every field has this property when i edit the form it is not there.
Could anybody suggest how to to accomplish this? Any of the three approaches are ok by me, but the second one, where i could create the fields dynamically would be the best one.
I would like to know also how to change the product field labels (name, Qty, price), i can't find a clear explanation on how to do this this on the documentation.