cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3396
Views
5
Helpful
7
Replies

Reorder Guest Fields

bgajadar
Cisco Employee
Cisco Employee

Do we have a script to re-oder Guest fields, such as move "person being visited"?

1 Accepted Solution

Accepted Solutions

Jason Kunst
Cisco Employee
Cisco Employee

Here is an example we had on how to move elements.

This can be used for Japanese use case where the last name should come before the first name. This is put in the instructional text field of the Create Accounts for Known Guests under a sponsor portal page.

​<script>
jQuery(function(){
  setTimeout(function(){
  var first_name = jQuery('.firstName').parents().eq(1);
  var last_name = jQuery('.lastName').parents().eq(1);

  first_name.remove();
  last_name.after(first_name);  }, 1000);});

</script>

View solution in original post

7 Replies 7

Jason Kunst
Cisco Employee
Cisco Employee

Here is an example we had on how to move elements.

This can be used for Japanese use case where the last name should come before the first name. This is put in the instructional text field of the Create Accounts for Known Guests under a sponsor portal page.

​<script>
jQuery(function(){
  setTimeout(function(){
  var first_name = jQuery('.firstName').parents().eq(1);
  var last_name = jQuery('.lastName').parents().eq(1);

  first_name.remove();
  last_name.after(first_name);  }, 1000);});

</script>

Jason Kunst
Cisco Employee
Cisco Employee

What portal page did you want this for? Thinking maybe self-reg page?

Correct, self-registration.

BTW, what are the txt field names for the fields that I need to reference. Is there a reference where I could find the variable names?

Thanks

You can see the fields under the portal language files (export them at the top right of the page)

Or if you use chrome developer tools to decode the elements

I am working on getting this to work with self-reg, what are the fields you want to reorder?

bgajadar
Cisco Employee
Cisco Employee

Sorry for my delayed reply. I am looking to move "person being visited" to the last. Maybe more fields are needed but will wait on the customer.

Thank Jason, will let you know if I need further changes.

Thanks

Benjamin Gajadar

Network Consulting Engineer

Cisco Security Solutions - Integration