Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8834

Multi-steps Online Forms web part throwing error on file upload

$
0
0
I am using the Multi-steps Online Forms web part from the market place on Kentico 8.2 and it works fine except for alternative forms with file upload fields. This gives the error below in the event log: EventDescription: Message: Object reference not set to an instance of an object. Exception type: System.NullReferenceException Stack Trace: at CMS.OnlineForms.BizForm.SaveDataInternal() A review of the web part shows that it hides the bizform submit button and adds two new buttons - **Prev** and **Next**. The next button click event handler then calls the **SaveData** method on the bizform. protected void Next_Click(object sender, EventArgs e) { viewBiz.SaveData(viewBiz.RedirectUrlAfterSave); } If I make the submit button visible and click it instead of the **Next** button, the file is uploaded successfully. This implies that the submit button click event does something before calling the **SaveDataInternal** method that is throwing the exception. I would appreciate every help in figuring this out.

Viewing all articles
Browse latest Browse all 8834

Trending Articles