Forums

value in form question?

cosmicfantasia 28 Feb, 2011
Hi,

I building a Joomla registration form @

http://massmosaic.com/joomla/

The joomla username will later become part of the url for users. in this case massmosaic.com/username

I would like to add the massmosaic.com/ as the value and am doing so like this:

<input id="Field107" name="Field107" type="text" class="field text medium" value="massmosaic.com/" maxlength="255" tabindex="3" onkeyup="handleInput(this); " onchange="handleInput(this);" />

My question is, is it possible to have value="massmosaic.com/" and allow you to type after wards like it is, but not to pass massmosaic.com/username as the user name. Instead we want to pass just username
GreyHead 28 Feb, 2011
Hi cosmicfantasia ,

I think I would handle this in one of two ways:

a) Show the domain prefix as text in front of the input box; or

b) Leave the prefix in the input box but strip it out of the result in the OnSubmit Before Email box after the form is submitted. (Could also be done in JavaScript onSubmit)

Bob

PS What does handleInput() do here. It doesn't seem to be defined on the page?
cosmicfantasia 28 Feb, 2011
Thank you for a very quick response. I thought about it some more and I can just add the domain name using css and not have to pass the domain as a user name. Again, thanks for such a quick response...🙂
This topic is locked and no more replies can be posted.