Hello, I'm new to HubSpot development. I used html + css + js(I have used a jQuery plugin and waypoints.js.) to make counting numbers function dynamically. It is working fine normally but when I tested the module html + css + js code on HubSpot, the counting numbers did not work. Could somebody please assist me in determining the cause and offering a solution? Thank you in advance!
Apr 21, 20227:17 AM - edited Apr 21, 20227:22 AM
Participant
Counting numbers did not work in HubSpot Module
SOLVE
Actually, The problem was about the js file linking in HubSpot. the solution: I have uploaded the required js file in a folder and add three file: 1.a jQuery file (JavaScript library) . 2.waypoint js (which is a helper file to detect screen position for the counter) 3.counter js (which is a file for the counter itself) and then add that file link to a specific module. In our case in the counter module.
Apr 21, 20227:17 AM - edited Apr 21, 20227:22 AM
Participant
Counting numbers did not work in HubSpot Module
SOLVE
Actually, The problem was about the js file linking in HubSpot. the solution: I have uploaded the required js file in a folder and add three file: 1.a jQuery file (JavaScript library) . 2.waypoint js (which is a helper file to detect screen position for the counter) 3.counter js (which is a file for the counter itself) and then add that file link to a specific module. In our case in the counter module.
Please create one separate Custom module(for testing purpose) and paste below code in (html+hubl) with no any change , if it works proper for you then make modification as per your requirements.
@FAlluqmani , are you getting any errors reported in your console?
My first guess is that the library is being called before jquery.
Look for anything like $ is undefined or jquery is undefined
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!