Skip to content
  1. Extras
  2. Tickets
  3. Snippets
  4. TicketForm

TicketForm

Outputs the form for creating ticket by the user from frontend.

TIP

Snippet is caused uncashed

Snippet's call parameters

NameBy defaultDescription
&allowedFieldsparent,pagetitle,content,publishedTicket field which can be filled by a user. You can specify the names of TV parameters.
&contextList of contexts for searching for sections, with a comma.
&parentsAll the available ticket sections are displayed by default, but you can limit them, specifying concrete parents with a comma.
&permissionssection_add_childrenRights check for publication. Permission "section_add_children" is checked by default.
&redirectUnpublished0You can specify to what document a user is supposed to be sent while creating an unpublished ticket.
&requiredFieldsparent,pagetitle,contentObligatory ticket fields which a user should fill in order to send a form.
&sortbypagetitleField for sotring a section list.
&sortdirASCSorting direction of the section list.
&tplFormCreatetpl.Tickets.form.createChunk for creating a new ticket.
&tplFormUpdatetpl.Tickets.form.updateChunk for updating current ticket.
&tplPreviewtpl.Tickets.form.previewChunk for ticket preview before publication.
&tplSectionRow@INLINE <option value="[[+id]]" [[+selected]]>[[+pagetitle]]</option>Chunk for design of question section in the form.
&tplTicketEmailBcctpl.Tickets.ticket.email.bccChunk for notifications of the web-site's admins about new ticket.

Call method

modx
[[!TicketForm]]