I have Gravity Forms configured where I need to save JSON data in a hidden field. The data saves correctly, but when I check the entries in the admin panel, it shows the JSON as plain text which is quite difficult to read.
I’ve tried using the gform_entry_field_value filter to format the JSON data for display, but it still appears as raw JSON in the admin entry view. Is there a way to make the JSON data display in a more user-friendly format in the admin section?
I encountered this issue last year, and I found that the gform_entry_field_value filter does not format the JSON correctly for admin entries. Instead, using gform_entries_column_filter was the solution for modifying how the field appears in the entries list. For detailed views, I hooked into gform_field_input while checking for the admin context. You can decode the JSON with json_decode() and then format it using print_r() or create a simple HTML table to display key-value pairs. Note that this only affects visibility and doesn’t alter the stored data.
dbl check ur filter - you might need gform_entries_field_value for admin display instead. try hooking into gform_field_content to change how it renders in the backend. usually works for me.