addSwitch example

Looking to add a radio button to a custom prompt and struggling with the execution.

In the documentation, it shows: addSwitch(name, label, initialValue)

My question is how are these delivered - name and label in quotes and then initialValue is supposed to be boolean - so is this just true / false?

addSwitch(“testvariable”, “Test button”, false)

Any example in the wild - didn’t see anything in the action directory I looked through.

You’ve interpreted it correctly

Dave

For an example see https://actions.getdrafts.com/a/1Fl

Got it - helpful to see. Thanks!