cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
989
Views
1
Helpful
1
Replies

Guest Self-Registration with Sponsor print

bgajadar
Cisco Employee
Cisco Employee

My customer is looking to provide guest access to self-register their own account. When the guest submit the request it goes to the the sponsor's email (person being visited) and the sponsor will then print out the guest credentials and hand it to the guest.

I was able to change some fields around but also want to restrict email domain as the guest could easily send the login to his/her personal email and bypass the system. So I want to limited the sending to email domain only to the Company's email domain (basically the guest must always send to Corporate email domain.

1 Accepted Solution

Accepted Solutions

Jason Kunst
Cisco Employee
Cisco Employee

The solution is to do the following:

Under portal page settings

Self-reg page

  • email address field as mandatory
  • uncheck person being visited
  • After registration submission, direct guest to "Login page with instructions"

Under Portal page customization

self-reg page

  • change email address field to 'person being visited'
  • Login page message, change to 'your credentials have been emailed to your sponsor who will print them out'

To validate the email address use the following code

This code is placed in the Optional Content 2 area of the Self-registration page when under the HTML editor (far right on the actions bar):

<script>
     setTimeout(function(){
          $.validator.addMethod("customemailvalidator", function(value, element) {
       return /^\w+@cisco\.com$/.test( value );
     }, 'Please enter a valid email.');
    
     jQuery("[name='guestUser.fieldValues.ui_email_address']").rules("add",{customemailvalidator:true});
     }, 50);
</script>

You can change orange string on your email domain. For example: "foo\.com", "bar\.gov"

View solution in original post

1 Reply 1

Jason Kunst
Cisco Employee
Cisco Employee

The solution is to do the following:

Under portal page settings

Self-reg page

  • email address field as mandatory
  • uncheck person being visited
  • After registration submission, direct guest to "Login page with instructions"

Under Portal page customization

self-reg page

  • change email address field to 'person being visited'
  • Login page message, change to 'your credentials have been emailed to your sponsor who will print them out'

To validate the email address use the following code

This code is placed in the Optional Content 2 area of the Self-registration page when under the HTML editor (far right on the actions bar):

<script>
     setTimeout(function(){
          $.validator.addMethod("customemailvalidator", function(value, element) {
       return /^\w+@cisco\.com$/.test( value );
     }, 'Please enter a valid email.');
    
     jQuery("[name='guestUser.fieldValues.ui_email_address']").rules("add",{customemailvalidator:true});
     }, 50);
</script>

You can change orange string on your email domain. For example: "foo\.com", "bar\.gov"

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: