Take advantage of the power of the "this" variable. In Tags, "this"
refers to the DOM element that caused a Rule event to get triggered. In
the case of the Click event, "this" refers to the DOM element that the
user had clicked. Though your Click event may have a selector that
matches more than one item, e.g. the selector could be as simple as
"a[href]", but "this" will always refer to the one specific element that
triggered the event. E.g. if my web page has 3 elements and I click
the 2nd one, then "this" would refer to that 2nd DOM element. So
now, in the Rule's action, you can set your click text with
%this.@cleanText% . What this does is to get the text content of the
clicked DOM element. The special operator "@cleanText" returns the
trimmed version of the text content, i.e. no leading nor trailing
whitespace. (In JavaScript, that's similar to the String trim()
function.) Note: the "this" variable makes sense within the context of
the Rule. E.g. if you have another Rule with a Click event, but that
Click event has the selector "button", then when that Rule's actions
run, the "this" would refer to the specific DOM element that
the user had clicked. Hope that helps!