Panel menu preventing form from function

Issues related to forms.
Post Reply
User avatar
Bluesman
 
 
Posts: 1157
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Panel menu preventing form from function

Post by Bluesman »

Hi Pablo. I have taken the menu idea from the template "Kandinsky" using it in a masterpage with this formpage is preventing the form and the Cptcha 3 from function?? Any idea?

Testproject: https://www.chevere.ec/web_storage/Tell ... merror.zip

Tnx for your time
"Make My Day"

See my Website
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Panel menu preventing form from function

Post by Pablo »

What do I need to do to see the problem?
Can you please be more specific?
User avatar
Bluesman
 
 
Posts: 1157
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Panel menu preventing form from function

Post by Bluesman »

Pablo wrote: Thu May 30, 2024 8:57 am What do I need to do to see the problem?
Can you please be more specific?
As I wrote, the form is not working. You can see immediately that the Captcha 3 info window that always appear in the lower right corner doesn't appear.
But if you delete the panel menu it starts to work.

Heres the published page:
https://tellusskomakeri.se/kontakt.php
"Make My Day"

See my Website
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Panel menu preventing form from function

Post by Pablo »

I'm sorry but I am not sure if the problem is related to the menu. Also, the captcha is visible fer me.
There are lot of other items on the page that can cause the issue, like custom code, event etc.

Can you please remove everything from the page that is not relevant to your question?
User avatar
BaconFries
 
 
Posts: 5648
Joined: Thu Aug 16, 2007 7:32 pm

Re: Panel menu preventing form from function

Post by BaconFries »

This is unrelated to the menu and the Captcha it is because you have added an event to the forms submit button which breaks how it works. When you use a submit button it has its own event which is "onclick" or "click". As you have included an event animation "onmouseover" "onmouseout" this overrides the "onclick" or "click" so you will need include return true;
See the following: Form elements or links no longer works with events
User avatar
Bluesman
 
 
Posts: 1157
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Panel menu preventing form from function

Post by Bluesman »

BaconFries wrote: Thu May 30, 2024 10:19 am This is unrelated to the menu and the Captcha it is because you have added an event to the forms submit button which breaks how it works. When you use a submit button it has its own event which is "onclick" or "click". As you have included an event animation "onmouseover" "onmouseout" this overrides the "onclick" or "click" so you will need include return true;
See the following: Form elements or links no longer works with events
Tnx Bacon. I was thinking of this issue because when I removed the panel menu the form started to work. Will try your suggestion. Tnx
"Make My Day"

See my Website
User avatar
Bluesman
 
 
Posts: 1157
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Panel menu preventing form from function

Post by Bluesman »

BaconFries wrote: Thu May 30, 2024 10:19 am This is unrelated to the menu and the Captcha it is because you have added an event to the forms submit button which breaks how it works. When you use a submit button it has its own event which is "onclick" or "click". As you have included an event animation "onmouseover" "onmouseout" this overrides the "onclick" or "click" so you will need include return true;
See the following: Form elements or links no longer works with events
Hi again... erased the events from the submit button and it still doesn't work??
"Make My Day"

See my Website
User avatar
BaconFries
 
 
Posts: 5648
Joined: Thu Aug 16, 2007 7:32 pm

Re: Panel menu preventing form from function

Post by BaconFries »

Also note that there is no "onmouseover" or "onmouseout" in mobile devices as this feature is activated by the use of a mouse which triggers the event or animation when used.
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Panel menu preventing form from function

Post by Pablo »

Does the form work when you remove the captcha?
User avatar
Bluesman
 
 
Posts: 1157
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Panel menu preventing form from function

Post by Bluesman »

Pablo wrote: Thu May 30, 2024 11:07 am Does the form work when you remove the captcha?
No
But all works if I remove the panel menu
"Make My Day"

See my Website
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Panel menu preventing form from function

Post by Pablo »

Can you please update the page:
- remove all custom scripts
- remove all events
- remove captcha
- republish the page
User avatar
Bluesman
 
 
Posts: 1157
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Panel menu preventing form from function

Post by Bluesman »

Pablo wrote: Thu May 30, 2024 12:25 pm Can you please update the page:
- remove all custom scripts
- remove all events
- remove captcha
- republish the page
Yes done... only extra now is the animation for the rotating logo in the panelmenu...
"Make My Day"

See my Website
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Panel menu preventing form from function

Post by Pablo »

Maybe you can try this:

Add an 'onclick' event to the button
Action: 'form submit'
Target: om_ossLayoutGrid1
User avatar
Bluesman
 
 
Posts: 1157
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Panel menu preventing form from function

Post by Bluesman »

Pablo wrote: Fri May 31, 2024 9:13 am Maybe you can try this:

Add an 'onclick' event to the button
Action: 'form submit'
Target: om_ossLayoutGrid1
Did it, but no function
"Make My Day"

See my Website
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Panel menu preventing form from function

Post by Pablo »

There is still custom code on the page (google).
Also, you there is an event in the panel menu (headerPanelMenu) referring to 'Tooltips1' which does not exists.

Note that it's impossible to debug the page when it contains invalid or third party code.
That is why I keep asking to remove everything from the page that is not related to your question.

Tip: if you have an issue then keep the demo page as simple as possible. Otherwise it may take very long to figure out what is wrong.
User avatar
Bluesman
 
 
Posts: 1157
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Panel menu preventing form from function

Post by Bluesman »

Pablo wrote: Fri May 31, 2024 12:59 pm There is still custom code on the page (google).
Also, you there is an event in the panel menu (headerPanelMenu) referring to 'Tooltips1' which does not exists.

Note that it's impossible to debug the page when it contains invalid or third party code.
That is why I keep asking to remove everything from the page that is not related to your question.

Tip: if you have an issue then keep the demo page as simple as possible. Otherwise it may take very long to figure out what is wrong.
Hi Pablo. I'm some frustrated/upgiven... :( I didn't put any third part code. The only Google is the usual Google Analytics. And as I wrote I took the panel menu from template "Kandinsky". So I will change the menu for solve this problem. Because when erasing it as I wrote... the form starts to work.
Tnx for checking out this issue :D
"Make My Day"

See my Website
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Panel menu preventing form from function

Post by Pablo »

I didn't put any third part code. The only Google is the usual Google Analytics.
That is what I am referring to.
The reason why I am asking you to remove all third party code is because it makes it more difficult to debug the code (and find a solution)
And as I wrote I took the panel menu from template "Kandinsky".
Yes, but you did not copy the tool-tip which makes the event in the panel menu invalid, which may also cause issue.

When I run the page without the code and event then it works for me.
User avatar
Bluesman
 
 
Posts: 1157
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Panel menu preventing form from function

Post by Bluesman »

Pablo wrote: Sat Jun 01, 2024 7:57 pm
I didn't put any third part code. The only Google is the usual Google Analytics.
That is what I am referring to.
And as I wrote I took the panel menu from template "Kandinsky".
Yes, but you did not copy the tool-tip which makes the event in the panel menu invalid, which may also cause issue.

I erased the tooltip from the beginning and took away the events. And as I said, have not inserted any 3rd party codes.

I will remake it from start or have another menu...
"Make My Day"

See my Website
Post Reply