Skip to main content Salesforce and Tableau exam registrations are now closed through July 21st. Learn more about the new Salesforce certification experience coming soon.

Feed

Connect with fellow Trailblazers. Ask and answer questions to build your skills and network.

I have a zip folder uploaded as a static resource. It's the same group of fonts we use in our current Aura site. 

 

I've followed the instructions in

this article

to add my custom fonts to the head markup. Here is a sample of what's in my head markup. After adding this, I added a custom font option called "FontName" and then set the custom font and font weight to my H1 and H2 settings (just examples).  

 

Despite all of that, the page is still just rendering the generic default font for everything and web inspector is indicating that the font files can't be found. 

 

<style>

@font-face {

font-family: 'FontName';

font-style: normal;

font-weight: 200;

src: url('{ basePath }/sfsites/c/resource/KnowledgeFonts/Font200.woff') format('woff');

}

@font-face {

font-family: 'FontName';

font-style: normal;

font-weight: 300;

src: url('{ basePath }/sfsites/c/resource/KnowledgeFonts/Font300.woff') format('woff');

}

</style>

4 answers
  1. Today, 9:33 AM

    I would prefer we move the style sheet to a css file and tag that sheet in the headMarkUp. In my present project we use a lot of fonts, we added all of them into a single Static Resource and added a Css file which will have all these font Configurations. And attached that style sheet to headMarkUp.  

     

    Sometimes the CSS won't reflect in Preview Mode  you need to publish the site and check it in Live Mode.

0/9000

I'm encountering an issue where the lightning-file-upload component used on an LWR (Lightning Web Runtime) site fails to upload files when the site page is accessed by guest users using Firefox. The upload gets stuck during the first file (whether it’s a single or multi-file upload), and the Done

 button remains disabled, preventing submission. 

 

This issue appears to be specific to Firefox and does not occur in Chrome or other browsers. We’ve confirmed that the following setting is enabled in our org:

  • Setup → General Settings → Use the File Upload Lightning web component for LWR sites
  • Setup → General Settings → Allow site guest users to upload files

Has anyone else faced this issue? Is there a known workaround or browser-specific limitation for guest users using lightning-file-upload on LWR sites in Firefox?

 

Any guidance or suggestions would be greatly appreciated. 

 

Why does lightning-file-upload fail for guest users on LWR sites in Firefox?

 

#Experience Cloud  @* Experience Cloud *

1 answer
0/9000

Hi everyone! 

 

I create a new experience site for my org. In it I embedded an HTML to generate a web-to-lead. This web to lead has this line of code to include the record type I want this record so be saved on.  

 

 <!-- Record Type ID -->

  <input type="hidden" name="recordType" value="012O3000006JjkLIAS">

 

 

However, when filling out the web-to-lead form the lead does hit my Salesforce org, however it is saved with a different record type.  

 

I adjusted the Guest User created for this experience site so that the defult record type is the one I need.  Also, it has permission to the all the fields used in the web-to-lead form.  

 

By the way, the site is Public.  

 

Any idea what I am doing wrong ? 

 

Thanks

3 answers
  1. Jul 10, 1:52 PM

    Instead of hardcoding it, can you write a record triggered before save flow to update the record type to the desired value for the leads created from the site. You can use the site user profile/id as the identifier too. 

    Also you can check out the debug logs while working on the flow to see what is overriding your record type value (Probably some other automation is overriding it).

0/9000

I hope someone has a solution for my issue. I am using a Form Assembly form in Experience Cloud, and there are 2 email fields on it (Email and CC Email Addresses), and I want to have both of them listed in the CC field in Salesforce. However, when I do that, both emails are listed, but there is no comma between them. Salesforce considers them to be one "invalid email." I need a way to list both email addresses in the CC field, inserting a comma between them. Please help if you have a solution.

 

@* Experience Cloud * 

