function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shivendra Singh PawarShivendra Singh Pawar 

In Lightning app builder custom option is not available to add it on Lightning page?

Hi 
Greetings of the day...

I am designing a Lightning component using Developer console and on adding it to Lightning App Builder, I am not finding any custom tab to add my component to the Lightning page.


User-added image


Plz. help us to add a lightning component in the custom section.
Best Answer chosen by Shivendra Singh Pawar
Naveen KNNaveen KN
Yah, that was a good point Khan Anas. without enabling my domain they cannot add lightning components to the page layout.

@Shivendra, you can find detailed steps to enable my domain from this article https://www.codengine.in/2019/04/how-to-enable-my-domain-in-salesforce-lightning.html 

--
Naveen K N

All Answers

Naveen KNNaveen KN
I see that you are in custom flexi page. you have opened your newly added page in the lightning app builder. As it is new custom page you dont see any existing tabs or component in that. you have to add either standard or custom components.

coming to the component addition, if you have created new lightning component in the developer console make sure you include flexipage:availableforallpages interface in the component level. save the component and refresh the page shown in the screenshot here. you must see the new custom component in the left side bar in the custom components section. 

try this and let me know the outcome. 

--
Naveen K N
 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Shivendra,

Greetings to you!

+1 Naveen

You must deploy My Domain in your org if you want to use Lightning components in Lightning tabs, Lightning pages, as standalone apps, as actions and action overrides, as custom Lightning page templates, or elsewhere in your org.
When My Domain isn’t deployed in your org, user interface controls related to Lightning components may be hidden or inactive. Lightning components added to pages, tabs, and so on, don’t run and may be omitted, or display a placeholder error message.

To roll out the new domain name to your org, from Setup, enter My Domain in the Quick Find box, select My Domain, and then select Deploy to Users.
The domain is activated immediately, and your users are redirected to pages with the new domain.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Shivendra Singh PawarShivendra Singh Pawar
Hi Naveen.

Thank you for your reply, I already added a flexipage  piece of code, but it is not appearing in the custom section

Kindly have a look at an attachment for the code.


Code for Lightning Component.

Thanks in advance.
Shivendra Singh Pawar
Naveen KNNaveen KN
Yah, that was a good point Khan Anas. without enabling my domain they cannot add lightning components to the page layout.

@Shivendra, you can find detailed steps to enable my domain from this article https://www.codengine.in/2019/04/how-to-enable-my-domain-in-salesforce-lightning.html 

--
Naveen K N
This was selected as the best answer
Shivendra Singh PawarShivendra Singh Pawar
Thanks for the help.

Team CodEngine.in and Khan Anas.  
Naveen KNNaveen KN
Just updating the latest URL for the article on how to enable my domain in the salesforce 

https://www.codekiat.com/2019/04/how-to-enable-my-domain-in-salesforce-lightning.html