Troubleshooting Ninja Forms: Why Are My Submissions Showing 'Redacted' or '&'?
Content
If you've found that your Ninja Forms submissions are displaying the frustrating “(redacted)” message for all data or are converting special characters like ‘&’ into ‘&’, you're not alone. These are common issues that can often be resolved by checking a few key settings. This guide will walk you through the most likely causes and their solutions.
Understanding the “Redacted” Submission Problem
The most common reason for all fields in a submission to show as “(redacted)” is a conflict with the form's data storage settings. This is typically not a bug but a result of how the “Store Submission” action is configured.
Primary Cause and Solution:
- The “Store Submission” action must be active on your form for entries to be saved to your WordPress database. If this action is not enabled, no data will be stored, often resulting in “redacted” placeholders.
- Conversely, having multiple “Store Submission” actions active on a single form can create duplicate entries. Check your form's “Emails & Actions” settings and ensure only one “Store Submission” action is present.
- Navigate to Ninja Forms > Edit Form > Emails & Actions tab. Confirm that a “Store Submission” action is present and correctly configured to save the data you need.
Fixing Special Character Encoding (e.g., & becoming &)
Another frequent issue is the incorrect encoding of special characters like ampersands (&) in the form submission table. The character ‘&’ is displayed as its HTML entity, ‘&’.
Why This Happens:
- This is typically a security feature. Ninja Forms, like many other platforms, sanitizes data before displaying it in the browser to prevent cross-site scripting (XSS) attacks. This process converts special characters into their HTML equivalents.
Potential Workarounds:
- This sanitization is often intentional for security. However, if you require the raw data for processing, you may need to access it programmatically.
- The data is often stored correctly in the database. You might need to use custom code or export the submissions to a CSV file to view the unsanitized characters.
- For developers, using the
wp_kses()orhtml_entity_decode()functions carefully on the output can revert these entities back to their original characters, but this must be done with extreme caution to maintain site security.
Checking for Plugin Conflicts
If the above solutions don't resolve your issue, a plugin or theme conflict could be the cause. To test for this:
- Temporarily switch your WordPress theme to a default theme like Twenty Twenty-Four.
- Deactivate all plugins except Ninja Forms.
- If the problem is resolved, reactivate your plugins one by one to identify the one causing the conflict.
By methodically checking these settings and potential conflicts, you can usually resolve the issues of redacted data or encoded characters and get your forms working correctly again.
Related Support Threads Support
-
Multi part form showing everything on one pagehttps://wordpress.org/support/topic/multi-part-form-showing-everything-on-one-page/
-
Email not rendering HTML correctlyhttps://wordpress.org/support/topic/email-not-rendering-html-correctly/
-
How to URL encode fields included in a Success Messagehttps://wordpress.org/support/topic/how-to-url-encode-fields-included-in-a-success-message/
-
Double Entrieshttps://wordpress.org/support/topic/double-entries-4/
-
form actionshttps://wordpress.org/support/topic/form-actions-2/
-
‘&’ character being formatted in submissions pagehttps://wordpress.org/support/topic/character-being-formatted-in-submissions-page/
-
Use {all_fields_table} in email, but leave out certain fieldshttps://wordpress.org/support/topic/use-all_fields_table-in-email-but-leave-out-certain-fields/
-
Visualizar Respuesta de Formulariohttps://wordpress.org/support/topic/visualizar-respuesta-de-formulario/
-
Redactedhttps://wordpress.org/support/topic/redacted/
-
Add php to default valuehttps://wordpress.org/support/topic/add-php-to-default-value/
-
Order of fields in emailhttps://wordpress.org/support/topic/order-of-fields-in-email/
-
Set hidden fields values with phphttps://wordpress.org/support/topic/set-hidden-fields-values-with-php/
-
SQL Query to fetch data for a single formhttps://wordpress.org/support/topic/sql-query-to-fetch-data-for-a-single-form/
-
Form field data gets losthttps://wordpress.org/support/topic/form-field-data-gets-lost/
-
How to delete a field in new interfacehttps://wordpress.org/support/topic/how-to-delete-a-field-in-new-interface/
-
Email Notification Editing All Fieldshttps://wordpress.org/support/topic/email-notification-editing-all-fields/
-
All Entries Are Redactedhttps://wordpress.org/support/topic/all-entries-are-redacted/
-
Delete Fields on Duplicated Parthttps://wordpress.org/support/topic/delete-fields-on-duplicated-part/
-
Feature Request: SESSION varshttps://wordpress.org/support/topic/feature-request-session-vars/
-
Merge Tag using a session cookie, added to hidden fieldhttps://wordpress.org/support/topic/merge-tag-using-a-session-cookie-added-to-hidden-field/
-
Raw escaped html in submissions datahttps://wordpress.org/support/topic/raw-escaped-html-in-submissions-data/
-
Duplicate IDshttps://wordpress.org/support/topic/duplicate-ids-7/