SyntaxFix
Write A Post
Hire A Developer
Questions
var file = form.getForm().findField("file").getValue(); var fileLen = file.length; var lastValue = file.substring(fileLen - 3, fileLen); if (lastValue == 'doc') {//check same for other file format}