function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Katja FeldtmannKatja Feldtmann 

Required field error - but required field is filled in

Hi guys,

along the Trails I added a discount field to products, but no I want to add a product and I keep getting an error that the field is required, even though I filled it. The field is visible and set up on the Product and Opportunity layouts, so not sure where else I can look. Screenshot attached.

Thanks.Required field error
SandhyaSandhya (Salesforce Developers) 
Hi,

Just check if you have any trigger or apex  code wherever you are trying to insert/create the Opportunity record.

You can uncheck it from Setup-->Object Manager --> Choose (Opportunity)-->Fields-->Edit(Discount_Percent__c]) and uncheck required

Also refer below link for similar discussion.

https://success.salesforce.com/answers?id=9063A000000l0JWQAY
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya