Input form - Retrieve the old value of an input field

Avatar

Avatar
Level 1
salvatore_dange
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
salvatore_dange
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
View profile
salvatore_dange
Level 1

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 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

977 likes

Total Posts

1,096 posts

Correct reply

516 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
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