Forum Discussion
MCostaStienstra
3 years agoStaff
Hi, Bharti.
Thank you for reaching out!
There are a few different ways to accomplish what you're looking to do (limit the times the submit button is clicked, so it doesn't add the calculation to the results each time). Here are two options:
- Set the variables (HoursMonday, HoursTuesday, etc.) to 0 after the submit button is clicked.
- Set submit to disabled once it's clicked.
I'd also create a Clear button in both those scenarios to clear the total (set WeeklyHours to 0), and on the second option, re-enable the button.
I hope this helps!