November Happy Hour will be moved to Thursday December 5th.

xForms / MVC not submitting

Vote:
 

Hi,

I’ve been having a problem implementing xForms on an MVC site.

 I’ve followed the instructions as per this blog:

http://www.eyecatch.no/blog/using-xforms-and-mvc-in-episerver-7/

 

I can see the values of the form when debugging but the controller doesn’t seem to pick these up & the OnActionExcuting method always returns a failed action.

Is there anything in the implementation that I may be missing?

Any suggestions appreciated.

Regards,

Alan.

#147658
Apr 20, 2016 17:33
Vote:
 

Hi,

Are you telling that in this method "ActionResult XFormPost(XFormPostedData data,..." data is empty? So basically form is submitted back to the server, but model binding is not happening for the XForm?

#147662
Apr 20, 2016 20:18
Vote:
 

Yeah that sounds about right.

OnActionExecuting is called &  filterContext.ActionDescriptor.ActionName == "Failed" is true.

#147745
Apr 22, 2016 16:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.