I have a DML Form where most of the fields are database columns. One of those fields - User, is optional in the database and is a display only item on the page. There is also a switch control on the page and when it is set to Yes, the P4_USER item gets populated with the current user name, and when it is gets switched to No, the field supposed to be cleared.
I set the dynamic action on change of the switch control to set the value of P4_USER item and to show or hide it as appropriate and it works fine. But when I submit the form I get an error:
Session state protection violation: This may be caused by manual alteration of protected page item P4_USER. If you are unsure what caused this error, please contact the application administrator for assistance.
I wanted to set the Value Protected
attribute to No
but that attribute is only there for hidden fields, mine is Display Only
. Are there any workarounds?