I have the configuration per definition of jenkins.txt.
I took the following script which was already approved as a parameter in active choice:
And add it as id=Repository_data.groovy, Name=Repository Data, no checkbox were selected. The script is approved.
At an existing "Active Choices Parameter" I switch from Groovy Script to Scriptler Script and get the message:
And it doesn't matter what the value of Use Groovy Sandbox.