Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Confirm Email AddressConfirm Email Address
Previous
 
Next
New Post
2/17/2014 12:40 PM
 

We get users typing a duff email address on registration.

I had an idea - I created a new Profile field called 'ConfirmEmailAddress'

I added this to the Registration form.

I added a Validation Expression of :

[User:Email]

Thinking that maybe tokens could be used in the Validation Expression for a field.

Doesn't seem to work though!

Any ideas how to achieve this?

Cheers

 
New Post
2/17/2014 2:57 PM
 
I think it's not going to be very easy, you would need to reference 1 profile field from the other. I think there are 2 ways you could do this:
* create a second email field, and then create custom client side validation (with jquery) that you just inject in the page that has your registration form. Using jquery, you can compare values of 2 input fields, and inform the user the fields are not equal

* create a new email field type (requires server side programming), and incorporate the email validation there.

Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
2/17/2014 3:25 PM
 

Hello Erik,

could you elaborate a little on your  second idea.

I am ok with c# but wonder where to start regards the custom type.

Cheers

 
New Post
2/18/2014 3:40 AM
 
I would create a custom Profile Property Type with 2 text boxes, which compares values against each other and validation regex, an stores just a single value in the database.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/18/2014 4:11 AM
 
Sebastian Leupold wrote:
I would create a custom profile property with 2 text boxes, which compares values against each other and validation regex, an stores just a single value in the database.

Thanks,

I have learnt how to add a custom profile property, but how would I compare [user:email] and the new property [profile:ConfirmEmail] ?

Would I need to modify login.cs / login.aspx ..? or can it be done without doing t his.

Cheers

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Confirm Email AddressConfirm Email Address


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out