Buttons with same class name on all pages of the website

Bronze Contributor
Bronze Contributor

There are 3 pages in a website. All the pages have a 'continue' button, which have the same html/class structure. However, the URL pathname differs.

I have 2 on-handler extensions with the URL condition setup as given below. But, only the first page on-handler event gets triggered. Can anyone please tell me, what am I missing?

Also, is this the right approach? Please suggest the best practices to be followed in this situation.

Thanks in advance.Screenshot from 2020-05-27 17-19-51.pngScreenshot from 2020-05-27 19-05-22.png

 

2 REPLIES 2

Buttons with same class name on all pages of the website

Employee Emeritus

Hello,

Here are two things that you can check on to troubleshoot this:

  1. Ensure that the conditions of the second extension are being met. 
  2. In the developer tools console check to see if there are any errors coming from utag.js. You have a lot of JS code being assigned to variables in the extensions. If any of them have errors it will prevent the link or view call from being fired. 

Buttons with same class name on all pages of the website

Bronze Contributor
Bronze Contributor

Thanks @WuBaZi  for the reply. I was able to fix the issue. I debugged the extension as you have mentioned with few additional changes.

Public