Plugin Dynamic Forms ContacUs Error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hello,

I need you to help me later. I have a registration form but the result is another page. I want to return at the same page. I use nopcommerce version 4.0

You can try demo here : http://tinhbotnghetuoi.net/bot-ngu-coc-tang-can-hera

<form method="post" id="dynamic-form" action="/Admin/ContactUsDynamicForm/ContactUs?widgetZone=productdetails_bottom">
</form>

ContactUsDynamicFormControler:

[HttpPost, ActionName("ContactUs")]
[CaptchaValidator]
public IActionResult ContactUsSend(PublicInfoModel model, bool captchaValid, IFormCollection form){

}

public IActionResult ContactUs(string widgetZone = "")
{

}
6 years ago
You can do customization and redirect to same page using RedirectToAction();

Thanks,
Jatin
6 years ago
Hi,

For nopcommerce versions before My plugin does not need to switch to another page to return results because the plugin returns an IActionResult PublicInfo function.

For the Plugins for nopcommerce version 3.9, the registration form does not return results to another page:
http://www.trungtamvnpt.com/

When I upgraded this plugin I had a problem. For nopcommerce 4.0 version 1 Plugin Widgets returns IViewComponentResult Invoke

I think this will lead to upgrading the plugin to version 4.0 for nopcommerce I have not processed yet.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.