Forum Documentation Showcase Pricing Learn more

Dates with URL Parameters

Hello!

I’m trying to pass a date into a input field on my page. It’s not using a path, as it is new data.

Does anyone know how I can do this?

Cheers,

Hi @cairngormstudios,

It sounds like you want to extract a date from your URL and have it pre-fill an input, is that correct?

Assuming the date value is formatted properly in the URL, you can do this by adding a dynamic expression to the input’s initial content

You want to use Get data from page url and enter in your parameter name so Bubble knows which parameter’s value to extract. For example, if your URL is myapp.com/page-name?registration-date=Aug%2019%2C%202019%2012%3A27%20pm, then the parameter name here is “registration-date”

If the input in question is a date picker or an input with type of content set to “date,” then make sure you set the type of this parameter to “date” as well so that the input can read the value as a date.

That should help you move forward!

Cheers,
Gaby

Coaching No Code Apps
Join our Facebook group for insider access to no-code development
Get professional development services
Enroll in expert-led courses and products