You need to sign in to do that
Don't have an account?
Shuhbam Sinha
How to remove "Complete this field" error message from LWC
Hello Everyone,
I am facing one issue related to LWC. I am using record edit form to create case record and I have some Lightning Input Fields on my form. The issue is there are two fields which are dependent on one picklist field. This picklist field has two values 'Physical'and 'Digital'.If user selects physical the other two fields become mandatory and if they select Digital both the fields are not mandat. If user selects Physical then both the fields become mandatory and at the same time without saving the record if user change back the picklist value to Digital both the values become non manadat but the error' complete this field' still persists . The error and the red border do not hide. Do we have any workaround on the same.
I am facing one issue related to LWC. I am using record edit form to create case record and I have some Lightning Input Fields on my form. The issue is there are two fields which are dependent on one picklist field. This picklist field has two values 'Physical'and 'Digital'.If user selects physical the other two fields become mandatory and if they select Digital both the fields are not mandat. If user selects Physical then both the fields become mandatory and at the same time without saving the record if user change back the picklist value to Digital both the values become non manadat but the error' complete this field' still persists . The error and the red border do not hide. Do we have any workaround on the same.
If so, remove that 'Required' attribute and add the JS logic according to your explanation there.