How to use prechatFormData from Embedded Service Deployment chat Snippet in Salesforce Experience Cloud?

1. Create a JavaScript file using the following code.File Extension should be “.js”. 2. Upload the JS file in Static Resource. 3. Configure it in the Embedded Service Deployment in Experience Cloud builder. Output: