Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What happens when LWC targets config in both desktop and mobile?

Asked by Dipesh Bhardwaj Feb 28, 2023 1.5K views 1 answer
Share

About this question

 I have created a Lightning Component & i want to expose the same in both Desktop & mobile. I used the following in the meta.xml file,the component is either visible in desktop or mobile.. but i need to achieve both - any help regarding this is much appreciated.

  
    lightning__AppPage
    lightning__RecordPage
    lightning__HomePage


    
        
            
        
    

The problem I'm facing is I'm not able to add another targetConfig for "lightning__RecordPage" nor am i able to add supportedFormFactor type="Large" in the existing targetConfig for "lightning__RecordPage".

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.