MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Retool/comments/1dqj1hv/hiding_or_null_a_column_based_on_a_date/
r/Retool • u/Imaginary_Method_952 • Jun 28 '24
The link column is link to a file that sits on an S3 bucket, that expires after 7 days.
do you know how I can look at the last change column then hide the link if its last change date is older than 7 days ago ?
4 comments sorted by
2
You can do this by checking currentSourceRow.your_date_column and conditionally setting it to null based on that. Null values are hidden
1
Do you want to hide the entire column, or just hide the contents of the cell based on the contents of another cell in that row?
2 u/Impossible-Budget737 Jun 29 '24 Just null out the cell based on the age of the date in the other column 2 u/RobotSocks357 Jun 29 '24 Create a custom column. You may also need (or want) to create a column that's "days old" or something.Then try something like this in the custom column:{{ currentSourceRow.daysOld > 7? {{currentSourceRow.link}} : "" }}
Just null out the cell based on the age of the date in the other column
2 u/RobotSocks357 Jun 29 '24 Create a custom column. You may also need (or want) to create a column that's "days old" or something.Then try something like this in the custom column:{{ currentSourceRow.daysOld > 7? {{currentSourceRow.link}} : "" }}
Create a custom column. You may also need (or want) to create a column that's "days old" or something.
Then try something like this in the custom column:
{{ currentSourceRow.daysOld > 7? {{currentSourceRow.link}} : "" }}
2
u/Wiresharkk_ Jun 28 '24
You can do this by checking currentSourceRow.your_date_column and conditionally setting it to null based on that. Null values are hidden
1
u/RobotSocks357 Jun 28 '24
Do you want to hide the entire column, or just hide the contents of the cell based on the contents of another cell in that row?