If caller's email id (use custom field) description is empty, then while submitting form will displa

udaychaudhary
Giga Contributor
 
5 REPLIES 5

Juhi Poddar
Kilo Patron

Hello @udaychaudhary 

You can create an onSubmit client script to meet your requirement.

configuration:

JuhiPoddar_0-1752749773044.png

Please refer to the script below:

function onSubmit() {
	var desc = g_form.getValue("description"); //modify the backend field name
	if(desc === ""){
		g_form.addErrorMessage("Description field is empty"); // modify the message to display
		return false;
	}
}

This script can be reused for any field by simply updating the field name (description) and the error message as required.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You

Juhi Poddar