On one of the site's I've been working on for a client I wanted to add the word '(Required)' to the label of any element that was set to required. I assumed that because the function that sets this requirement is setRequired that getRequired would be the function to get it's value. I was surprised to find this error message:

[code]
Method getRequired does not exist
[/code]

It turns out that the function I was looking for was isRequired(). I'm sure other people will have the same problem so hopefully this helps.