10-16-2019 08:54 AM - last edited on 10-24-2019 12:31 AM by Jason Kunst
On the Create Account Page the only option I want is to create Random accounts. So need the page to have only Random button, Number of accounts field and create button.
From the discussion board, I have been able to remove most except the Username prefix box, Guest type, Access Information,duration and date and time fields
Can you please help with the following
Script to hide or remove Username prefix box
Script to hide or remove Guest type and the Guest type selection field
Script to hide or remove Access Information and the tick box
Script to hide or remove all Duration, date and time fields
Solved! Go to Solution.
10-18-2019 01:11 AM
10-18-2019 01:11 AM
10-18-2019 01:29 AM
Thanks Jason,
I want only the Create Accounts tab, the Number of Accounts field and the Create Button on the page
I used some of your previous post/script to remove some items, but I need additional fields to be hidden as well.
10-18-2019 04:43 PM
10-21-2019 01:16 AM
I don't want to hide the portal, I just want to hide fields in the portal.
The script you provided in your previous posts hides some fields but not all the field that I want to hide.
I need script to hide the Guest type, script to hide the access information(time and date fields)
10-21-2019 01:54 AM - edited 10-24-2019 12:27 AM
Please try the below script in Sponsor Portal customization à Sponsor Portal Settings à Instructional Text.
This script will hide the elements only for random accounts and can be able to create the accounts with default guest type, date, time and duration.
Using this script we are just hiding the elements and those hidden elements can be made visible anytime by the user. If this is fine we can use the below script.
<script> $(document).on('pageshow', function() { $('#createGuestsTabControls').on("click", function(){ if($('a[data-tab-class="createRandom"]').hasClass('ui-btn-active')){ $('#guest-type-selection').hide(); $('#prefix').parent().parent().hide(); $('div[key="groupTag"]').hide(); $('div[key="guestLanguage"]').hide(); document.getElementById("accessTimeContent").style.visibility = "hidden"; $($('#ui_create_accounts_access_info_progress_wizard')[0].nextSibling).hide(); $('#createButton').parent().insertAfter($('.two-button-layout')[0]); } else { $('#guest-type-selection').show(); $('#prefix').parent().parent().show(); $('div[key="groupTag"]').show(); $('div[key="guestLanguage"]').show(); document.getElementById("accessTimeContent").style.visibility = "visible"; $($('#ui_create_accounts_access_info_progress_wizard')[0].nextSibling).show(); $('#createButton').parent().insertAfter($('#accessTimeContent')); } }); }); </script>
10-21-2019 09:22 AM
Hi Jason,
Thanks the script worked to remove the additional fields that I wanted, I used it in addition to the scripts I had picked up from your previous post on this topic.
Please see attached a picture of the portal - This is what I wanted, so thanks very much again.
One last cosmetic request, can you move the create button in the attached to the left so it sits below the number of accounts
Thanks
Kola
08-09-2022 11:07 PM
Hi
Do you you have this script also for know accounts?
Thanks.
02-24-2020 12:56 AM
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