novacode-nl / odoo-formio

Odoo Forms app & modules
https://apps.odoo.com/apps/modules/17.0/formio/
Other
66 stars 91 forks source link

formio: Set default value for public/portal scroll_into_view #275

Open bobslee opened 8 months ago

bobslee commented 8 months ago

For public/website forms: Set value to #content_top

For portal, check which selector is correct.

NiklasGeier commented 2 months ago

We also had this error on version 17, as soon as you logged out and wanted to use a wizard you got an odoo client error.

bobslee commented 2 months ago

@NiklasGeier my proposed suggestion wasn't due to an error. Can you describe or show (video) exactly what you mean?

NiklasGeier commented 2 months ago

@bobslee We have published the multi-step wizard on the website as soon as you are logged out and use the navigation bar:

UncaughtClientError > TypeError Uncaught Javascript Error > can't access property "scrollIntoView", document.querySelector(...) is null TypeError: can't access property "scrollIntoView", document.querySelector(...) is null @http://localhost:8069/web/assets/1/30c221e/web.assets_frontend_lazy.min.js:7524:94

NiklasGeier commented 2 months ago

Thats the fix for my error maybe you can take a look https://github.com/novacode-nl/odoo-formio/pull/286

bobslee commented 2 months ago

@NiklasGeier Thanks! I just replied from the PR. This will motivate to work on this issue (initial suggestion) as well.