+1-888-365-2779
Try Now
More in this section

Forums / Project Feather / 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

1 posts, 0 answered
  1. Behrooz
    Behrooz avatar
    9 posts
    Registered:
    28 Jul 2015
    18 Jul
    Link to this post

    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.

1 posts, 0 answered