This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATED: 18.08.2025 | |
| Copy the following PHP and create a PHP snippet using your snippet plugins. | |
| Paste the code into the plugin and save it. | |
| _____________________________________________ | |
| /** | |
| * JetFormBuilder: Phone field with flag + dial code, auto-detect country (no API key). | |
| * Detection order: saved value → time zone → browser language/region → fallback US. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add the code to your snippet plugins, create a new js, javascript snippet, paste the code there and save it. | |
| This script significantly improves the interaction with JetFormBuilder forms by automatically scrolling the | |
| browser window to show success or error messages following a form submission. It is compatible with both AJAX and | |
| traditional page reload submission methods. Regardless of the submission type, the script ensures the feedback | |
| messages are immediately brought into view, smoothly guiding users to see their form submission outcome. | |
| ________________________________________________________________________________________ | |
| jQuery(document).ready(function($) { | |
| function scrollToMessage() { |