Prefill name in dialog box opened using showOpenDialogSync() in Electron JS
I am opening a dialog box which allows the user to enter a folder name and then when he/she clicks ok, the folder is created at the specified location. So I want to provide a default name when the dialog box opens at first.
Using showMessageBoxSync solves the issue.
It opens the folders in the path and when it cannot find any existing folder, it adds the remaining path to the user input box.
Answered By – quirk