Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2025 12:34 AM
Hi @D V Sandeep ,
I check for your problem in my PDI and it works for me, I checked for name in file name please check solution below
I created a onChange client script on attachment variable and add below code
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
alert("Called = " + g_form.getValue('add_here'));
var attachmentWidget = g_form.getControl('add_here');
alert("attachmentWidget = " + JSON.stringify(attachmentWidget));
var fileName = attachmentWidget.displayValue
var invalidChars = /[%$@()&<>'"]/;
if (invalidChars.test(fileName)) {
alert("Your file name have invalid characters please remove and add");
g_form.clearValue("add_here");
return false;
}
}
Result
My file has special characters
Please mark my answer correct and helpful if this works for you
Thanks and Regard,
Sarthak