This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AutoGenerateSurveyLinkController { | |
@AuraEnabled | |
public static String generateSurveyInvitationLink(String relatedObjectRecordId) { | |
String returnString; | |
Boolean isAllowed; | |
isAllowed = checkAdminPermission(); | |
if(isAllowed) { | |
returnString = helperMethod(relatedObjectRecordId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<lightning-input name="input5" label="Sample text" class="slds-p-bottom_medium" data-field="text" ></lightning-input> | |
<lightning-button variant="brand" label="Copy text" title="Share Guide" icon-name="utility:copy" | |
onclick={copyTextToClipboard} class="js-copy-btn slds-m-left_x-small"></lightning-button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> Create a formula field (ex: QRCode) with below value | |
IMAGE('https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=https://developer-myorg.cs10.force.com/playground/s/community_page?record=003xxxxxxxxxxx' ,'Scan QR code to open record in mobile.') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create these Custom Labels: | |
Preview_URL: | |
/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&versionId= | |
Download_URL: | |
/community_name/sfc/servlet.shepherd/document/download/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
td[data-ccr="CCR"] span { | |
display: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> Click on Settings (wrench icon) and select User Snippets | |
-> Select the type of snippet (generally select 'New Global Snippet File' to create a snippet and make it available across the projects and languages) | |
-> give a snippet name | |
-> copy the code from above file (change the scope, prefix, description as required) | |
-> in the required js, ts file, start typing 'imp-label' and select the suggestion with the given decription. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create the Custom label like below: | |
Custom Label name: CS_ContactIntake_Introduction_English_Info_Text_4 | |
value: Hello. My name is <b class="ny_capitalization">{0}</b> and I am calling from the Colorado Department of Public Health and Environment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function reverseTheObject(obj) { | |
return objReverse(obj); | |
} | |
objReverse(object) { | |
var newObject = {}; | |
var keys = []; | |
for (var key in object) { | |
keys.push(key); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.slds-modal__container { | |
padding: 0; | |
width: fit-content; | |
} | |
.slds-modal__content { | |
/* padding: 2vh 0 0 0; */ | |
width: fit-content; | |
height: fit-content; | |
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.16); |
NewerOlder