How to Force Strict 50-Character Limit When Using Gravity Forms Merge Tags?

I’m trying to dynamically populate a text field with the first 50 characters from several other fields in the same form using this format:

@{Info1:18:0,50} @{Info2:19:0,50} @{Info3:20:0,50} @{Info4:22:0,50}

The merge tags are populating the full field content instead of truncating to 50 characters as specified.

Dang, I feel like there is a way to do this with Advanced Merge Tags from GravityWP but I didn’t see the function at a glance:

Heading out the door now but wanted to share that before I left.

Looks like the modifier :gwp_substring would get the job done.

1 Like