Open ioweb-gr opened 9 months ago
Hi @ioweb-gr. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @ioweb-gr,
Thanks for the report and collaboration!
We have tried to reproduce the issue in 2.4-develop branch and the issue is reproducible for us. Hence confirming the issue.
Thanks
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-11019 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
@magento give me 2.4-develop instance
Hi @ioweb-gr. Thank you for your request. I'm working on Magento instance for you.
Hi @ioweb-gr, here is your Magento Instance: https://5246d4f5953b869513ffc67af480e773.instances-prod.magento-community.engineering Admin access: https://5246d4f5953b869513ffc67af480e773.instances-prod.magento-community.engineering/admin_431d Login: 6136ef16 Password: 79bfb484e146
Summary
As it's recommended to use the ui components as much as possible, I wanted to implement a form in the frontend but I'm experiencing a lot of issues.
When trying to use the form component in the frontend I see the following issues.
<buttons>
argument cannot be used directly as it's focused on the admin toolbar. Therefore if you use it, the button won't render. Therefore you have to add the button directly in the fields like thisTo trigger the
save
action via the targetName and actionName.Normally it would be rendered due to
Magento_Backend::pageactions.phtml
but this block is not available in frontendThe required attributes are not honored, the form can be submitted without any form of validation
The form key is not added properly causing an error
Basically it seems the form component is only usable in admin area and not frontend but it's listed under frontend core ui components on the docs.
https://developer.adobe.com/commerce/frontend-core/ui-components/components/form/
I'm not sure if anyone noticed this but either it should be marked as admin ui component and moved away from that section on the docs or it should be fixed to work properly on the frontend.
The example from the docs won't work either in the frontend.
Therefore the only option left to the developer is left with is to render the form fields directly in the frontend on a phtml file and leverage the mage validation tools directly in the phtml file as it's not possible to use the UI component itself that should be usable according to the docs.
Examples
Here's a sample module with a custom form at URL
<example.com>/myform/render/index
myform.zip
Proposed solution
Release note
No response
Triage and priority