How get the customer in WebForm

I’m trying to enable the Warranty Claim in Portal!

I created the WebForm for the Warranty Claim, but when I try to save it in the Portal, I receive a message that the customer is mandatory!

What is the best way of solve this?

It seems you have not included customer field on Warranty Claim WebForm. Customer field is marked as mandatory in Warranty Claim doctype. So you have to include all mandatory fields on web form.


I think,
If customer is creating Warranty Claim after login in customer portal,then customer name should be auto-filed.
From current logged is user you will get email id, and from that email id you can find customer name.

1 Like


Yes its required to put mandatoty fields in json for inserting records via API calls as suggested by @saurabh6790 and @kolate_sambhaji