Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form builder produces "undefined" message when trying to submit a form. #867

Closed
felixkat opened this issue Nov 10, 2024 · 4 comments
Closed

Comments

@felixkat
Copy link

felixkat commented Nov 10, 2024

EDIT:- The following diagnosis is when the form widget is launched via Article Layout Builder.

line 25 - $element - Produces expected results when launched via layout.

.
.
.

Form builder produces "undefined" message when trying to submit a form using the Article Layout Builder.

image

I've only had a brief look, I believe the bug lies within formbuilder/ajax.php

line 25 - $element looks to return false which prevents the if statement to process from line 26.

However, even if processed, line 31 $params, is not going to fetch the correct information.

image

Running latest commit, on Joomla 5.

I don't believe to be a recent issue as it's was mentioned in September

#798

@felixkat
Copy link
Author

felixkat commented Nov 12, 2024

Some progress.

The issue happens using the form widget in Article Layout Builder.

It works fine if using the form widget in a layout.

From what I can see the problem comes from the getElement helper not finding a match for $unqid if coming from Article Layout Builder environment.

@sonvnn
Copy link
Member

sonvnn commented Nov 13, 2024

Thank you I will check and response asap 👍

@sonvnn
Copy link
Member

sonvnn commented Nov 15, 2024

I fixed this issue at 0a0433a
Please help me download v3-branch and test it.
Thanks,

@felixkat
Copy link
Author

@sonvnn All working fine, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants