Skip to content

javascript

Auto Added by WPeMatico

when submitting the form from the formbuilder the hash(#) value get removed from the url

I’m trying to submit the request through the GET request by sending the fields as the query parameters, example.com/web/connector/#/home?(other query parameters) when the request is submitted the URL gets changed into this example.com/web/connector/?(other query parameters) the #/home gets removed from… Read More »when submitting the form from the formbuilder the hash(#) value get removed from the url

How to add Custom JS in admin side?

I want to add custom JS on product edit page in admin side. After doing some R&D, i found a solution but that didn’t work. What I have done so far, app/code/Vendor/Module/view/adminhtml/layout/catalog_product_bundling_tags.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”admin-2columns-left” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <head> <script… Read More »How to add Custom JS in admin side?

getting Js error in google analytics code

We are using google analytics in our website but getting below error in console. Error: Uncaught SyntaxError: Unexpected token ‘:’ Script: <script type=”text/x-magento-init”> { “*”: { “Magento_GoogleAnalytics/js/google-analytics”: { “isCookieRestrictionModeEnabled”: <?= (int)$block->isCookieRestrictionModeEnabled() ?>, “currentWebsite”: <?= (int)$block->getCurrentWebsiteId() ?>, “cookieName”: “<?= /* @escapeNotVerified… Read More »getting Js error in google analytics code