- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using Magento 2.3.2
I have a form and CRUD functionality is done by Magento WebApi.
Form is in under templates folder named Create.phtml
Question: How to validate that form in server side? Is there any documentation or example?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When the form post you can check the values and validate it.
Suppose your form is submitted to abc function.Just go to that abc function and get all the post values and validate it as per your requirement.
You can also refer https://magento.stackexchange.com/questions/242505/server-side-validation-in-magento-forms
Thanks
---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When the form post you can check the values and validate it.
Suppose your form is submitted to abc function.Just go to that abc function and get all the post values and validate it as per your requirement.
You can also refer https://magento.stackexchange.com/questions/242505/server-side-validation-in-magento-forms
Thanks
---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".