Hello,
I am wondering if anyone could help me solve this issue:
I am trying to have a calculation on the client side figure out how much time is between now (current time) and a due date set on the page.
1: I am grabbing the date from the dueDate field on the page and setting it to a variable
2: Getting the current date and time and setting that to a variable
3 & 4: Initializing int (Number) variables via meta programming standards (not critical step)
5: set a while loop, checking if boolean/checkbox is checked off.
6: Subtracting values to find the difference with Math.abs();
7: defining the variable even further with Math.ceil();
8: Setting the value to a field on the page, with "this.set"
This was working before I added the while() condition, am I going wrong somewhere?
I have already been trying to figure this out for 3 hours so hopefully someone can see my mistake and teach me something new, haha.
Thanks, Community!