5 answers
  1. Today, 9:18 AM

    I am not that good with Flows. Are you saying that when you add CC and Email in the CC Address List, it is not considering them correctly 2 seperate emails ??  

     

    Then try to create a Variable and assign CC address and email address to it by adding a Comma in between. Then assign CC Field to the respective field and try.  

     

    If you think there is some issue and it is from Salesforce end, then raise a Ticket and meanwhile try to use a Workaround.

0/9000

Hello everyone 

 

I need your help. I'm creating an LWC for my community. I need to read their user information when they log in to obtain their company name. Once obtained, search the Account object for the information that will be shown to them, which is the company name, RFC, among other data. Once you have that information, you can associate the case you created. 

 

The user who logs into the community has their user information, where they register in Salesforce to be part of a community. In the company field, enter the name of the account to which the user should be linked. 

 

I'm posting an image of what the community view looks like. It's in Spanish because the client uses Salesforce in Spanish.

Retrieve User information to search within the Account through a LWC for a community

The first two fields, which are grayed out, are where the user's name information should appear. account and the RFC to which the user is associated, but I don't know what I should do within the LWC to extract the account information that is in the user's company field. 

 

I'll share part of the code I've created. What I did was get the user who is logging into the community and the fields you see in the image. However, when I retrieve the user information and the company field, I don't know how to get the account information to put the values ​​in the grayed-out fields. 

 

HTML:

<template>

<div class="slds-grid slds-wrap">

<div class="slds-col slds-p-horizontal_small slds-size_12-of-12">

<lightning-card>

<h3 slot="title">

<lightning-icon icon-name="standard:case" size="small"></lightning-icon>&nbsp; Apertura del caso

</h3>

<div slot="footer">

<lightning-button

label="Cancelar"

variant="neutral"

onclick={handleCancel}></lightning-button>

&nbsp;

<lightning-button

label="Guardar"

variant="brand"

onclick={handleCreateCase}></lightning-button>

</div>

<div class="slds-p-horizontal_small">

<div class="slds-grid slds-wrap">

<div class="slds-col slds-p-horizontal_xx-small slds-size_6-of-12">

<lightning-input type="text" label="Nombre de la empresa" value={companyName} disabled></lightning-input>

</div>

<div class="slds-col slds-p-horizontal_xx-small slds-size_6-of-12">

<lightning-input type="text" label="RFC" value={rfc} disabled></lightning-input>

</div>

<div class="slds-col slds-p-horizontal_xx-small slds-size_12-of-12">

<lightning-textarea name="description" data-id="description" label="Descripción" class="validate" required></lightning-textarea>

</div>

</div>

</div>

</lightning-card>

</div>

</div>

<div class="spinner">

<template if:true={isLoading}>

<lightning-spinner alternative-text="Loading" variant="brand" size="large">

</lightning-spinner>

</template>

</div>

</template>

 

JS: 

 

import { LightningElement, track, wire } from 'lwc';

import Id from '@salesforce/user/Id';

import { getPicklistValuesByRecordType } from 'lightning/uiObjectInfoApi';

import { getRecord, getFieldValue } from "lightning/uiRecordApi";

import { createRecord } from "lightning/uiRecordApi";

import { ShowToastEvent } from "lightning/platformShowToastEvent";

import { NavigationMixin } from "lightning/navigation";

import { loadStyle } from 'lightning/platformResourceLoader';

import NAME_FIELD from "@salesforce/schema/User.Name";

import COMPANY_FIELD from "@salesforce/schema/User.CompanyName";

export default class CamNewCaseCustomer_lwc extends NavigationMixin(LightningElement) {

userId = Id;

@wire(getRecord, {

recordId: '$userId',

fields: [NAME_FIELD],

fields: [COMPANY_FIELD],

}) user;

 

I hope you can help me. 

Thanks and Regards 

Tania García

6 answers
  1. Today, 9:07 AM

    If you are jut expecting fields to display data and not gonna use them anywhere then use Lightning record view form. You jus  need to pass User.FirstName, and any other fields present on User Record. 

     

    Remainin  fields will be as it is. This way you don't need to manually query the data, everything will be handled by the system.

0/9000