Using functions in place of scripts
I have a form with many fields and I need to check an alarm field for "yes" and then populate a note field with a messages such as "Active Alarm Alert". It is straight forward doing this using scripts but I do not want to write a unique script for every alarm field as there are over a hundred of them.
My question is can a generic function be used instead that identifies a "yes" in the alarm fields and then fills in the appropriate note field with a message such as "Active Alarm Alert. So far I have not been able to create a generic function that can identify the associated note field.
Any suggestions on a solution or more elegant way to approach this problem would be much appreciated.Otherwise, I'm stuck writing a whole bunch of scripts.