Error after saving a Auto Fill form

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
gleegeld
Posts: 13
Joined: Tue Jun 30, 2015

30 Jun 2015

I have a drop down on my form that allows a user to select a title which will then auto-fill certain fields in the form. However when I hit save I received the error below.

Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Any thought on how to fix this?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

02 Jul 2015

Hi,

Most likely, you insert an option into a select box that was not there originally via JavaScript. As a workaround I'd suggest disabling EnableEventValidation property in the web.config by placing the following element into system.web section:

Code: Select all

<pages enableEventValidation="false" />

gleegeld
Posts: 13
Joined: Tue Jun 30, 2015

09 Jul 2015

Worked perfectly. Thanks a million!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests