Password confirmation with forms ?

2 views
Skip to first unread message

MiggyMan

unread,
Sep 30, 2008, 10:32:17 AM9/30/08
to inputex
How!

I'm using the forms functionality to define all of my forms in a
separate JavaScript file, how do i go about setting up password field
confirmation while doing this ?

mingfai

unread,
Sep 30, 2008, 1:36:42 PM9/30/08
to inputex
what exactly is the problem? as long as you include both fields in
external js, you could call the setConfirmationField method to set
confirmation field.

see http://javascript.neyric.com/inputex/examples/password_field.html

unomi

unread,
Oct 1, 2008, 1:01:55 AM10/1/08
to inputex
It would be nice to have a password field option that would do that
for you automagically, ie:
{
"type": "password"
, "inputParams" : { "name" : "candidate.Password","label":
"prompt_Password"
, "required": true
** , "showConfirmPassword" :true
, "showMsg": true, "strengthIndicator": true , "capsLockWarning":
true }}


On Oct 1, 12:36 am, mingfai <mingfai...@gmail.com> wrote:
> what exactly is the problem? as long as you include both fields in
> external js, you could call the setConfirmationField method to set
> confirmation field.
>
> seehttp://javascript.neyric.com/inputex/examples/password_field.html

neyric

unread,
Oct 1, 2008, 3:36:16 AM10/1/08
to inputex
created a new Issue in the bug tracker:

http://code.google.com/p/inputex/issues/detail?id=57

MiggyMan

unread,
Oct 1, 2008, 5:27:33 AM10/1/08
to inputex
The problem is that i can't access the individual fields to call
secConformationField on.

On Sep 30, 6:36 pm, mingfai <mingfai...@gmail.com> wrote:
> what exactly is the problem? as long as you include both fields in
> external js, you could call the setConfirmationField method to set
> confirmation field.
>
> seehttp://javascript.neyric.com/inputex/examples/password_field.html

Eric Abouaf

unread,
Oct 1, 2008, 5:32:07 AM10/1/08
to inp...@googlegroups.com
If you give it a "name" attribute, you can use the Group.getFieldByName method

ex:

var pass1 = myGrpInstance.getFieldByName("password");
var pass2 = myGrpInstance.getFieldByName("confirmation")
pass2.setConfirmationField(pass1);

It is not ideal anyway...
I added a ticket to the bug tracking system ;  you can "star" it to get informed when this is solved
http://code.google.com/p/inputex/issues/detail?id=57
Reply all
Reply to author
Forward
0 new messages