I am creating an application in Livecycle that has sections conditionally switching between 'hidden' and 'visible' as well as a large number of radio buttons and textfields that need to be filled out. I am currently trying to write a script for the preSave event that will check if the fields are empty and visible when the applicant tries to save the document. If any fields are visible and empty a dialog box will list the problem and the empty fields will be highlighted in red. Can anyone please help me with this? I've looked through the forums and have found answers to similar problems but when I try them out them, they do not work. Any suggestions are 110% appreciated!
I really appreciate you taking the time to respond and compose such a code! However, I am new to Livecycle and fairly new to coding, so I don't fully understand functions. I was hoping there might be a simpler method that someone with little coding experience might be able to grasp. I'll continue to read through your code to try and understand but to give you an idea of how basic my skills are, here's the code I've been working with: