1. Home
  2. Knowledge Base
  3. FAQs
  4. How To?
  5. Can Employees connect to the WiFi without getting Campaigns?

Can Employees connect to the WiFi without getting Campaigns?

Question: How can I allow my employees to connect to the Guest WiFi while preventing their contact information from populating into Guest Profile data.

Answer: If your splash page uses standard login methods (Email/Facebook/Twitter/etc.) you can enable and use the Access Code login method to allow employees to connect using a code instead of completing one of the other login methods. Please contact support if you do not see the Access Code login method on your Edit Hotspot page.

If your Splash page utilizes required form field questions and the Social Connect button you will need to copy the supplied code below and using the splash page builder, paste it into the last Content Block of your New Guest Splash Page using the HTML Editor option(Blue <> button). The supplied code modifies the behavior of the splash page to allow your Employees to use the Sign in with Access Code button without entering the required fields, but ensures all form field questions are required when using the social connect button.

<script>
document.addEventListener("DOMContentLoaded", function() {
// Get the form, the "Sign in with Access Code" button, and the rendered form container
var form = document.getElementById("custom-data");
var accessCodeBtn = document.querySelector(".swp-social-access-code");
var renderedForm = document.querySelector(".fb-rendered-form");
// Add a click event listener to the "Sign in with Access Code" button
accessCodeBtn.addEventListener("click", function(event) {
// Prevent the default button behavior
event.preventDefault();
// Clear answers to all questions
clearFormAnswers(renderedForm);
// Mark all questions as not required
var questions = form.querySelectorAll('input, textarea, select');
questions.forEach(function(question) {
question.removeAttribute("required");
});
});
// Function to clear answers to all questions in the rendered form
function clearFormAnswers(formContainer) {
var formElements = formContainer.querySelectorAll('input, textarea, select');
formElements.forEach(function(element) {
if (element.type === 'checkbox' || element.type === 'radio') {
element.checked = false;
} else {
element.value = '';
}
});
}
});
</script>
<script>
document.addEventListener("DOMContentLoaded", function() {
// Get the form and the Social Connect button
var form = document.getElementById("custom-data");
var connectBtn = document.querySelector(".swp-connect-o");
// Add a click event listener to the Social Connect button
connectBtn.addEventListener("click", function(event) {
// Prevent the default button behavior
event.preventDefault();
// Mark all questions as required
var questions = form.querySelectorAll('input, textarea, select');
questions.forEach(function(question) {
question.setAttribute("required", "required");
});
});
});
</script>
Updated on December 18, 2023

Was this article helpful?

Related Articles