Creates a new event.
Requires a form token
Requires a session token - the user must be logged in
Supports redirectUrl param of fm:Form component
All optional params can be set to required.
<fm:Form action="/action/v2/createevent" method="post" enctype="multipart/form-data" >
<fm:Form_TextInput name="name" />
<fm:Form_TextArea name="description"></fm:Form_TextArea>
<fm:Form_Date name="startDate" />
<fm:Form_Date name="endDate" />
<fm:Form_TextInput name="url" />
<fm:Form_TextInput name="note" />
<fm:Form_TextInput name="address" />
<fm:Form_TextInput name="city" />
<fm:Form_State name="state" />
<fm:Form_TextInput name="country" />
<fm:PostalCode name="postalcode"/>
<fm:Form_TextInput name="other[refereeCount]" />
<fm:Form_TextInput name="other[referee][name]" />
<fm:Form_TextInput name="other[referee][position]" />
<fm:Form_FileInput name="logo" />
<input type="hidden" name="logoChannel" value="12" />
<button type="submit">Create event</button>
</fm:Form>
Name | Required | Description |
---|---|---|
name | Required | Name of the new event. String up to to 255 chars |
description | Description of the new event. Text, limited to 65000 chars | |
startdate | Start date of the event. Use fm:Form_Date to get the correct input options displayed | |
enddate | End date of the event. Use fm:Form_Date to get the correct input options displayed | |
logo | Avatar for the newly created event. Must be an image file. Refer to the list of supported image file types | |
logoChannel | Channel ID to add the logo to if a logo is present. | |
url | Website for the newly created event. Must be a valid url, up to 80 chars. | |
host | Host of the event. String up to 80 chars | |
note | Additional note. Text, limited to 65000 chars | |
address | Address of the new event. String up to 80 chars | |
city | City of the new event. String up to 80 chars | |
state | State/Province of the new event. State/Province code - 2 chars | |
country | Country of the new event. Country code - 2 chars | |
postalcode | Postal code/zip code of the new event. String up to 10 chars | |
geo_latitude | Latitude related to the group. | |
geo_longitude | Longitude related to the group. | |
parentGroup | ID of the group that is the new group's parent. | |
other | Extra data that doesn't fit within the more specific fields. This should be structured as in the example. |