I have a Javascript API application and I was wondering how to go about using some code from that to make a custom widget. I want to allow the user to select multiple layers to buffer and clip and it works great in the API. I have tried to do the same using a GP task in the Web App Builder, but my options using model builder seem to be that the user selects only one layer, or all layers are selected (combined into one) and the results are displayed with different symbology. In my API application, the user can check one, several, or all check boxes for layers to create the result. I'd like to offer the same tool with the App Builder. Is it a pretty easy copy paste situation? Or do I have to start from scratch? This is my first time really diving into the developer edition.
Thanks!