You need to sign in to do that
Don't have an account?
Oscar Fernando De la Cruz
How display initial text on Rich Text component
Hi everyone, I have this LWC to generate a PDF (https://santanuboral.blogspot.com/2020/10/lwc-generate-pdf.html)
And Im trying to get de info about contact and display on my component Im have only this
import { LightningElement, api, track} from 'lwc'; import generatePDF from '@salesforce/apex/DisplayRichTextHelper.generatePDF'; import { ShowToastEvent } from 'lightning/platformShowToastEvent'; import id from '@salesforce/user/Id'; import Username from '@salesforce/schema/User.Username'; import { getRecord } from 'lightning/uiRecordApi'; export default class DisplayRichTextComponent extends LightningElement { @api recordId; allowedFormats = ['font', 'size', 'bold', 'italic', 'underline', 'strike', 'list', 'indent', 'align', 'link', 'image', 'clean', 'table', 'header', 'color', 'background','code','code-block']; //this method will display initial text get myVal() { return "ID:" +this.recordId; }
So I need of Contact: ID,Name, Email, any idea of how I can do that?