Using field name and display field name is code
I have several form fields that require the same user validation in the On User Input sections. I have written a function to perform the validation and alert the user with a message. I want to give the display field name as a parameter to the function to use in the message. Is there some way to know what the display field name of a given field is in script? Otherwise, I will have to hard code the display field name in the code, which is pretty clunky.