odoo-formio icon indicating copy to clipboard operation
odoo-formio copied to clipboard

formio: Set default value for public/portal scroll_into_view

Open bobslee opened this issue 1 year ago • 5 comments

For public/website forms: Set value to #content_top

For portal, check which selector is correct.

bobslee avatar Mar 06 '24 17:03 bobslee

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.

NiklasGeier avatar Aug 23 '24 08:08 NiklasGeier

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

bobslee avatar Aug 23 '24 08:08 bobslee

@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 avatar Aug 23 '24 08:08 NiklasGeier

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

NiklasGeier avatar Aug 23 '24 08:08 NiklasGeier

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

bobslee avatar Aug 23 '24 09:08 bobslee