Skip to main content
Inspiring
June 11, 2019
Answered

saveAs not prompting if it needs to overwrite

  • June 11, 2019
  • 1 reply
  • 1280 views

Hi again, everyone. I'm having an issue with SaveAs and the bPromptToOverwrite parameter. The pastebin link to my code will be below. For some reason, it just won't prompt me to overwrite if the file already exists. I am calling the folder level script linked below through a mouse up event on a form button, if that makes any difference.

I believe I have the line of code right seeing as the save event still happens without errors, but the dang prompt just won't show up. Any ideas?

[JavaScript] Attempt - Pastebin.com

This topic has been closed for replies.
Correct answer BarlaeDC

Hi,

Pretty sure Boolean are all small letters - true as opposed to True.

Regards

Malcolm

1 reply

BarlaeDC
Community Expert
BarlaeDCCommunity ExpertCorrect answer
Community Expert
June 11, 2019

Hi,

Pretty sure Boolean are all small letters - true as opposed to True.

Regards

Malcolm

Inspiring
June 12, 2019

I was hoping it was that simple, but no dice. I changed it to lower case but still no prompt.

try67
Community Expert
Community Expert
June 12, 2019

Your previous code would have resulted in the following error message:

ReferenceError: True is not defined

The fact you didn't notice that suggests to me you're not using the console window correctly. Make sure to enable the option to display it on errors and warnings (via Edit - Preferences - JavaScript), and then try again.