Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

lightning input field lwc - How can I make it not required?

Asked by Dipika Agarwal Feb 28, 2023 832 views 1 answer
Share

About this question

I am using a lightning-record-edit-form as shown below


                       onchange={handleAccountFieldChange}>
        
 

According to https://www.lightningdesignsystem.com/components/form-element/ , the lightning-input-field control value is supposed to be required only if we add the required attribute to it. Even though I do not have the required attribute set on the lightning-input-field , it is still being displayed as a required field. How can I fix this?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.