Reputation: 2169
I have an editable field called Number
. This field value changes to ""
every time a button is clicked.
So, I want to display its value using a < Computed Text > using as default value Number
.
Is there any chance after the button was clicked, the < Computed Text > to display the 'old' value from the field Number
?
Thanks!
Upvotes: 0
Views: 664
Reputation: 3524
Use computed for display field with formula:
@If( @IsDocBeingLoaded; Number; @ThisValue )
That way it will show value of Number
field since opening.
Upvotes: 0
Reputation: 22284
Yes. You just need to store that old value somewhere before you clear it:
Field OldValue := Number;
And then retrieve it later:
Number := OldValue;
@Command([ViewRefreshFields]);
Upvotes: 2
Reputation: 384
As I've understood you need to use Help Description
and Field Hint
in field properties instead of your combination of computed text and event handlers.
Upvotes: 0