Magento 2 static block content form problem

When we add a form to a static block which is loaded in the UB mega menu, the inputfield looses it’s focus on a click event. Therefore we cannot populate the form with content. See the video for more information. https://screencast.com/t/0yi76dNNgy
Do you know a solutiuon to this problem, or how we can add a working form?

  1. Profile photo of jorritwienjorritwien 30.00 $tone March 29, 2018
    Hi Ub-theme,Can you help me out with this issue?Greetings,Kasper Dissel
  2. Profile photo of jorritwienjorritwien 30.00 $tone April 3, 2018
    Hi Ub-theme, We see there is posted 1 answer but we can't see it. Is something going wrong? Please let us know. Our client is getting impatience. Greetings, Kasper Dissel
  3. Profile photo of jorritwienjorritwien 30.00 $tone April 5, 2018
    ???

12 answers

Profile photo of ubdev Staff 89060.00 $tone April 5, 2018
Public

Hi Kasper Dissel, 
Our apology, our team somehow missed your ticket. For additional reply, please add a new answer instead of submitting a reply directly under your original question, so that our system can send notification properly. 
Meanwhile, please provide us your site URL, admin, SSH and FTP credentials so that we can check further. We could not reproduce the issue at our end. 
PS. Please mark your reply private when sending your site credentials here, then only you and our technical can access.
Sincerely,
Ubertheme team

#1
Profile photo of Ziven Staff 92660.00 $tone April 6, 2018
Public

Hi Kasper Dissel,
It’s easier for me to debug and check your specific case when having access to your site. 
Anyway, I tried to reproduce the issue at my end by creating two newsletter from, however I did not see the issue you mentioned. Here’s a video of my testing instance:  https://www.dropbox.com/s/zke1g4x33nivlxq/2018-04-06_10-41-59.MP4?dl=0
Could you provide me the HTML markup of your two forms? Also please let me know the version of UB Mega Menu you’re using at the moment. I will try to check further.
Best Regards,
Ziven.

#3
Profile photo of Ziven Staff 92660.00 $tone April 6, 2018
Public

Hi Kasper Dissel,
I tried to clone the issue again, but the UB Mega Menu is working fine at my end. Please take a look at my new testing instance: https://www.dropbox.com/s/oaxug6ufx0lv0e4/2018-04-06_16-48-41.MP4?dl=0
As you can see from the video, I added both Newsletter and Contact form. 
Best Regards,
Ziven.

#6
Profile photo of jorritwien 30.00 $tone April 6, 2018
Public

Hi Ziven,
I see that the form isloaded correctly when its a child item. 
However if you try to add a link to the custom content the form will be broken again: https://screencast.com/t/WJb8LR3iWB
I guess this will be the same for you. Can you help us out?
Best Regards,
Kasper Dissel

#7
Profile photo of Mall Staff 170390.00 $tone April 9, 2018
Public

Hi Kasper Dissel,

However if you try to add a link to the custom content the form will be broken again: https://screencast.com/t/WJb8LR3iWB
I guess this will be the same for you. Can you help us out?

I am sorry for getting back to you a bit late as we have just been back to work after weekend.
Thanks for your video that helps me reproduce the issue at my end.
I have detected and found the root of issue was because there was a javascript conflict with Magento core (associated with your settings of menu item’s content).
To handle this case, I have added more tweak code in our UBMegaMenu module and you could do steps as follows to solve that issue at your end:
Step 1: Download the php file here, and upload to replace the original file at: app/code/Ubertheme/UbMegaMenu/Helper/Mega.php
Step 2: Download the xml file here, and upload to replace the original file at: app/code/Ubertheme/UbMegaMenu/view/frontend/layout/default.xml
Step 3: Download the javascript file here, upload to replace the original file at: app/code/Ubertheme/UbMegaMenu/view/frontend/web/js/ub_mega_menu.js
Once done, please clean the Magento cache by running the command: php -f bin/magento cache:clean
And check the issue you mentioned again.
If the issue still persists, please do let me know. 
Regards,
Mall.
 

#8
Profile photo of ubdev Staff 89060.00 $tone April 10, 2018
Public

Hi Kasper Dissel,
Please follow all steps Mall mentioned above. In case you still need help, please do let us know. 
PS. We’ve already added the workaround to include in our next release of UB Mega Menu update. 
Best,
Ubertheme team
 

#10
Profile photo of ubdev Staff 89060.00 $tone April 20, 2018
Public

Hi Kasper Dissel,
Due to our high workload, we still need further time to get the next release of UB Mega Menu ready. Meanwhile, please follow Mall’s guide in reply #8 for now. 
Thanks for your understanding. 
Regards,
Ubertheme team
 

#12

Please login or Register to Submit Answer

Written By

Comments