This element is used to change the change the classes associated with an element. It allows you to add one or more classes to an element, remove one or more classes from an element, or replace all the classes on an element.
The following configuration options are available for this action:
Change Type: This is used to specify whether you wish to add a class, remove a class, or replace a class.
Change Value: This is used to provide detail about the change you wish to make.
If you selected Add to Class from the Change Type dropdown, this is a required field and you should use this text box to specify the class you wish to add.
If you selected Remove from Class in the Change Type dropdown, this is a required field and you should use this text box to specify the class you wish to remove.
If you selected Replace Class with in the Change Type dropdown, you should use this text box to specify the class you wish to replace the current class with. If you do not provide a value here, the class associated with the element is removed.
Element Property: This is used to specify the method used to identify the page element you wish to use as a marker to insert the content. You can identify the page element using either the element name or the element ID.
Element Property Value: This is used to specify the element name or the element ID of the element which contains the information you wish to mask. If you check the Match using Regular Expression box, this field is used to enter the Regular Expression you wish to use.
Note: It is possible that multiple instances of a form field with the same name can exist on a web page. In this case, if the action is configured to change the class of an element with a name which is used more than once on the web page, the action will change the class of the first matched element name.
Test Regular Expression: This button appears when you check the Match using Regular Expression box. It is used to provide a sample of text against which to test the Regular Expression specified for this action. Type in some sample text and press the Test button. A tick or cross is displayed to indicate whether the Regular Expression is valid when run against the sample text provided.
Match Using Regular Expression: This instructs the action to use a regEx to identify the element(s) to hide. If you wish to use a regEx, check this box and enter the regEx in the Element Property Value text box.
Case Sensitive: This is used to specify whether or not the page element match should be case sensitive. Checking the box instructs the action to use case sensitive matching. This option is not available if you check the Match using Regular Expression box.