Stamp picker time info

Hi there! I have text box capturing the data from a picker date/time, I need this text box show the same data from the picker but now is showing the current data time.

I have set up the picker for time each 15 min.

You can see in the image that the slot for picker correspond to 9:45 and you can see in the text box below, the data captured is the current time 9:37, but I need the last one will be the same of the slot in the picker (9:45) not 9:37.

Any idea?

@mmendezgracia why don’t you set a state capturing your date/time picker and have the element currently displaying the current date/time reference the state instead?

Thank you so much for your answer @yousif . I think I did it, but the status is storing the current date, I need the status store the time with interval, like 10:45, not 10.42 (see inspector, status =“time-picker”)

@mmendezgracia

So 2 things.

  1. Make sure you set up a workflow off the date/time picker when value is changed to set your state to the value of the date/time picker

  2. set the label where you want the state to be displayed to the state

image

Thank you, here is a bit tricky, I need the user no need to select the time, I need the system be able to select auto the interval time. it is possible?

PD. Sorry I was delay due the issues with bubble yesterday

can you expand on the details on how you want bubble to auto-select the interval time?

Sure!

my picker interval time is i.e. 10.45 (following the picture info)… but my current time is 10.42. when I print in the text element the value picker time, the value is the current time, but I need this value will be the interval time, I mean 10.45. that is possible ONLY if I select the interval time what I want.

but the big condition in my case, is that I dont want need the user select the interval time, I need that will be automated.

what I need is when curren time, that time belong to 10.45 interval time, so I need to print in the text the tex the interval time value autimated.

I know is necessary refresh the page maybe, but I can put a “every 10 mins refresh the page” action, without user intervetion.

I recorded a screen video for explain, as you can see when the picker is selected in the interval time I can execute a condition because the condition works with the same time interval (I have a list of reservation that customer can book in times with 15 min difference). But if the picker time interval is not selected, nothinkg happens. But if it not picked, the time that print is the current time! crazy…

ScreenRecording2024-05-09at10.41.05AM-ezgif.com-video-to-gif-converter

If I understand correctly, you need to have the time stamp not populated if no timeslot is selected. If so, ensure that the state is only set when you select a timeslot and have the text element data source set to that state.

This topic was automatically closed after 70 days. New replies are no longer allowed.