Date picker: Can't get value

I deleted my previous post since i thought I got it correct, but that was wrong…

I have a datepicker and want to push updates to the database. Initially I tried triggering it with a “On Change” workflow on the Date picker element, but I cannot access the set date.

Then I found out I can get the date on “On Click” on the Trigger>Date Container element. The problem is that “On Click” only updates when you click the actual date. (This is BEFORE you chose the date)

return context.item.data['value'] is what I want, but I can’t access it from anywhere other than the date container. (Which only has mouse triggers)

Help :frowning:

Hi, I’m not sure why you were not able to access the selected date on the onChange event, you should!

If you need the formatted one, you can install the date plugin and use the formatDate formula :slight_smile:

1 Like

Which object is this? This is what I get.

Nevermind. I didn’t understand properly. It’s in the workflow tab… Thanks :upside_down_face:

1 Like