Trying to find a way to change case of submitted entries from uppercase to capitalized. I’ve seen some snippets here that can successfully change all or selected entries to uppercase, but none that can take uppercase entries and convert to capitalized.
I’ve found CSS can be used to convert lowercase entries to capitalized or uppercase or vice versa, but haven’t had any luck changing uppercase entries to capitalized.
The issue: client has mostly foreign students applying via GF. In some countries, apparently filling out entire form in uppercase is standard, but this makes using submitted data cumbersome as they have to retype entries when used in merges.
Hello. I think I would use the built in logging in Gravity Forms to see what the $entry and $value look like, so you can see how to access them. First, enable Gravity Forms logging:
Then add a logging statement to your uppercase_text function so that you can see what the $value and the $entry look like.
You can add these lines to your existing function, right before the $t= line: