hello team
by using html snippet make content type as javascript and write code as per the your requirement.
This approach allows you to integrate custom HTML and JavaScript widgets into your Mendix application, providing flexibility to enhance your app's functionality and appearance.