Activity Forums Salesforce® Discussions Lightning properties are not working in visualforce page by removing the “force;slds”?

  • Lightning properties are not working in visualforce page by removing the “force;slds”?

    Posted by Deepak on August 13, 2019 at 3:37 pm

    I am trying to open a record create page on click of a button on the Account detail page in lightning. I have created a lightning component and a controller as follows.

    The dependent picklist isn't getting populated. Here Child_Field__c is the dependent picklist for theParent_field__c.The values will be available from an apex class.

    Piyush replied 5 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Piyush

    Member
    August 14, 2019 at 2:35 am

    Hi Deepak,

    You need to include the Lightning CSS, which is not provided by apex:includeLightning (this provides only the JavaScript file). Instead, you need to also use apex:slds, which will bring in the SLDS CSS. By having these two elements separated, it allows you to use Lightning components without being forced into SLDS, and you can use SLDS without needing to write a component (e.g. if you wanted SLDS-looking Visualforce, or Angular, or something else).

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos