Services Plugins FAQs

Air date/time picker - Initial month displayed

Hi everyone,

I am using the air date/time picker and I have a small issue that I would like to fix.
I use the plugin inside a reusable element which allows the user to create, edit or display a task.
When I want to create a task and select the air date/time picker, the initial month is current month and that’s perfect. Nevertheless, if I displayed a task with a deadline in August (for example) and then I want to create a new task, the air date/time picker display August first instead of the current month.

You can find here a screencast which illustrates this issue: Vimeo link

If anyone can help me to fix this issue, I’d love to hear from you.

BR,
Luno

1 Like

Hello @lunomis ,

Thank you for reaching out to us.

The Air date time picker will indeed choose the current month automatically when the “initial date” is not set. However, from your video, it looks like you are setting a value inside the element, which is likely causing the month to change.

Screenshot 2024-12-03 at 18.58.27

Could you please check this on your end, try removing it, and see how it works?

Thanks, and I look forward to your reply.

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hello @Stephan,

This is a reusable element that I use to create, edit or display a task. The data set in the initial date field corresponds to the task’s deadline when a task is edited or displayed.
Following your reply, I’ve tried adding a conditional state as follows:
image
But the issue remains the same. If a task has been previously displayed, then the displayed month in the air calendar is the month of the previous task deadline even if the parent’s group is now empty.
I found a way to solve this issue which is to set the current date to the initial date when parent’s group is empty and then clear it while the element is loading but it consumes WU so I would like to find a more “regular” way to solve this issue.

1 Like

Hello @lunomis ,

Thank you for your message.

I’m glad to hear you’ve found a solution for your inquiry. We have attempted to reproduce the workflow you’re creating using a reusable element, and each time the month in the calendar is displayed correctly. Please double-check how you’ve set all the conditionals for the initial dates, as the issue is most likely originating from there.

Thank you for your understanding. If you have any other questions, please let us know.

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hello @Stephan,

I’ve just created a draft application to share with you and let you see for yourself. Maybe the problem is the way I do my workflows, I don’t know.
So that you can see the problem, follow these steps:

  1. Click on “create a task” and then on the air date/time picker (the current month will be displayed).
  2. Click on a task in the repeating group (one with a deadline whose month does not correspond to the current month).
  3. Click on “create a task”, then on the air date/time picker (this time, the month displayed will be that of the previous task, even if the pop-up has been reset).

Bubble editor link
Bubble preview link

Please let me know if you have the same issue on your side and if I can provide you more information

Best regards,
Luno

1 Like

Hello @lunomis ,

Thanks for your message and for sharing the page with us.

After reviewing the page you provided, I saw that the behavior you’re reported occurs because you are using the same Air Date/Time Picker element for both displaying and creating new tasks. When a task from September is displayed, the picker remains set to that month.

To resolve this, you have two options:

Please let me know how this workaround will work for you, or if you have any other questions.

Thanks, and looking forward to your reply.

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

1 Like

Hello @Stephan,

Thank you for your reply.
I thought I could use the same element.

I will opt for the first option which doesn’t consume WU.

Thank you for your help!

Best regards,
Luno

Hello @lunomis ,

Thank you for your message.

Indeed, the date picker initially defaults to the current month, but if the month is changed, it will remain set to the selected month.

Feel free to use the solution that works best for you. In any case, those two actions should not consume much WU, as they simply interact with the element without querying the database.

Thanks again. If you have any other questions or inquiries, please let us know.

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3