goforward issue
# help-with-umbraco
m
After upgrading from Forms from 8.6 to 8.13.8 I have an error in the file UmbracoFormsExtensionsController.cs "The name 'GoForward' does not exist in the current context" I have compared the file between the 8.6 and 8.13.8 versions and they are the same - has the reference to 'GoForward' changed? I could add the goforward method, but I cannot find what the content of it should be. Does anyone have any suggestions? Thanks.
a
Hi @maryh_80946 !
Could it be this is a custom controller that processes the form, and
GoForward()
is also a custom (overridden) method ? Did you perhaps make any other changes in the solution that could've caused it to break ?
m
Hi Ambert, thanks for your reply. I did not build the solution initially, but the
code for UmbracoFormsExtensionsController came from here - https://gist.github.com/lars-erik/7a0028f28b93385574b68ce11276bd7a The only change that was made was upgrading from 8.6 forms to 8.3 forms using nuget. If I go back to 8.6 then I get no errors and the website works fine.
r
Maybe @Lars-Erik will have some advice ( afteror over the weekend)
l
I'd just look for similar properties using intellisense. Alas, I have no recollection of this code. 🙈
a
@maryh_80946 I reckon GoForward is a method that is decrepated in later version, or has its properties changes, so hence it doesn't qualify anymore in its current state
Also not sure what that code at all does, something with handling formsteps, you could try removing the controller entirely ? 🙂
s
Sorry to be the channel police again but #1127946593786675331 is the place for Umbraco Forms questions. As far as I can tell
GoForward
is a private method, so not sure what is going on.
m
Thanks all. The forms which go on to a different page after submit fail, so it seems like it is related to submitting forms which have a 'Go to page' on submit
s
Copy code
csharp
        private void GoForward(Form form, FormViewModel model)
        {
            model.FormStep++;

            if (model.FormStep == form.Pages.Count())
            {
                SubmitForm(form, model);
            }
        }
Yes that's what it's for. I would check if ALL of your Forms dlls are up-to-date, check the installed NuGet packages to make sure they're all on the same version for Forms. If you have multiple projects in your solution, they might have (parts of) Forms installed to, make sure they're all on the same version as well.
r
do you get a special hat for being the section police ??
m
Thanks. If I add that in to the file the GoForward error goes - but I get one for SubmitForm. Do you know what the code is for that method?