G'day everyone
I'm not a JavaScript programmer, so I wonder if you could point me in
the right direction or simply tell me how to do the following.
I'd like to submit a patch for the registration page of Pootle
servers. Pootle is a GPL system for translation of software (usually
volunteer work).
What happens is that when a user registers, he fills in his real name,
his preferred user name, and his e-mail address. I would like to add
two more fields, but I want those fields filled in automatically based
on what the user filled in in the previous fields... although if the
user wants to change the information before submitting the form, he
should be able to do so.
At the moment, the fields are:
Username: [_____________]
Real name: [_____________]
E-mail: [______________]
I want to have to more fields:
Display name (public): [_______________ _]
Display name (private): [_______________ _]
If the user's real name is Joe Soap, and his mail address is
jo*@soap.com, I want the public display name to be this:
Joe Soap <joe[at]soap[dot]com>
....and I want the private display name to be this:
Joe Soap <jo*@soap.com >
By filling in this information automatically, I remove the need to
explain to the user what kind of information I want in there. If the
user decides that he does not want to display his name, he can delete
it or further munge it before pressing "Submit".
Ideally, I want the information filled in automatically (either in
real time or when the user's cursor leaves the field) but a solution
that requires the user to press a button or buttons next to the fields
would also be fine.
Is this fairly simple to do? I hope so :-)
Thanks in advance
Samuel (aka leuce, voetleuce)