# How to use event picker for editing?

**URL:** <https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125>\
**Category:** Ask for Help\
**Created:** [December 21, 2020, 2:21am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125 "2020-12-21T02:21:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarah\_Esteves](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sarah_esteves/32/16621_2.png) [@Sarah\_Esteves](https://community.glideapps.com/u/Sarah_Esteves)\
**Post date:** [December 21, 2020, 2:21am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/1 "2020-12-21T02:21:22Z")

</div>

Hi. I have a travel app where people can have their travel plans with many attractions and the date/time when each attraction will be visited. Each attraction has a detail view where user can check its scheduled date/time and has to be able to edit this date/time to customize the plan. So, for this, I put an event picker component on the attraction edit view, but when I clic on it, it’s set to add a new item (attraction, in my case) and not to edit the previously defined date/time for that attraction. How can I set it to edit the date/time that already exists for an item that already exists?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 21, 2020, 2:39am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/2 "2020-12-21T02:39:30Z")

</div>

Sounds like you have an ‘Add Row’ action associated where you probably need ‘Set Columns’ instead.

---

<div class="post-metadata">

**Author:** ![Sarah\_Esteves](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sarah_esteves/32/16621_2.png) [@Sarah\_Esteves](https://community.glideapps.com/u/Sarah_Esteves)\
**Post date:** [December 21, 2020, 2:43am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/3 "2020-12-21T02:43:06Z")

</div>

Hi, Darren! Thank you for your reply!

Where can I swit those actions? I can’t find an action field on the component configuration…

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 21, 2020, 2:54am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/4 "2020-12-21T02:54:57Z")

</div>

oooh, I’ve never actually used the Event Picker component before, so I just assumed it would be an actionable component. I just looked and I see that it isn’t.

From a quick scan of the [docs](https://docs.glideapps.com/all/reference/components/pickers/event-picker), it looks like that to modify an existing event, and then you’d to use it within an edit screen, and then you’d have a “Submit” button (or similar) with an action attached that does the Set Columns.

Does that help? (might be a case of the blind leading the blind here, haha 😂)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 21, 2020, 3:02am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/5 "2020-12-21T03:02:56Z")

</div>

> [@Darren\_Murphy](#):
>
> oooh, I’ve never actually used the Event Picker component before, so I just assumed it would be an actionable component. I just looked and I see that it isn’t.

Actually, just thinking about that - it makes perfect sense because it’s an _input_ component. And input components don’t have actions.

---

<div class="post-metadata">

**Author:** ![Sarah\_Esteves](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sarah_esteves/32/16621_2.png) [@Sarah\_Esteves](https://community.glideapps.com/u/Sarah_Esteves)\
**Post date:** [December 21, 2020, 3:16am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/6 "2020-12-21T03:16:57Z")

</div>

Still lost here =/

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 21, 2020, 3:21am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/7 "2020-12-21T03:21:10Z")

</div>

Gimme a little time to have a fiddle with it, I’m sure I can figure it out. (Or somebody else might jump in in the meantime) 🙂

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 21, 2020, 3:37am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/8 "2020-12-21T03:37:09Z")

</div>

> [@Sarah\_Esteves](#):
>
> So, for this, I put an event picker component on the attraction edit view, but when I clic on it, it’s set to add a new item (attraction, in my case) and not to edit the previously defined date/time for that attraction. How can I set it to edit the date/time that already exists for an item that already exists?

So I just tried that, and it seems to be pretty straightforward. After adding the Event Picker to your edit screen, you just need to make sure the Data Event Start & Data Event End fields are pointing at the correct columns. If that’s not working for you, then maybe a screen shot of your Event Picker configuration might help me to see where the problem is.

---

<div class="post-metadata">

**Author:** ![Sarah\_Esteves](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sarah_esteves/32/16621_2.png) [@Sarah\_Esteves](https://community.glideapps.com/u/Sarah_Esteves)\
**Post date:** [December 21, 2020, 3:52am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/9 "2020-12-21T03:52:30Z")

</div>

It isn’t’ working like that for me =/

You can see below that the event picker is a component of my edit view (on the top of the screen, you find “Editar item”, that is “Edit item” in portuguese). On that views, the component shows the correct date/time that I want to edit. So far so good.

![event picker 1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/e/0e15f655837ddcddb3cf97f00a7aa32ceab452c0.png)

But when I clic on it, I see that:

 ![event picker](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/f/af565834692d6bab59d4dec6315e487b6b9e29de.png)

The attraction in this case is the “Forte de Copacabana” and you can see that the component starts a new item besides this attraction, instead of have it selected for edition.  
On the configuration panel, you can see I have set the start date/time column (Data | Hora) and the end date/time column (Hora término).

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 21, 2020, 4:26am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/10 "2020-12-21T04:26:14Z")

</div>

Okay, I can replicate what you see, but I think it is correct behaviour. I think it is just showing the existing block of time for reference. Once you select a new time block and save, it updates correctly.

Have you tried that?

---

<div class="post-metadata">

**Author:** ![Sarah\_Esteves](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sarah_esteves/32/16621_2.png) [@Sarah\_Esteves](https://community.glideapps.com/u/Sarah_Esteves)\
**Post date:** [December 21, 2020, 6:58pm UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/11 "2020-12-21T18:58:13Z")

</div>

Hi, Darren. Yes, it worked! Thank you for your help!  
But I thinks it’s not very intuitive. It would be better if the actual block was highlighted for edition. It doesn’t need a reference, once the current size is already the reference for the current duration.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 22, 2020, 7:00am UTC](https://community.glideapps.com/t/how-to-use-event-picker-for-editing/20125/12 "2020-12-22T07:00:34Z")

</div>

Possibly you can filter that component by event ID is current screen’s event ID.
