Input form - Retrieve the old value of an input field

Avatar

Avatar

salvatore_dange

Avatar

salvatore_dange

salvatore_dange

25-03-2021

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

@wodnicki 

@DavidKangni 
@Milan_Vucetic 
@_Manoj_Kumar 
@Darren_Bowers 

input field Input Form old value

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

01-04-2021

Hi,

 

Use <check/> as normal:

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

 

Thanks,

-Jon