Thanks @PeteSharp, that is exactly what I want and prefer the non-cookie session approach.
The code is placed on every page. So it’s triggered even if the person goes to a URL.
That is an excellent idea!
Could you kindly give me the code with 2 buttons. Would be nice if I can spice up the pop-up box in a simple and elegant manner but would not mind a simple prompt.
Regarding my previous question on problems creating a timed Modal with cookie on Bootstrap 5 Blocs projects, I think I may have found a solution. I looked at the Bootstrap 5 Modal documentation for activating and manually opening a modal. I then took the examples that were given and updated Pealco’s code right after the setTimeout line of code. This change seems to work for me for creating the timed modal with cookie on my one Bootstrap 5 Blocs project.
If you’d like to try on your project, I’ve attached a zip file of Pealco’s code as both Bootstrap 4 and 5 versions so you can see the differences. Also, I’m hoping Pealco could review this update to see what he thinks.
Hope this helps others. Please let me know if any corrections need to be made.
Just came across your post looking for a modal which display at page load. Thank you so much. And although for the great ressources you provide the Community.
I used your script to open the modal for opt_in on opening the page. But, how can it be kept open until someone click a button. Modal should not close by esc or clicking outside the modal. Only by clicking the submit buttion, which will send the data by email, and show the landingpage. Or they click the no button, which will move the visitor to the home page.
Hope you are available on this…
Just thought I’d mention that Cadence is a solution that uses local storage instead of cookies and has a ton of options that might interest anyone looking for a robust modal automation solution.
@jerry thank you very much. i purchased nearly all addons from whittfield (except cadence) and i love them. But he is missing since april and i think, theres a good chance the brics won`t be updated.
and actually i really want to see what i am doing wrong, so i can learn …
The script uses jQuery which is replaced with pure javascript in Bootstrap 5. In short, you will need to modify this. It should be working when you choose Bootstrap 4 as framework.
@jerry thank you, but it doesn*t work, i put it as script in the header and changed the modal ID …
and btw. it´s no contradiction. Many people have very different ways of learning and i think that everybody has the right and should have the opportunity to find her or his way. i by the way am neurodivergent, have ADHD and have a very different way of learning to most people i know.
Your question has been thoroughly addressed by me, and it’s a pleasure to assist individuals like you. Along with a few others, I am here to provide help at no cost. However, my assistance only extends to providing solutions, as I have done.