We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Invitation Form Element | Forum

Michiel
Michiel Apr 3 '13
Hello everybody,


I don't understand what a InvitationFormElement is or what it is used for. There's not much in the comments, and searching on Google and this forum, doesn't return anything.


Anyone can help me out?


Thanks, Michiel

Michael I.
Michael I. Apr 3 '13
InvitationFormElement is an abstract class that is not used anywhere, it just contains generic behavior of other form elements.
Michiel
Michiel Apr 3 '13
Well, I should have posed my question differently. But, I've found out what the question and the answer should be.


Q: What does the setInvitation method do?


A: It gives an indication of what your users could fill in the text field (or other form elements that accept text, I suppose). The text gets removed as soon as the field has keyboard focus.


For example, if you require a zip code, you could help your users by filling in an example: "E.g. xxx-xxxxx" or you could give some instructions: "Please fill the complete name of your dog.")