Automatically setting one column to blanks when another column changes

Iโ€™m a novice user so Iโ€™m not sure yet how the pieces of AppSheet fit together. But hereโ€™s what Iโ€™m trying to accomplish โ€ฆ

I have these fields:

  • [Priority] is text.
  • [List] is text.
  • [Done] is text.
  • [When] is text.
  • [Hide Until] is a date field.

Note that the above text fields get manually entered and changed EXCEPT when I want to automatically blank out those text fields when [Hide Until] > itโ€™s previous value. For example:

Before editing:

  • [Priority] = โ€œUrgentโ€
  • [List] = โ€œAAAโ€
  • [Done] = โ€œDoneโ€
  • [When] = โ€œThis Weekโ€
  • [Hide Until] = 8/3/2020

I edit [Hide Until] to be 8/4/2020 (any value > 8/3/2020)

When I save it, I want the end result to be:

  • [Priority] = โ€œโ€
  • [List] = โ€œโ€
  • [Done] = โ€œโ€
  • [When] = โ€œโ€
  • [Hide Until] = 8/4/2020

What Iโ€™ve tried:
I tried a behavior to โ€œSet these columnsโ€ to โ€œโ€
and โ€œOnly if this condition is trueโ€ โ€ฆ [Hide Until] > [_THISROW].[Hide Until]
but that doesnโ€™t seem to do anything.

Any ideas on what the proper approach should be?

0 5 221
5 REPLIES 5

Steve
Platinum 4
Platinum 4

This:

[Hide Until] > [_THISROW].[Hide Until]

should be;

TODAY() > [Hide Until]

No โ€ฆ Thanks Steve โ€ฆ but neither date is based on Todayโ€™s Date. The date on the record might be today, last week, next week, next year, last year, etc. The date Iโ€™m changing it to could be any date (in the future) thatโ€™s greater than the date on the record.

You can use below expression to RESET the values of other columns via RESET_ON_EDIT
[_THISROW_AFTER].[Hide Until] > [_THISROW_BEFORE].[Hide Until]

Thanks @LeventK โ€ฆ This worked, but I decided to make it a Workflow Rule instead. Just so that all the actions could be together in one rule for [Hide Until].

Excellent. Youโ€™re welcome.

Top Labels in this Space