New Request page

The New Request page template is rendered when a user navigates to https://{yoursubdomain}.zendesk.com/hc/{locale}/requests/new.

Available properties

You can use the following properties in the New Request page template.

NameTypeDescription
parentobjectA request object that represents a related closed request. It may or may not exist
new_request_formobjectA new request form object containing information about the new request form. Available only from Templating API v4 and above
answer_botobjectAn answer_bot object that holds information about Answer Bot. Available only from Templating API v4 and above
promoted_articlesarrayAn array of promoted article objects
ticket_formsarrayAn array of ticket form objects
help_centerobjectA help_center object that holds information and settings about the current help center
settingsobjectA settings object with custom settings for the current theme
signed_inbooleanWhether the user is logged in or not
featured_postsarrayAn array of featured post objects
brandobjectA brand object representing the current brand
userobjectA user object representing the current user

Available helpers

You can use the following helpers in this page template. You can also use any built-in helpers, global helpers, or global advanced helpers.

NameDescription
breadcrumbsBreadcrumbs for the Request List page. See breadcrumbs helper
follow_upLink to the parent request, if it exists. See follow_up helper. Not available from Templating API v4 and above
request_formThe request form. See request_form helper. Not available from Templating API v4 and above

Example

Templating API v3

<nav class="sub-nav">  {{breadcrumbs}}  {{search}}</nav>
<h1 class="page-header">  {{t 'submit_a_request'}}  {{#if parent}}    <span class="follow-up-hint">      {{follow_up}}    </span>  {{/if}}</h1>
<div class="form">  {{request_form}}</div>

Templating API v4

In Templating API v4, the new_request_form object is available. You can use it to render a custom form. Refer to the implementation in the standard Copenhagen theme for guidance.

When the New Request page is accessed, the answer_bot object has an empty articles array and null values for the other properties. If Answer Bot is enabled and suggested articles are found, the page is reloaded with the answer_bot object populated. The information provided can be used to render the UI showing the suggested articles and interact with the Article Feedback APIs.