BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
this.fieldSettings = {
subject: {
name: 'Subject',
validation: {
required: true
}
}
}
onPopupClose(args) {
if (args.type === 'QuickInfo') {
var firstChar = args.data.Subject.charCodeAt(0);
if (!((firstChar > 64 && firstChar < 91) || (firstChar > 96 && firstChar < 123) || firstChar == 8 || firstChar == 32 || (firstChar >= 48 && firstChar <= 57))) {
args.cancel = true;
alert("First letter should be an alphabet");
}
}
} |
Hi Sinchan,
Greetings from Syncfusion Support.
We have checked your requirement and prepared sample based on that using popupClose event like below code snippet.
this.fieldSettings = {subject: {name: 'Subject',validation: {required: true}}}onPopupClose(args) {if (args.type === 'QuickInfo') {var firstChar = args.data.Subject.charCodeAt(0);if (!((firstChar > 64 && firstChar < 91) || (firstChar > 96 && firstChar < 123) || firstChar == 8 || firstChar == 32 || (firstChar >= 48 && firstChar <= 57))) {args.cancel = true;alert("First letter should be an alphabet");}}}
eventSettings Fields : https://ej2.syncfusion.com/react/documentation/schedule/appointments/#event-field-settingspopupClose event: https://ej2.syncfusion.com/react/documentation/api/schedule/#popupclose
Kindly try the above sample and let us know if you need any further assistance on this.Regards,Vengatesh