Skip to Content
Menu
This question has been flagged
1 Reply
1416 Views

The default odoo form works completely fine in desktop views but in mobile views the form does not submit when i click the submit button. Can anyone help me?

Avatar
Discard
Best Answer

There could be several reasons why the form does not submit when the submit button is clicked on mobile views. Here are a few things you can check:

  1. Check the JavaScript code: Make sure that the JavaScript code that handles the form submission is properly executed on mobile views. You can use browser developer tools to check the console for any error messages.

  2. Check the CSS: Make sure that the submit button is properly styled and positioned on mobile views. It's possible that the button is obscured or not visible on mobile views due to CSS issues.

  3. Check the form fields: Make sure that all the required form fields are properly filled out and that the form is in a valid state before submitting.

  4. Check the form action: Make sure that the form action (e.g., the URL that the form submits to) is correct and that the form is submitting to the correct endpoint.

  5. Check the form library that you're using: Some form library may not work properly on mobile views because of the different way it handle events, you can try to change it or wrap it with another library that is mobile friendly.

If you're still unable to resolve the issue, it might be helpful to share some of your code, so that we can take a closer look and provide more specific guidance.

Avatar
Discard
Author

it was indeed a buggy javascript code , completely unrelated to the form that was throwing an error in the entire script , i fixed the js code and solved the problem . Thanks

Related Posts Replies Views Activity
0
Jan 21
986
5
Jul 19
3511
1
May 16
2709
3
Apr 16
8739
2
Jun 15
7346