# How can I save a value to another column but only if it has changed and is not null?

**URL:** <https://community.glideapps.com/t/how-can-i-save-a-value-to-another-column-but-only-if-it-has-changed-and-is-not-null/68933>\
**Category:** Ask for Help\
**Created:** [December 21, 2023, 8:39pm UTC](https://community.glideapps.com/t/how-can-i-save-a-value-to-another-column-but-only-if-it-has-changed-and-is-not-null/68933 "2023-12-21T20:39:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msamps](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/msamps/32/71072_2.png) [@msamps](https://community.glideapps.com/u/msamps)\
**Post date:** [December 21, 2023, 8:39pm UTC](https://community.glideapps.com/t/how-can-i-save-a-value-to-another-column-but-only-if-it-has-changed-and-is-not-null/68933/1 "2023-12-21T20:39:18Z")

</div>

Hi all. Im using get part of url to filter my collection using query parameters. The only issue is that the query parameters will disappear when I change views, but I want to save that value to the user. So how can I save the query parameter value and only change it in the user table if the value changes and is not null (in other words only if there is a new query parameter value that isnt null)?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 21, 2023, 9:12pm UTC](https://community.glideapps.com/t/how-can-i-save-a-value-to-another-column-but-only-if-it-has-changed-and-is-not-null/68933/2 "2023-12-21T21:12:21Z")

</div>

You’ll need a custom action with a Set Column action and a condition on that custom action that will only set the column value when the value does not match and is not empty.
