04-28-2023, 05:17 PM
I found a solution which works!
I am posting it here because I think it may help other developers.
The link to run the Ajax function to switch the template is written like that:
<a href="#" onclick="JsFunction()">
The href="#" links to the current page. But if you remove # and write it like that:
<a href="" onclick="JsFunction()">
It refreshes the page without prompting any message!
I am posting it here because I think it may help other developers.
The link to run the Ajax function to switch the template is written like that:
<a href="#" onclick="JsFunction()">
The href="#" links to the current page. But if you remove # and write it like that:
<a href="" onclick="JsFunction()">
It refreshes the page without prompting any message!

