Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Input form - Retrieve the old value of an input field

salvatore_dange
Level 2
Level 2

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
1 Reply
wodnicki
Community Advisor
Community Advisor

Hi,

 

Use <check/> as normal:

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

 

Thanks,

-Jon