I am still learning Javascript so please bear with me :)
We have a form that has these fields:
Student Count: (numerical values) CSS: student
One Student: 200 CSS: one
Two Students: 250 CSS: two
Three Students: 300 CSS: three
Four or more: text, no calculation CSS: four
Total: CSS: total
I have already setup Field Rules that hide "Two Students" field if Student Count = 1 (for example) etc.
I need a javascript that will look which field is visible and then copy the default value to the Total field.
Any help is much appreciated, perhaps I am overthinking the code since I have already tried is many different ways without much success.
Thank you!