aptonic / dropzone4-actions

Add-on actions and API Docs for Dropzone 4
https://aptonic.com
363 stars 57 forks source link

How to add custom form fields for action config? #79

Closed zousandian closed 6 years ago

zousandian commented 7 years ago

I know I can use OptionsNIB like Login or ExtendedLogin, but can I add some other custom fields?

atika commented 6 years ago

The edit window displays only one of the options by default, you cannot add/stack OptionsNIB.

aptonic commented 6 years ago

That's correct - unfortunately it's not possible to customize the available fields in an OptionsNIB. However, you could use CocoaDialog (which is bundled with Dropzone) in conjunction with the $dz.save_value API to get some user configurable string the first time the action is run. For an example of this, see the Send iMessage With Attachment to Phone Number action.