# Templates Missing After Button Click

## Problem

The user is setting up S-Docs for the first time and they identified the templates they created are missing.

## Solution

{% hint style="info" %}
The templates are often missing after the button click due to the button code being incorrect or the template having incorrect values.

* If the button is created for a custom object, ensure the template and button code use the same object API name. If the button was created with the application, no changes are needed.
* Ensure the template is checked for "Available For Use" and that the "Related To" field has the correct object selected.
  {% endhint %}

![blue star](/files/801a39b4a92e668035aaa673da617ff42aca596d)

Related articles


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sdocs.com/sdocs/administration/landing-page-for-admin/additional-troubleshooting/templates-missing-after-button-click.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
