This site is scheduled for a small content update on Tuesday, January 22nd, between the hours of 5:00pm and 8:00pm Pacific Time (Jan 23 01:00 – Jan 23 4:00 UTC). Access to this site may be slightly delayed during that time.

Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Enable sanitization on individual fields

Log in to subscribe to topics and get notified when content changes.

Enable sanitization on individual fields

You can use field attributes to enable or disable the sanitizer on individual fields.

Before you begin

Role required: admin

About this task

You need to first set the sanitizer property to false, and then enable the sanitizer on a per-field basis for any form.

Procedure

  1. Navigate to the sys_properties table and set the glide.html.sanitize_all_fields to false.
    This disables the sanitizer for all HTML fields in the system.
  2. Navigate to the form that contains the HTML field.
  3. Right-click the HTML field label, and select Configure Dictionary.
    The Dictionary Entry form opens for the HTML field.
  4. Enter one of the following in the Attributes field:
    • To disable sanitization enter html_sanitize=false
    • To enable sanitization enter html_sanitize=true
  5. Click Update.
  6. To enable the HTML sanitizer for translated HTML fields, set the glide.translated_html.sanitize_all_fields property is true.
Feedback