You need to sign in to do that
Don't have an account?
Ian 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
The controller
The visualforce page
<apex:page controller="filtered_fields_controller" lightningStylesheets="true"> <apex:slds /> <body> UserID is {!userID} </body> <apex:form > <apex:pageBlock title="My Content" mode="edit"> <apex:pageBlockButtons > <apex:commandButton value="Save"/> </apex:pageBlockButtons> <apex:pageBlockSection title="My Content Section" columns="2"> <apex:inputField value="{!userID.name}"/> <apex:inputField value="{!userID.site}"/> <apex:inputField value="{!userID.type}"/> <apex:inputField value="{!userID.accountNumber}"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
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); } }