mrdev
going with the flow Posts:30
|
02-06-2010 02:38 AM |
|
Hello support team,
Can you please let me know how to create password field using Dynamic Forms?
Sorry, I could not find it among answered questions and betasprings demo site has a sample but doesn't seem to be different from a normal text box.
Thanks,
Dev |
|
|
|
|
David To
river guide Posts:2719
|
02-08-2010 06:35 AM |
|
Hi, is the "Password" field separate from their usual DNN login account? Normally, you would use our sister product Dynamic Registration to use the "Password" and "Confirm Password" textbox fields and have them tied to DNN Core integration. But since you are doing this using Dynamic Forms, is this separate from their DNN login? I believe you just use textbox entry fields the same usual way as DR. Are you trying to use some other type of field? -- David |
|
|
|
|
mrdev
going with the flow Posts:30
|
02-08-2010 08:02 PM |
|
Hi David,
Yes, password field is separate from DNN login account.Is it possible to create password field using Dynamic forms' textbox or other fields ?
Thanks,
Dev
|
|
|
|
|
David To
river guide Posts:2719
|
02-09-2010 06:50 AM |
|
Yes, just can use regular textbox fields for "Password" and "Confirm Password" but don't tie them to DNN core fields. Under Question Validation, use the "Compare Validator" option to compare what is entered in "Confirm Password" to "Password" and this would resemble what you are trying to achieve. However, question is, will this password be saved in a separate SQL table on form submit or each time a user enters the form, they get a different password to enter? -- David |
|
|
|
|
mrdev
going with the flow Posts:30
|
02-09-2010 07:04 AM |
|
Hi David,
Thanks for the response. But firstly, we want password to display "*" as characters are entered. Can you please let me know how this is done?
Thanks,
Dev |
|
|
|
|
David To
river guide Posts:2719
|
|
mrdev
going with the flow Posts:30
|
02-09-2010 07:50 AM |
|
Hi David,
Thanks a lot!! That did it.
Thanks,
Dev
|
|
|
|
|
mrdev
going with the flow Posts:30
|
02-10-2010 07:18 AM |
|
Hi David,
I have another query here. Is it possible to pass password field value(created using html/text option) in session or query string?
Thanks in advance,
Dev |
|
|
|
|
David To
river guide Posts:2719
|
02-10-2010 07:24 AM |
|
Yes, it should work although I never tried it out myself. After all, they are just HTML fields. Since your form is already built, simply go in "Advanced Field Options" and choose "pass as querystring variable" and have a page redirection some where and if you see your field/value being passed along with the URL, then it's working. Although the password value will be shown (not with ***).-- David |
|
|
|
|
mrdev
going with the flow Posts:30
|
02-10-2010 07:30 AM |
|
Hi David,
This doesn't seem to happen. Query string is not displaying any value. Is there any resolution for this?
Thanks,
Dev
|
|
|
|
|
David To
river guide Posts:2719
|
02-10-2010 08:36 AM |
|
Hi, I just tried a basic test and it's not picking up the value for me either. Now that I look deeper into the issue, it seems a text/html field is for you to type in something so it really contains no value to be passed. Basically, what we attempted to do was to include html code to simulate a password field and therefore, it's not picking up the correct token value when passed as querystring variable. Let me dwell into this deeper and get back with you. -- David |
|
|
|
|
mrdev
going with the flow Posts:30
|
02-15-2010 09:12 PM |
|
Hi David,
Is there any update on this?
Thanks,
Dev
|
|
|
|
|
David To
river guide Posts:2719
|
02-16-2010 06:47 AM |
|
HI, I really don't know of an easy way to do this other including client side javascript. For example, you can use the browser to view source, find out the element ID of the password textbox field that you coded in the text/html and in the client side event of the text/html field, set it to equal another hidden field that you will use to represent the password entry. That's probably the only way to retrieve the password field because essentially, we are using a text/html field to hard-code an HTML password field which the text/html field will not recognize. -- DAvid |
|
|
|
|
mrdev
going with the flow Posts:30
|
05-22-2010 05:31 AM |
|
Hi David,
Should this be done by prefixing with onkeypress events and setting values in clientside javascript?but keypress/down seems to work for textboxes- not sure about html controls
can you please elaborate more on your solution?
Thanks,
Dev |
|
|
|
|
mrdev
going with the flow Posts:30
|
05-23-2010 08:53 PM |
|
Hi David/Support team,
I think we found the solution.
If we set shortfieldname as DSPASSWORD- input chars are masked and values can be passed as querystring.
Regards,
Dev
|
|
|
|
|
David To
river guide Posts:2719
|
05-24-2010 03:02 PM |
|
HI, glad you found it without me. thanks. -- David To |
|
|
|
|
mrdev
going with the flow Posts:30
|
06-17-2010 01:29 AM |
|
Hi David,
We have a catch here. We want a confirm password field as well. I cannot have 2 fields with DSPASSWORD as shortfieldname. Can you please let us know your view on this?
Thanks,
Dev
|
|
|
|
|
Chad Nash Posts:5260
|
06-17-2010 09:25 AM |
|
Hi guys... Unfortunately I just checked the code and it looks like there are no other options except for making your short field name DSPASSWORD. We should probably change this to be 'Contains DSPASSWORD' but currently its not setup to do this. Each field (outside of the short field name) is still a unique field ID. So I am not really sure what problems you would run into having the same short field name for this specific example... Especially if you added a compare validator because then the value should be the same. -Chad |
|
|
|
|
Adam
river guide Posts:116
|
06-23-2010 01:50 AM |
|
Hi Chad, I've just run into this same problem. If I have password field named DSPASSWORD and the confirm password field called DSPASSWORD (shortnames) the compare validation doesn't work, I guess it must be using the shotname here? please can you confirm.
|
|
|
|
|
Adam
river guide Posts:116
|
06-23-2010 01:58 AM |
|
Hi again, the rabbit hole is going deeper.... I've done some more testing and it seems the compare validator isn't working at all in the following version..
Ver:3.30.61.0 / 5.4.2
I added a new dynamic form with two text fields 'Field1' & 'Field2' switched on the validator to compare Field2 with Field1 and no validation error occured???? |
|
|
|
|
Adam
river guide Posts:116
|
06-23-2010 02:05 AM |
|
Ahhh...... I now understand what its doing....
Point 1: if your password confirm field is blank (no value entered) then the compare validation doesn't produce an error. To resolve this you need to make the confirm field a required field.
Point 2: If you don't have any completion events then the compare validator doesn't produce error. To resolve, create a completion event.
Thanks |
|
|
|
|
Chad Nash Posts:5260
|
06-23-2010 07:26 AM |
|
Hi Adam - Did you make the field required and / or enter data into both of them. ASP.NET Compare Validator (for some reason) doesn't compare if a field is empty, only if there is data in the field. -Chad |
|
|
|
|
Chad Nash Posts:5260
|
06-23-2010 07:36 AM |
|
Hmm... The compare validation really should be separate from the completion event but yes you are correct regarding the required field validator. -Chad |
|
|
|
|