Text Field Focus Working only in Drafts for Mac?

I am using a text field in a prompt that in general works fine. The one thing that seem to work only in Drafts for Mac is setting the focus to the text field.

Is that a limitation of iOS/iPadOS or am I doing something wrong?

My code:

thePromptedReferencesList.addTextField("thePageField", "Pages:", "", {
"keyboard": "numbersAndPunctuation", "wantsFocus": "true"
});

You have set wantsFocus as a string but that parameter should be a Boolean. Try removing the quotes around the word ‘true’ to set it as a Boolean instead of a string and check the results.

Works like a charm. Stupid me. Thank you.