I have a Time Sheet form with a table to report overtime worked. It wasn’t always saving start and end times for overtime worked, because I used a field rule to hide Start Time and End Time, when 'Days' to report was selected from radio button options for Days or Hours (see screenshots below).
I know if I select 'Save the data when the field is hidden' in the Field Rule, it would fix that issue, but I'm afraid employees might enter times and then change the radio button option to 'Days', hiding Start and End Times which still have values, and that would display an inaccurate count of 'Hours' Worked.
So, I'd like to just disable Start and End Times in a row when 'Days' in that row is selected. I just don't know how in JavaScript to check each row, as it's entered, for a radio button setting. Any help is much appreciated!