I have a date input that is blank and hidden. Next to it is a standard checkbox (unchecked/no by default). When someone selects that checkbox, I have it unhide the date input and set it to the current date.
The problem I am having, is that date field updates every day to show the current date. I want it to stick with the date the checkbox was selected. For example, if I select the checkbox on 6/15/21, it inputs the date correctly as 6/15/21. The problem is that the date updates each and every day to show the current date.
I’m not sure what to do to have it stick with the date the checkbox was checked. Any ideas? Seems simple, but the solution just isn’t coming to me.