New answers tagged

4

@wire( getFieldSetData, {objectName: 'SOBJECTName', fieldSet: 'FIELSETName'} ) This wire in child is getting called even before you get recordId from parent and so you cannot say when will getSobjectRecords be invoked and when its response is returned, whether or not fieldSet information is available or not. fixes: Option 1. Render child only when ...


0

As workaround what you can do is set up a validation rule for that field and throw it field level so as to throw a custom error message. In the below example I am throwing error at Email field of contact whenever I try to create one and my custom error message appears. <lightning-record-edit-form object-api-name="Contact"> <lightning-...


0

I've actually resolved this one myself - see my Reddit post for more information on the answer here


1

Just set the value to undefined like so: <template> <lightning-radio-group name="radioGroup" label="Radio Group" options={options} value={value} onchange={handleRadioChange} type="radio"></lightning-radio-group> &...


1

You can't access information you don't have access to. This is a security feature, and a core principle of Web Components in general (allowing components to protect their contents). I wrote a Playground example that demonstrates this. As I stated in my comment, you won't be able to access the shadow root of the the lightning namespace components and its ...


0

I got the isssue, "Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined" being thrown as my Iterator was accessing same key when i was rendering data. Please follow below steps to resolve the issue --- Enable the debug mode which will give you detailed error message and quit understandable when we look at it. it’s a best ...


Top 50 recent answers are included