This action is used to existing content on the web page with new content as specified within the action.
The following configuration options are available for this action:
Content: This is used to specify the content that should replace the existing content on the page displayed to the visitor. If you click on the Edit button, a larger text box is displayed to make it easier to provide the replacement content. Anything added here will be treated as HTML.
Replace Content: This is used to specify whether to perform an inner, outer, or partial replace. Selecting ‘Inner’ or ‘Outer’ from the dropdown instructs the action to replace the content in the relevant section of the specified page element. If you select ‘Partial’, you are then required to enter a Regular Expression to identify the content to replace.
Regular Expression: This is used to provide the Regular Expression that specifies the content to replace.
Test Regular Expression: This 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.
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 an action is configured to insert content before or after an element with a name which is used more than once on the web page, the action will use 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.