■ 技術情報等のお問い合わせ
記載いただいた内容をご確認の上「送信」ボタンを押して送信してください。
修正される場合は「戻る」ボタンを押してください
// Function to retrieve form data from local storage
function retrieveFormData() {
// Retrieve form data from local storage
var formData = localStorage.getItem('formData');
// Parse the retrieved data if (formData) { formData = JSON.parse(formData); // Populate form fields with retrieved data document.getElementById('name').value = formData.name ; document.getElementById('name-text').innerText = formData.name ; document.getElementById('slug').value = formData.slug ; document.getElementById('slug-text').innerText = formData.slug ; document.getElementById('school').value = formData.school ; document.getElementById('school-text').innerText = formData.school ; document.getElementById('email').value = formData.email ; document.getElementById('email-text').innerText = formData.email ; document.getElementById('phone').value = formData.phone; document.getElementById('phone-text').innerText = formData.phone; document.getElementById('message').value = formData.message ; document.getElementById('message-text').innerText = formData.message ; // Clear local storage localStorage.removeItem('formData'); } }
// Call the function to retrieve form data when the page loads
window.addEventListener('load', retrieveFormData);