<p>You'll want to make sure you include all of the Calendar field inputs in order for this to work. If you're trying to hide them for your workflow, you can set the fields to hidden, or wrap them in a <code>div</code> and hide them with CSS. :)</p>

CC BY-SA 4.0
2019-05-06T19:12:19.390Z
Does a user have to be logged in to actually to see the page containing the event edit form? A problem I didn't realise until recently is that logged out, I get a 'Page not Found error'. But the page is fine when I'm logged in
Adam
CC BY-SA 4.0
2019-03-13T20:59:03.120Z
2019-03-13T20:59:03.120Z
Solspace
<p>I'm using Solspace Calendar for Craft and I'm currently trying to implement the edit event form. Once a user selects an event on the calendar they are taken to the event page. On this page I have the edit event form. </p>

<p>The fields in this form will be added to the event entry once submitted. The issue I'm having is getting the form to submit.</p>

<pre><code>&lt;form method="post"&gt;
                    {{ csrfInput() }}
                    &lt;input type="hidden" name="action" value="calendar/events/save-event" /&gt;
                    &lt;input type="hidden" name="redirect" value="{{ (siteUrl~"availability/event/{id}")|hash }}" /&gt;
                    &lt;input type="hidden" name="eventId" value="{{ event.id }}" /&gt;
                    &lt;input type="hidden" name="slug" value="{{ event.slug }}" /&gt;
</code></pre>

<p>Looking at the demo documentation, the two fields I'm not too sure about is the 'action' and 'redirect' fields. I have changed the redirect field to match the current event page. But I don't know what needs to go into the 'action' field. </p>

<p>Currently as you can see, it's 'calendar/events/save-event'. Is this a demo template I have missed. Does this need to be changed to something more specific. Any help much appreciated.</p>

<craft3><events><solspace><plugin-solspacecalendar><editing>
Solspace Calendar Event Editing
# Solspace Calendar Event Editing

(Asked by: username_0 on 2019-03-13)

I'm using username_1 Calendar for Craft and I'm currently trying to implement the edit event form. Once a user selects an event on the calendar they are taken to the event page. On this page I have the edit event form. 
The fields in this form will be added to the event entry once submitted. The issue I'm having is getting the form to submit.

                    {{ csrfInput() }}
                    
                    
                    
                    

Looking at the demo documentation, the two fields I'm not too sure about is the 'action' and 'redirect' fields. I have changed the redirect field to match the current event page. But I don't know what needs to go into the 'action' field. 
Currently as you can see, it's 'calendar/events/save-event'. Is this a demo template I have missed. Does this need to be changed to something more specific. Any help much appreciated.

**Tags:** craft3, events, solspace, plugin-solspacecalendar, editing


---

## 1 answers

### Answer by username_1 on 2019-03-13. Score: 2 | Accepted answer

You'll want to make sure you include all of the Calendar field inputs in order for this to work. If you're trying to hide them for your workflow, you can set the fields to hidden, or wrap them in a `div` and hide them with CSS. :)

> **Comments:**
> **username_0**: Does a user have to be logged in to actually to see the page containing the event edit form? A problem I didn't realise until recently is that logged out, I get a 'Page not Found error'. But the page is fine when I'm logged in  

---

