Funnelish™ Community

Creating a Dynamic Date

Since programmable does not yet work for F+ funnels, I was wondering is there a way to insert a dynamic date into my funnel?

I’m trying to do this:

“Order today and get it by (PRESENT DATE + 5 DAYS)”

Can someone advise my on how to accomplish this on F+ ?

Thanks

2 Likes

Hi @vegatrading,

Please follow this simple guide for that:

1. Add this Custom JS code inside Custom Code > Custom JS(Body):

<script>
const plus_days = 5;    
let event = new Date();
let plus = new Date(); 
plus.setDate(event.getDate()+plus_days);
    const options = { weekday: 'long', month: 'long', day: 'numeric' };
    let today = document.getElementById("today");
    today.innerHTML = plus.toLocaleDateString('en-US', options) + 'th!'
</script>

2. Add a custom HTML element to your page and paste the code below:

After adding the custom HTML element click Edit custom HTML.
image

Then paste the following code:

<div>
Order today and get it by 
<span id="today"></span>
</div>

And that’s it.

Let us know how that goes. for you,

Kind regards,
Funnelish™ Team

2 Likes

Thanks, this worked wonders

1 Like