07-11-2016 07:40 AM
Do we have a script to re-oder Guest fields, such as move "person being visited"?
Solved! Go to Solution.
07-11-2016 08:15 AM
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>
07-11-2016 08:15 AM
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>
07-11-2016 09:52 AM
What portal page did you want this for? Thinking maybe self-reg page?
07-11-2016 11:17 AM
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
07-11-2016 11:29 AM
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?
07-12-2016 09:06 PM
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.
07-14-2016 07:33 AM
07-15-2016 09:50 AM
Thank Jason, will let you know if I need further changes.
Thanks
Benjamin Gajadar
Network Consulting Engineer
Cisco Security Solutions - Integration
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide