How to control SCROLL OFFSET on form errors

Permalink Browser Info Environment
When there are errors on the form, it scrolls back to the top. However, my site (many of them) have a fixed header. This means the form scrolls but the first "error" is still hidden behind the website header.

How can I control the scroll offset in order to add 100px or so to allow the scroll to actually show the top of the header in these situations?

Thank you.

Type: Discussion
Status: In Progress
JeffStephens
View Replies:
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

You can set the scrolloffset in the javascript.
Currently have an update ready when the offset can be set in the block.
Hope I can upload the update next week.

Best,

Corretje
JeffStephens replied on at Permalink Reply
JeffStephens
Thank you, I am eagerly awaiting this update. Has it been released yet?

In the interim, would you have an example of how to update the script? Is this something that is done in the callback section of the block in edit mode, or do you mean to directly update the core javscript file that is part of the block?

We tend to prefer not to update the core block components as they are "reset" in the event we upgrade the block in the future.

Thank you for your time.
-Jeff
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi Jeff,

Sorry missed this post...

The update is there for a while now.
You can set the offset in the block-settings.

Best,

Corretje

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.4
Version Installed - 8.5.4
Database Version - 20200609145307

# Database Information
Version: 5.7.31-0ubuntu0.18.04.1-log
SQL Mode: NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Block Designer (3.3.0), Formidable (Full Version) (2.1.5), HW Recaptcha V3 (0.9.6), Informatics Blog (1.0.1), Informatics Social Media Tags (0.0.1)

# concrete5 Overrides
blocks/custom_blog_list/composer.php, blocks/custom_blog_list/add.php, blocks/custom_blog_list/icon.png, blocks/custom_blog_list/view.php, blocks/custom_blog_list/db.xml, blocks/custom_blog_list/config.json, blocks/custom_blog_list/edit.php, blocks/custom_blog_list/form.php, blocks/custom_blog_list/controller.php, blocks/custom_blog_list, blocks/full_feature_video/view.js, blocks/full_feature_video/composer.php, blocks/full_feature_video/add.php, blocks/full_feature_video/icon.png, blocks/full_feature_video/view.php, blocks/full_feature_video/db.xml, blocks/full_feature_video/config.json, blocks/full_feature_video/edit.php, blocks/full_feature_video/form.php, blocks/full_feature_video/controller.php, blocks/full_feature_video/view.css, blocks/full_feature_video, blocks/image_feature/composer.php, blocks/image_feature/add.php, blocks/image_feature/icon.png, blocks/image_feature/view.php, blocks/image_feature/db.xml, blocks/image_feature/config.json, blocks/image_feature/edit.php, blocks/image_feature/form.php, blocks/image_feature/controller.php, blocks/image_feature/_notes/dwsync.xml, blocks/image_feature/_notes, blocks/image_feature, blocks/program_slide/view.js, blocks/program_slide/composer.php, blocks/program_slide/add.php, blocks/program_slide/icon.png, blocks/program_slide/view.php, blocks/program_slide/db.xml, blocks/program_slide/config.json, blocks/program_slide/edit.php, blocks/program_slide/form.php, blocks/program_slide/controller.php, blocks/program_slide/view.css, blocks/program_slide, blocks/page_link_card/composer.php, blocks/page_link_card/add.php, blocks/page_link_card/icon.png, blocks/page_link_card/view.php, blocks/page_link_card/db.xml, blocks/page_link_card/config.json, blocks/page_link_card/edit.php, blocks/page_link_card/form.php, blocks/page_link_card/controller.php, blocks/page_link_card, blocks/full_feature/composer.php, blocks/full_feature/add.php, blocks/full_feature/icon.png, blocks/full_feature/view.php, blocks/full_feature/db.xml, blocks/full_feature/config.json, blocks/full_feature/edit.php, blocks/full_feature/form.php, blocks/full_feature/controller.php, blocks/full_feature, blocks/share_this_page/templates/custom.php, blocks/share_this_page/templates, blocks/share_this_page, blocks/content_cta/composer.php, blocks/content_cta/add.php, blocks/content_cta/icon.png, blocks/content_cta/view.php, blocks/content_cta/db.xml, blocks/content_cta/config.json, blocks/content_cta/edit.php, blocks/content_cta/form.php, blocks/content_cta/controller.php, blocks/content_cta, blocks/quote/composer.php, blocks/quote/add.php, blocks/quote/icon.png, blocks/quote/view.php, blocks/quote/db.xml, blocks/quote/config.json, blocks/quote/edit.php, blocks/quote/form.php, blocks/quote/controller.php, blocks/quote, blocks/page_list/templates/blog_list.php, blocks/page_list/templates/simple_ul.php, blocks/page_list/templates/event_list.php, blocks/page_list/templates/audience.php, blocks/page_list/templates/landing_page.php, blocks/page_list/templates/homepage_feed.php, blocks/page_list/templates, blocks/page_list, blocks/footer_cta/composer.php, blocks/footer_cta/add.php, blocks/footer_cta/icon.png, blocks/footer_cta/view.php, blocks/footer_cta/db.xml, blocks/footer_cta/config.json, blocks/footer_cta/edit.php, blocks/footer_cta/form.php, blocks/footer_cta/controller.php, blocks/footer_cta, blocks/autonav/templates/main_menu.php, blocks/autonav/templates/btn_for_dropdowns.php, blocks/autonav/templates/secondary.php, blocks/autonav/templates/main_menu_mobile_expand.php, blocks/autonav/templates/main_mobile_expand.php, blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates, blocks/autonav, blocks/feature/view.php, blocks/feature, themes/womenleadchange2021/page_theme.php, themes/womenleadchange2021/event.php, themes/womenleadchange2021/audience.php, themes/womenleadchange2021/js/scripts.js, themes/womenleadchange2021/js/swiper.js, themes/womenleadchange2021/js/bootstrap.min.js, themes/womenleadchange2021/js, themes/womenleadchange2021/blog_news_entry.php, themes/womenleadchange2021/default.php, themes/womenleadchange2021/secondary.php, themes/womenleadchange2021/secondary_nav.php, themes/womenleadchange2021/css/animations.css, themes/womenleadchange2021/css/bootstrap.min.css, themes/womenleadchange2021/css/swiper.min.css, themes/womenleadchange2021/css/custom.css, themes/womenleadchange2021/css, themes/womenleadchange2021/view.php, themes/womenleadchange2021/fonts/glyphicons-halflings-regular.svg, themes/womenleadchange2021/fonts/fontawesome-webfont.eot, themes/womenleadchange2021/fonts/fontawesome-webfont.woff2, themes/womenleadchange2021/fonts/fontawesome-webfont.svg, themes/womenleadchange2021/fonts/glyphicons-halflings-regular.woff2, themes/womenleadchange2021/fonts/fontawesome-webfont.ttf, themes/womenleadchange2021/fonts/fontawesome-webfont.woff, themes/womenleadchange2021/fonts/glyphicons-halflings-regular.eot, themes/womenleadchange2021/fonts/glyphicons-halflings-regular.woff, themes/womenleadchange2021/fonts/glyphicons-halflings-regular.ttf, themes/womenleadchange2021/fonts/FontAwesome.otf, themes/womenleadchange2021/fonts, themes/womenleadchange2021/description.txt, themes/womenleadchange2021/home.php, themes/womenleadchange2021/inc/footer.php, themes/womenleadchange2021/inc/header.php, themes/womenleadchange2021/inc, themes/womenleadchange2021/thumbnail.png, themes/womenleadchange2021/img/dots.png, themes/womenleadchange2021/img/large-w.png, themes/womenleadchange2021/img/dots-2.png, themes/womenleadchange2021/img/hero-7.jpg, themes/womenleadchange2021/img/page-list-filler.jpg, themes/womenleadchange2021/img/logo.png, themes/womenleadchange2021/img, themes/womenleadchange2021/full.php, themes/womenleadchange2021/landing.php, themes/womenleadchange2021/page_not_found.php, themes/womenleadchange2021

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.38 (Debian)

# Server API
apache2handler

# PHP Version
7.3.25

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mongodb, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
upload_max_filesize - 2M
ldap.max_links - Unlimited
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.