how to instantiate a feather widget inside another widget view by @Html.Action - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

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

  • how to instantiate a feather widget inside another widget view by @Html.Action
  • 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.