# 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="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2Fgit-blob-72f7b62c124c6a95d46d0549239652e2708275de%2Fimage%20(624).png?alt=media" 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="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2Fgit-blob-7359cdb9e24536bccd74c9dd2af19e8fc4651f21%2Fimage%20(622).png?alt=media" 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="https://3800415611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuSjRiJMvVhtdzNDzWBi%2Fuploads%2Fgit-blob-d116a317d8da9f8b36a996006e20f6472711f8ba%2Fimage%20(619).png?alt=media" 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>
