0
votes

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!

3

3 Answers

2
votes

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]);
0
votes

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.

0
votes

Use computed for display field with formula:

@If( @IsDocBeingLoaded; Number; @ThisValue )

That way it will show value of Number field since opening.