how to instantiate a feather widget inside another widget vi

Posted by Community Admin on 05-Aug-2018 07:38

how to instantiate a feather widget inside another widget view by @Html.Action

All Replies

Posted by Community Admin on 18-Jul-2016 00:00

I am working on a custom MVC widget in which I need to display a Sitefinity form widget. I need to select the form by its ID based on business logic in my custom controller. I though perhaps the easiest way is to call @Html.Action on the view and pass along the action (index), controller name (FormController) and the model (I guess it's FormViewModel or FormModel). However I am not sure how instantiate the proper model inside my code.

Basically I wonder whether we can do this in general, and more specifically how to do it with FormController and FormModel (or FormViewModel)? I need to do this in a way that ultimate render form is able to work normally when it is submitted.

Any hint is appreciated.

This thread is closed