1

I'd like to create a static combobox thanks to a custom hidden trigger.

I've seen couple examples of Zapier triggers in their repository (such as https://github.com/zapier/zapier-platform-example-app-trigger) but not static.

I'm using Zapier CLI and don't use the previous scripting build UI.

Thank you!

Vlad
  • 287
  • 3
  • 13

1 Answers1

2

David here, from the Zapier Platform team.

If your dropdown is totally static, you can use the choices property outlined here. There's a couple of different options (depending if order matters or you need labels) but the end goal is that you'll have a choices key with an array or object attached to it.

For example:

    inputFields: [
      {
        key: 'color',
        required: true,
        choices: ['red', 'blue', 'green']
      }
    ]

Hope this helps. ​Let me know if you've got any other questions!

xavdid
  • 5,092
  • 3
  • 20
  • 32
  • 1
    Oh this is exactly what i needed. Thank you! – Vlad Aug 23 '18 at 19:15
  • One last question about it: I need to set a `perform` function as it is required but I don't need to that actually. Could you give an entire code trigger example with a static dropdown? Thank you! – Vlad Sep 06 '18 at 20:00
  • I'm not sure I follow - your trigger needs a perform to run, even if it's only echoing static dropdowns. do you mind making a new question with what you have and the expected input/output and i can take a look? – xavdid Sep 06 '18 at 20:23
  • I was going to create actually a hidden trigger with a static dropdown but actually it was not necessary as in my "main" trigger, i can add this field directly. Everything is fine, sorry to bother! Thank you! – Vlad Sep 07 '18 at 20:33