Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Notice removed Authoritative reference needed by CommunityBot
Bounty Ended with no winning answer by CommunityBot
code formatting
Source Link
Mahmood
  • 6k
  • 5
  • 39
  • 62
                        <fieldset class="slds-form--compound">      
                                <div class="slds-form-element__group">
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Paint</span> 
                                          
                                        </label>
                                    </div> 
                                    
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Carpet</span>    
                                           
                                        </label>
                                    </div>  
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Lightning</span>    
                                            
                                        </label>
                                    </div>  
                                </div>
                            </fieldset>
                        <fieldset class="slds-form--compound">      
                                <div class="slds-form-element__group">
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Paint</span> 
                                          
                                        </label>
                                    </div> 
                                    
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Carpet</span>    
                                           
                                        </label>
                                    </div>  
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Lightning</span>    
                                            
                                        </label>
                                    </div>  
                                </div>
                            </fieldset>
<fieldset class="slds-form--compound">
   <div class="slds-form-element__group">
      <div class="slds-form-element__row">
         <label class="slds-checkbox">
            <apex:inputCheckbox styleClass="slds-input"
               value="{!Request.Areas__c}"/>
            <span class="slds-checkbox--faux"></span>             
            <span class="slds-form-element__label">Paint</span> 
         </label>
      </div>
      <div class="slds-form-element__row">
         <label class="slds-checkbox">
            <apex:inputCheckbox styleClass="slds-input"
               value="{!Request.Areas__c}"/>
            <span class="slds-checkbox--faux"></span>             
            <span class="slds-form-element__label">Carpet</span>    
         </label>
      </div>
      <div class="slds-form-element__row">
         <label class="slds-checkbox">
            <apex:inputCheckbox styleClass="slds-input"
               value="{!Request.Areas__c}"/>
            <span class="slds-checkbox--faux"></span>             
            <span class="slds-form-element__label">Lightning</span>    
         </label>
      </div>
   </div>
</fieldset>
Notice added Authoritative reference needed by user27749
Bounty Started worth 50 reputation by user27749
added 2426 characters in body
Source Link
user27749
  • 494
  • 1
  • 13
  • 26

Part of the code I tried is as below

                        <fieldset class="slds-form--compound">      
                                <div class="slds-form-element__group">
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Paint</span> 
                                          
                                        </label>
                                    </div> 
                                    
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Carpet</span>    
                                           
                                        </label>
                                    </div>  
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Lightning</span>    
                                            
                                        </label>
                                    </div>  
                                </div>
                            </fieldset>

Part of the code I tried is as below

                        <fieldset class="slds-form--compound">      
                                <div class="slds-form-element__group">
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Paint</span> 
                                          
                                        </label>
                                    </div> 
                                    
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Carpet</span>    
                                           
                                        </label>
                                    </div>  
                                    <div class="slds-form-element__row">
                                        <label class="slds-checkbox">
                                            <apex:inputCheckbox styleClass="slds-input"
                                                                value="{!Request.Areas__c}"/>
                                            <span class="slds-checkbox--faux"></span>             
                                            <span class="slds-form-element__label">Lightning</span>    
                                            
                                        </label>
                                    </div>  
                                </div>
                            </fieldset>
Source Link
user27749
  • 494
  • 1
  • 13
  • 26

Checkbox group in lightning design system

I am trying to use checkbox group in a customer facing page using lightning design system styling.

The output should look something like this. I tried using multi select picklist but the rendering was bad.

Any help or pointers regarding the below is much appreciated

enter image description here