How to Create Dropdown of Static Options in Workflows Definitions

I have no trouble creating a dropdown list of EXTERNAL_DATA which I supply via a callback. How do I populate a DDL with a static list of items when I create the definition?

E.g., if I want to display a DDL with the options “option 1”, “option 2”, “option 3”, how do I do this directly when adding the definition - WITHOUT using the dataUrl (which is meant for dynamic data)?

Hey @Renegade ,

Do you have an example of a configuration you’ve tried? Here’s an example static dropdown select definition I created as a test:

{
 "key": "testDDL",
 "label": "Test Dropdown Select",
 "values": [
 {
 "allowsMergeTags": null,
 "type": "STATIC_VALUE",
 "options": [
 {
 "text": "Option 1",
 "value": "option 1"
 },
 {
 "text": "Option 2",
 "value": "option 2"
 }
 ]
 }
 ],
 "fieldType": "SELECT",
 "required": true
}

Hey Derek -

Thanks for this response; I will give it a try. I have little doubt that it works. But correct me if I’m wrong - this isn’t in the documentation anywhere. (If so, where is it?) I tried all kinds of things just by guessing. LOL

Hey @Renegade ,

To be completely honest, it’s been quite a while since I created my own Workflow Extensions. I was under the impression that the docs covered static dropdown lists. Regardless, there’s clearly room for improvement here; thanks for flagging this as a problem. I’ll touch base with my team and see what we can do to update the docs.

Here’s a related question: I actually only need boolean information from the user, but I haven’t seen any support for a checkbox. Does it exist? (Or must one use the DDL with “yes” and “no” options?)

Hey @Renegade ,

Apologies for the delay here. You’re correct, right now support for boolean properties is limited to an enumeration with a “true” and a “false” value.