I'd like to remove the extension from a file name. filename.pdf to just filename.
I attempted this code on the page:
"'Title: '+supporting_title.substr(0, supporting_title.lastIndexOf('.'))"
console responds -
parser.js:788 Method "lastIndexOf" not found in expression: 'Title: '+supporting_title.substr(0, supporting_title.lastIndexOf('.'))
A bit over my paygrade. Any guidance appreciated...