Skip to main content

KSTVET-GIZ Dual TVET Development VLE

Log in

Lost password?

Is this your first time here?

For full access to this site, you first need to create an account.
Create new account

Some courses may allow guest access

You are not logged in.
Data retention summary
Get the mobile app
(function() { 'use strict'; // wFunction to add the hint to the Contact Phone field function addPhoneHint() { // Find the Contact Phone input field by its ID const contactPhoneInput = document.getElementById('id_profile_field_contact'); // Check if the element exists if (contactPhoneInput) { // Set the placeholder attribute to show the hint contactPhoneInput.placeholder = '+2547XXXXXXXXX'; // Optional: Add a small note below the field for better visibility // Check if a hint note already exists to avoid duplicates let hintNote = document.getElementById('contact-phone-hint'); if (!hintNote) { hintNote = document.createElement('div'); hintNote.id = 'contact-phone-hint'; hintNote.style.fontSize = '12px'; hintNote.style.color = '#6c757d'; hintNote.style.marginTop = '4px'; hintNote.innerText = 'Format: +2547XXXXXXXXX (e.g., +254712345678)'; // Insert the hint after the input field contactPhoneInput.parentNode.insertBefore(hintNote, contactPhoneInput.nextSibling); } } else { // If the element is not found yet, retry after a short delay (e.g., 500ms) // This handles cases where the DOM might not be fully ready. setTimeout(addPhoneHint, 500); } } // Wait for the DOM to be fully loaded before trying to add the hint if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', addPhoneHint); } else { // DOM is already loaded, execute immediately addPhoneHint(); } })();
Powered by Moodle