Top
Disregard Application Attributes during Mutations
  • 17 May 2024
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Disregard Application Attributes during Mutations

  • Dark
    Light
  • PDF

Article summary

With mutation exclude attribute name, Whatfix's mutation observer monitors change in the application’s DOM (Document Object Model) but excludes certain attributes from triggering any actions or updates.

Whatfix uses mutation observer to observe changes to the DOM. Within these changes, attribute mutations refer to changes that occur to the attributes of HTML elements. For example, if the class or id of an element changes, that’s an attribute mutation. For more information on mutations and how Whatfix uses MutationObserver API, see Configure Mutation Observer.

When you enable mutation exclude attribute names, you create a list of attributes that Whatfix should ignore. Even if these attributes change, Whatfix won’t consider them mutations and won’t react to them.

By ignoring irrelevant attribute changes, Whatfix can focus on the important mutations that affect the functionality of the application. This ensures that Whatfix doesn’t react to irrelevant or minor attribute changes and can focus on more critical mutations that might affect the user’s interaction with the application.

Consider an example where you’re using Whatfix on a web application that frequently changes the color of its buttons. The color attribute (style) changes are not significant for the functionality of the Whatfix flows, so you decide to exclude them from mutation observations.

Use the following steps to disregard certain application attributes during mutations:

  1. On the Whatfix Guidance dashboard, click Settings.
    ia_left_nav_settings

  2. Click Advanced customisation.
    ia_settings_advanced%20configuration

  3. Click Technical configuration.
    ac_tech config.png

  4. Click Add preferences.
    tech config_add prefrences.png

  1. Click Smart Tip.
    tech config_smart tip.png

  2. Select the Mutation Exclude Attribute Names checkbox.
    tech config_enable mutation exclude attributes name.png

  3. Click Add.
    tech config_add button.png

  4. In the Mutation Exclude Attribute Names Value field, enter the attributes you want Whatfix to disregard, as shown in the following screenshot:
    tech config_mutation exclude attributes value 2.png

  5. Click Save.
    tech config_save.png


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.