I have a form that needs ordinal numbers (IE: 1st 2nd 3rd) and a few other idiosyncrasies for the row labels of a table. So I used javascript to set the row labels like this:
let parent = document.getElementsByClassName(table); let label = parent[0].getElementsByClassName('col0'); for(i = start; i <= finish; i++){ label[i-(start-1)].innerHTML = i+Ordinal(i); }
Works great until the form is saved, where it reverts back to the standard labels. Still trying to understand what is happening when the form is saved. It is as if though it re-runs all the javascript although I have had trouble proving this.
Even if it is re-running the javascript though, why wouldn't the col0 elements be available to access? If the class or type changed, how do I see what is available to access in that space?
Looks like this on the form
Looks like this archived