I have a form with some fields on it:
folderNameLabel
folderTitle
folderDescription
folderCategory
Before the user will press OK, I want to check if all that fields are not =="". I wanted to make a function to receive an array as parameter and return a bool value, but I am not sure how to write it…
You could do the following:
Question: How do you tell the user which field he missed?
In your case, you could show a “You need to fill in all fields” message, but having only one optional field, that doesn’t work anymore. This is why usually you don’t do something like above.