I have set up a form in Gravity with conditional logic and used Product fields to create custom Total, Transaction Fee, and Subtotal fields with formulas. The calculations are correct on the front end. However, when viewing the entry’s Order Summary, Gravity Forms automatically adds a second, duplicate Total and Subtotal field alongside my custom fields.
How can I prevent this duplicate Total and Subtotal from displaying in the Order Summary?
If you’re using Calculated Product fields to power your custom Total, Transaction Fee, and Subtotal fields, Gravity Forms simply can’t distinguish how you’re attempting to use these fields and what they actually are: Product fields. And Gravity Forms will always calculate all Product fields on a form to get an actual Subtotal and Total for the order summary.
The trick is to use Number fields displayed as currency for anything that you don’t want to be part of the final calculated total.
I simply want the gravity form total and sub total field to be hide as i dont use it in form making all calculations are okay just it automatically add total and subtotal Which i dont want
As David explained, you need to use a standard number field instead of the product field for your sub total. You’ll then be able to use the built-in total field, which will display the correct amount.
I think @usamarasheed709 means that they want to modify the Order Details table shown on the Entry Details page (and in notifications), so the total fields aren’t ever shown. If that’s correct, you’d need to use the gform_order_summary filter to remove the tfoot section of the markup (maybe with preg_replace?).