Announcement Announcement Module
No announcement yet.
Restore old field value after Validation Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Restore old field value after Validation


    i have a question.

    I have a formbackingobject and validate the inputs.
    At the moment, will be the new value set in the object.
    It is possible to restore the old value, or is there a nice
    workaround for this problem?

  • #2
    What exactly you mean by old and new value?
    New value I guess is the one being under validation and the old one whatever form backing object becomes on initial Get.
    You can store in session the old value before formBackinObject returns and checking if exists when starting but why do you need this? The user should be able to see the rejected value for spotting what did wrong


    • #3
      i found a resolution, it also with session, but a little bit differnt.

      with the validation is the problem, it runs after the initialization of the formbackingobject of the controller. so you cannot restore the value before the validating.