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
Ian QuahIan Quah 

Using lightningStylesheets as well as its scope?

What is the scope of lightningStylesheets? From the docs I got the impression that I could just throw it in at the top of my file and have it show up like a lightning designed file but upon trying it that was not the case.

The visualforce page
<apex:page controller="filtered_fields_controller" lightningStylesheets="true">
    <apex:slds />

        UserID is {!userID}

    <apex:form >
        <apex:pageBlock title="My Content" mode="edit">
            <apex:pageBlockButtons >
                <apex:commandButton value="Save"/>
            <apex:pageBlockSection title="My Content Section" columns="2">
                <apex:inputField value="{!}"/>
                <apex:inputField value="{!}"/>
                <apex:inputField value="{!userID.type}"/>
                <apex:inputField value="{!userID.accountNumber}"/>

The controller
public class filtered_fields_controller {

    Public String userID{get;set;}
    Public Account account{get;set;}
    public filtered_fields_controller() {
        // Getting fed arguments
        userID = System.currentPageReference().GetParameters().get('userID');
        System.debug('Current surgery ID ' + userID);