BrightLeaf Digital Code Snippet Library

Check out our growing library of code snippets for Gravity Forms!

Eleven of these snippets register their own shortcodes. Every tag and attribute is in our Gravity Forms shortcodes reference. Need a Gravity Forms or GravityView shortcode built for you? Try the free shortcode builder.

Protect Hidden Calculation Fields during Approval Step

Goal

GravityFlow Approval and User Input steps have a little known quirk. Before processing the step (approval, rejection, user input, etc.) they clear the values from fields that are hidden by conditional logic if those fields are marked as editable OR are calculation fields. This snippet adds a multi select field to the bottom of your Approval or User Input step settings that allows you to select any calculation field on the form. If the selected field is hidden by conditional logic during the pre-processing the field is temporarily (for the duration of the step) marked as read only to protect it from being cleared.

Install Using Code Snippets

This code is best installed directly on your site using the Code Snippets plugin.

Check Out the Code

Loading...

Code Copied!
Stay Updated On This Snippet

This entry has no reviews.

Discuss or report a problem with this snippet

Post in Snippets & Custom Code with the snippet name and a link to this page.