New Request page
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.
Name | Type | Description |
---|---|---|
parent | object | A request object that represents a related closed request. It may or may not exist |
new_request_form | object | A new request form object containing information about the new request form. Available only from Templating API v4 and above |
answer_bot | object | An answer_bot object that holds information about Answer Bot. Available only from Templating API v4 and above |
promoted_articles | array | An array of promoted article objects |
ticket_forms | array | An array of ticket form objects |
help_center | object | A help_center object that holds information and settings about the current help center |
settings | object | A settings object with custom settings for the current theme |
signed_in | boolean | Whether the user is logged in or not |
featured_posts | array | An array of featured post objects |
brand | object | A brand object representing the current brand |
user | object | A 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.
Name | Description |
---|---|
breadcrumbs | Breadcrumbs for the Request List page. See breadcrumbs helper |
follow_up | Link to the parent request, if it exists. See follow_up helper. Not available from Templating API v4 and above |
request_form | The 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.