but if I add some form in GridLayout macro adding, The form appears, but after filling it, the "Thanks for sending us this message" do not show up. But in the Umbraco backend in form -> Entries, the form result are there.
Any suggestion? Some log I can use to trying to correct that?
I don't understand, you said custom form like HTML standard form?
Fo now the only way I make my form working, is to isolate the form in a new _target=blank than use another razord page that derived from @inherits Umbraco.Web.Mvc.UmbracoTemplatePage directly. This wau the form work like expected.
Just tried with a custom controller and everything still works (so unable to reproduce), would it be possible to send your project to tg at umbraco dot com ? That way I can run locally and debug the issue you are having
I can confirm this on 7.2.4. When clicking on "next" in a multi page form or submitting a form with a "message on submit" you end up on a blank page. No source code. If I use "Go to page on submit" it works. I also use route hijacking, that is I have custom controllers for my document types.
ok thanks for the details would you mind sending your project to tg at umbraco dot com? Since I have tried a simple route hijacking example and can't reproduce, form still works fine in my case
Sorry, I am not able to send you our source code. This is what's in the log when clicking on "next" in a form. The only warning is that the physical template file is missing, maybe that's what causing the empty page?
Crap, I create a small projet. But I can't add the form in my macro. When I try to add macro, the form do not appears! ;-(
I try to reinstall the form, but the same problem persist.
Yeah I also created a small project to test but everything works as it should so there must be something going on in your controller that is causing the issue
In my custom controller I override Index and "return CurrentTemplate(Model);". In a http get this returns a System.Web.Mvc.ViewResult as expected. When I press the "next"-button or submit a form with only a message the controller Index method runs as normal but CurrentTemplate(Model) returns a System.Web.Mvc.ContentResult instead with empty content and content type set to null.
Well the reason I get an empty "ContentResult" is because "EnsurePhsyicalViewExists()" fails in "CurrentTemplate()" (as seen in the log above also). It fails because it tries to find a view for the "UmbracoForms"-controller which doesn't exist.
Can I file a bug report on this somewhere? I'd really like to see this fixed since now we need to tell our customers that they must use redirect to page for their forms.
Custom controler and Umbraco Form = not working
Hi, I am using custom controller like you can see here
https://our.umbraco.org/documentation/Reference/Mvc/custom-controllers
but if I add some form in GridLayout macro adding, The form appears, but after filling it, the "Thanks for sending us this message" do not show up. But in the Umbraco backend in form -> Entries, the form result are there.
Any suggestion? Some log I can use to trying to correct that?
Thanks
Hi PierreD,
You can find the logs in the /App_Data/Logs in your file system of your Umbraco installation.
Hope this helps,
/Dennis
nothing in the log.
Comment author was deleted
So the form can captures the entries but it doesn't display the thank you message? What does it display on form submit then, just blank or the form?
The form blink but stil there with all information in it. If the form have 2 pages, the form blink and stay at the page one.
Comment author was deleted
Hmm sounds like an issue with TempData, will try to reproduce
Comment author was deleted
Any chance you already tried this with custom forms and see if they have the same issue?
I don't understand, you said custom form like HTML standard form? Fo now the only way I make my form working, is to isolate the form in a new _target=blank than use another razord page that derived from @inherits Umbraco.Web.Mvc.UmbracoTemplatePage directly. This wau the form work like expected.
Thanks
Comment author was deleted
Yeah custom forms created with a surface controller so not using Umbraco Forms, but will give it a try
hooo ok, not I don't try this yet.
Comment author was deleted
Just tried with a custom controller and everything still works (so unable to reproduce), would it be possible to send your project to tg at umbraco dot com ? That way I can run locally and debug the issue you are having
I can confirm this on 7.2.4. When clicking on "next" in a multi page form or submitting a form with a "message on submit" you end up on a blank page. No source code. If I use "Go to page on submit" it works. I also use route hijacking, that is I have custom controllers for my document types.
Comment author was deleted
ok thanks for the details would you mind sending your project to tg at umbraco dot com? Since I have tried a simple route hijacking example and can't reproduce, form still works fine in my case
Sorry, I am not able to send you our source code. This is what's in the log when clicking on "next" in a form. The only warning is that the physical template file is missing, maybe that's what causing the empty page?
Il will create a test project for you. I will give you a link soon
Crap, I create a small projet. But I can't add the form in my macro. When I try to add macro, the form do not appears! ;-( I try to reinstall the form, but the same problem persist.
Comment author was deleted
Yeah I also created a small project to test but everything works as it should so there must be something going on in your controller that is causing the issue
Some more info on this:
In my custom controller I override Index and "return CurrentTemplate(Model);". In a http get this returns a System.Web.Mvc.ViewResult as expected. When I press the "next"-button or submit a form with only a message the controller Index method runs as normal but CurrentTemplate(Model) returns a System.Web.Mvc.ContentResult instead with empty content and content type set to null.
Well the reason I get an empty "ContentResult" is because "EnsurePhsyicalViewExists()" fails in "CurrentTemplate()" (as seen in the log above also). It fails because it tries to find a view for the "UmbracoForms"-controller which doesn't exist.
https://github.com/umbraco/Umbraco-CMS/blob/release-7.2.5/src/Umbraco.Web/Mvc/RenderMvcController.cs
Can I file a bug report on this somewhere? I'd really like to see this fixed since now we need to tell our customers that they must use redirect to page for their forms.
Hi ZNS,
Yup, can report a bug using the issue tracker http://issues.umbraco.org/ if you discovers a bug in Umbraco CMS or in one of the Add-ons.
You will find the issue tracker for the Umbraco Forms here http://issues.umbraco.org/issues/CON, and the documentation on how to write a good bug or feature request report. https://our.umbraco.org/contribute/report-an-issue-or-request-a-feature
/Dennis
Issue created. I also submitted a test project which recreates this issue.
http://issues.umbraco.org/issue/CON-762
Comment author was deleted
That is awesome thanks! I've asked one of the core devs to take a look so hopefully we'll have a solution for you soon
is working on a reply...