Reputation: 6909
I'm trying to update Display Only
page item with a dynamic action on one select lists and want to display the value in that display only item.
My code works and page item gets set but once I try to submit the page I get an error: Session state protection violation: This may be caused by manual alteration of protected page item P1_TEST_ITEM. If you are unsure what caused this error, please contact the application administrator for assistance.
I know for hidden items I can just turn off the Value Protected
but that is different for Display Only
page items as there is no option to turn off value protected. How can I fix the issue?
Upvotes: 1
Views: 15480
Reputation: 479
Another approach is to turn off "Send on Submit" - but if the field is display only and must be submited - then create a hidden item to hold the value and submit that.
Upvotes: 0
Reputation: 1
Simply turn off "Send On Page Submit" under settings of that item and it should work.
Upvotes: 0
Reputation: 18650
There is a doc on MOS (1461271.1) explaining this is expected behavior since apex 4.1.1 Here are some workarounds
readonly
OR Advanced > CSS Classes to apex_disabled
Alternatively, if you want to use Read Only, then you could use a computation on page submit instead of a dynamic action.
Upvotes: 4