Hello @stormanh,
You can use the code below to validate the plain text field:
fd.spRendered(function() {
fd.field('Title').validators.push({
name: 'Invalid characters',
error: "Please remove invalid characters",
validate: function() {
var str = fd.field('Title').value;
return !/[~"#%&*:<>?/\{|}.]/g.test(str);
}
});
});