Hello —
For a while I’ve had a Drafts action that included approximately this script:
const doPrompt = Prompt.create();
doPrompt.title = “Title”;
doPrompt.addTextField(0, "", "");
doPrompt.addTextField(1, "", "");
doPrompt.addTextField(2, "", "");
doPrompt.addTextField(3, "", "");
doPrompt.addButton(“OK");
doPrompt.show() and etc ...
The salient point being that the “name” string for addTextField() was a number and it worked just fine. As of Drafts 40 or 40.0.1 (339) (I’ve got 40.0.1 installed now but I think this started with Drafts 40 proper), this script no longer functions (shows a prompt with the title and the OK button, but not the text fields). However, if I change the “name” string to an actual string (words or numbers within quotation marks), then the prompt works as expected.
Bug in the new Drafts version, or have I been getting away with something previously that wasn’t a best practice and I need to start making my “name”s actual strings?
Excited for the new nested tags and etc. Thanks!