Hi,
i encountered an UEM issue that clicking on an img button inside a form which submits the form does not end up as a 'Click on ...' user action in UEM, i had a look at the code behind the button(id='findCustInfo') as shown below,it seems that the original behavior of the button is disabled and the form submit is handled in another method, i wonder if that's the problem, don't know how dynatrace 'see' click events, can anyone provide some knowledge here?
<script type="text/javascript">
$(document).ready(function () {
bindglobalsearchevents();
}); //ready
function bindglobalsearchevents() {
$("[id='findCustInfo']").off("click").on("click", function (event) {
event.preventDefault(); //default actions of the event will not be triggered. suspicious
setIFrmApplicationSource(); //only set the submit url here, submit is done somewhere else
});
$("[id='searchForm']").off("submit").on("submit", function (event) {
event.preventDefault();
setIFrmApplicationSource();
});
}
function setIFrmApplicationSource() {
if ($("[id='Search']").val().trim().length > 0 && $("[id='Search']").serialize().trim().length > 0) {
if (!SwitchDocMode()) {
setapplicationiframe("/Search/Search?" + $("[id='Search']").serialize().toLowerCase());
} else {
window.location = "/?redirecturl=" + window.location.protocol + "//" + window.location.host + "/Search/Search?" + $("[id='Search']").serialize().toLowerCase();
}
disableSearchForm();
}
}
</script>
Answer by Andreas G. ·
Seems like you are using jQuery. Have you checked jQuery as a supported JavaScript framework in your System Profile -> UEM Settings?
Answer by Xiaoping L. ·
Yes, jQuery is checked, also tried to check additional event handlers in advanced setting.
Answer by Andreas G. ·
In this case I guess you have two options
a) Open a support ticket to see whether this should be supported out-of-the-box or not
b) Use our JavaScript ADK and JavaScript Ajax ADK to capture the User Action from within setIFrmApplicationSource
JANUARY 15, 3:00 PM GMT / 10:00 AM ET