Input form - Retrieve the old value of an input field | Community
Skip to main content
Level 2
March 25, 2021
Question

Input form - Retrieve the old value of an input field

  • March 25, 2021
  • 1 reply
  • 985 views

Hello all,

I want to compare the current value (oldValue) of a field and the value that I have when I try to save the same record through the input form.
How can I retrieve this information?

I tried with:

<enter> <set expr="@field" xpath="/tmp/@field"/> </enter>

 
but the value in [/tmp/@field] is the value set in the last selected record
Can you address me?

Thanks,
Salvatore

@jonathon_wodnicki 

@davidkangni 
@milan_vucetic 
@_manoj_kumar_ 
@darren_bowers 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jonathon_wodnicki
Community Advisor
Community Advisor
April 1, 2021

Hi,

 

Use <check/> as normal:

<leave> <check expr="@field=[/tmp/@field]"> <error>Not the same</error> </check> </leave>

 

Thanks,

-Jon