Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!

Input form - Retrieve the old value of an input field

Avatar

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

@Jonathon_wodnicki 

@DavidKangni 
@Milan_Vucetic 
@Manoj_Kumar_ 
@Darren_Bowers 

1 Reply

Avatar

Community Advisor

Hi,

 

Use <check/> as normal:

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

 

Thanks,

-Jon