BrightLeaf Digital Code Snippet Library
Check out our growing library of code snippets for Gravity Forms!
GravityOps Search special merge tag for GravityMath
This snippet creates a special merge tag syntax for GravityMath shortcodes. This is necessary when nesting GravityMath shortcodes inside a GravityOps Search display attribute. See here for more info.
The syntax for the new merge tags is as follows:
- It needs to be wrapped in
~before and after the merge tag - It needs the
gosprefix after the first~ - Each section of the merge tag can be broken up with one or two
.or_characters
It looks like this
~gos__FIELD_ID__modifier~
~gos.FIELD_ID.modifier~
~gos__FIELD_ID.modifier~
For example
~gos__3.2__sum~becomes
{:3.2:sum}
Install Using Code Snippets
This code is best installed directly on your site using the Code Snippets plugin.
Check Out the Code
Loading...
Stay Updated On This Snippet
Review this entry
You must be logged in to post a comment.