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

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Behrooz
    Behrooz avatar
    9 posts
    Registered:
    28 Jul 2015
    18 Jul 2016
    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