0

I'm using two lightning-record-form to display Case fields , but since the field Type isn't displayed in the 2nd recordForm , the field WaitingforStakeholder is grayed out because i'm using Type and controlling field and WaitingforStakeholder as depending field ;

enter image description here

i wanted to add the Field Type as hidden in the 2nd form and change it's value automatically when i change the type's value of the 1st form but i coulnd't acheive this

enter image description here

1 Answer 1

0

With the code/information provided it is hard to identify, but I believe you are using fieldset to populate the fields. Assuming that, you should create two fieldsets and then

  1. you have to wrap your record form in two different templates (with each fieldset),
  2. Use [if:true] (https://www.sfdcpoint.com/salesforce/template-iftrue-conditional-rendering-lwc/) to show or hide the appropriate fieldset /template.

Request you to provide even further details if this doesn't solve the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy