I'm looking to build a form widget that posts the data to a controller action. Seems simple enough but I'm struggling. I don't want the widget to have a content part as it doesn't need it. All the example I've seen contains ContentParts and I've actually
built my own twitter widget a content part so I understand how it all works.
I maybe even talking rubbish, so let me explain. I don't want to save anything in the database, I just want to render a widget that contains a shape template (which contains the form) and then submit to a custom action on a controller within my module. This
action will then submit the form data to campaign monitor and so I don't need to save the information in the database.
I'm building a widget as the form will be shown on all pages, in a specific zone.
I know how to create the controller and action and register a route with an area for the controller in my module.
Can I create a seperate view model and use for my shape template or do I need to use a content part, which acts as the view model but I just don't have a handler that then submits the data?
Sorry if a bit confusing question. If anyone has some real world examples of doing this that would be great.