# Add Button Warning (If the button is not added to the page)

## Cause

A warning occurs when Salesforce Mobile and Lightning Experience Actions are not enabled.

<figure><img src="/files/8JpO8HB4gPImQ6NcrIB6" alt=""><figcaption><p>Error Message</p></figcaption></figure>

##

## Resolve

{% hint style="info" %}
If you add a button to your PageLayout after Salesforce Mobile and Lightning Experience Actions are enabled, the error will no longer occur.
{% endhint %}

Enable Salesforce Mobile and Lightning Experience Actions for the page layout where you want to add a button to resolve the warning.

<figure><img src="/files/iVPTKfIOJXApkU2pBZU0" alt=""><figcaption><p>Setup > ObjectManger > Selected objects > Page Layouts<br>> Hover over Salesforce Mobile and Lightning Experience Actions > Click the spanner icon</p></figcaption></figure>

Add the added button directly to the PageLayout.

<figure><img src="/files/DxHGZZaBqSEGJg0Eg8da" alt=""><figcaption><p>Mobile &#x26; Lightning Actions > Drag the added button > Drop the created button in the Salesforce Mobile and Lightning Experience Actions panel</p></figcaption></figure>


---

# 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.smallbuilder.com/smallbuilder-troubleshooting/undefined-1/button.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.
