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
Shubham Bansal 45Shubham Bansal 45 

I want to apply on change on my one of input field of prechat.

I have a custom prechat form and i want to apply on change in one field among all the fields but i am not able to able on on change because in case of prechat fiekds are created dynmically with out my control .

I follow this link to create custom prechat: https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_lightning_components_prechat_sample_aura.htm

could any one help?Its urgent
AbhishekAbhishek (Salesforce Developers) 
You can select the fields that are shown on the pre-chat form, change the order of the fields, and make the fields required. To make the form more user-friendly to customers, add up to four fields. Important Create and edit your pre-chat forms from Embedded Service setup, not at global action.

Reference,

https://help.salesforce.com/articleView?id=snapins_chat_customize_prechat_form.htm&type=5

"Adding Fields to Pre-Chat form for Live Agent"  This feature is not available in salesforce right now.

An Idea is already raised for it you can Vote it,

https://trailblazer.salesforce.com/ideaView?id=0873A000000CYRnQAO


Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.