top of page
Lanre Olayiwola

Lanre Olayiwola

Create Custom Electronic Signature Form using Velo

Jan 1, 2024
1 min read

Create an electronic signature on your website using Wix Code a.k.a. Velo using a custom form. No 3rd party plugins or add ons needed. Save time and money to simply create and capture an electronic signature!


Signature


// API Reference: https://www.wix.com/velo/reference/api-overview/introduction
// “Hello, World!” Example: https://learn-code.wix.com/en/article/1-hello-world

import wixData from 'wix-data';

$w.onReady(function () {

});

function validation() {
    let validationMessage = "";
    if ($w('#input1').valid && $w("#input2").valid && $w('#input3').valid && $w('#input4').valid && $w('#signatureInput1').valid) {
        saveEmployeeInfo();
    } else {
        if (!$w('#input1').valid) {
            validationMessage += "Please enter in a first name.\n";
        }
        if (!$w('#input2').valid) {
            validationMessage += "Please enter in a last name.\n";
        }
        if (!$w('#input3').valid) {
            validationMessage += "Please enter in an email.\n";
        }
        if (!$w('#input4').valid) {
            validationMessage += "Please enter in an address.\n";
        }
        if (!$w('#signatureInput1').valid) {
            validationMessage += "Please sign your name.\n";
        }
        $w('#text81').text = validationMessage;
        $w('#text81').show().then(() => {
            $w('#input1, #input2, #input3, #input4, #signatureInput1').updateValidityIndication();
        })
    }
}

function saveEmployeeInfo() {
    $w('#button1').disable();

    let theSignature = $w('#signatureInput1').value;

    let toInsert = {
        "firstName": $w('#input1').value,
        "lastName": $w('#input2').value,
        "email": $w('#input3').value,
        "address": $w('#input4').value,
        "signature": theSignature
    }

    wixData.insert("employeeform", toInsert)
        .then((results) => {
            let item = results;
            console.log(item);
            $w('#text81').text = "Your signature and information was sent in. Thank you! We will be with you shortly.";
            $w('#text81').show().then(() => {
                setTimeout(() => {
                    $w('#text81').hide();
                }, 5000);
            }).catch((err) => {
                let errorMsg = err;
            })
        })
}

function clearAllElements(){
    $w('#input1, #input2, #input3, #input4, #signatureInput1').value = null;
    $w('#input1, #input2, #input3, #input4, #signatureInput1').resetValidityIndication();
}

export function button2_click(event){
    validation();
}

4 Comments


XX88 mình thấy lướt mạng dạo này hay gặp nên tiện bấm vào coi thử cho biết thôi. Không phải vào để chơi hay đọc kỹ gì, chủ yếu xem họ làm trang ra sao. Vừa mở lên thấy giao diện khá sáng và dễ nhìn, kiểu chia khối nội dung gọn nên kéo xuống không bị rối mắt. Có cái tiêu đề nhấn mạnh kiểu “link vào mới nhất tháng 05 2026 không bị chặn” đặt ngay trên đầu trang nên nhìn phát là nhận ra họ muốn người xem chú ý chỗ đó. Mình cũng thích mấy heading để rõ ràng, nhìn qua là biết đang ở phần nào mà không cần đọc nhiều. Nói chung cảm giác…

Like

99jili has been getting mentioned in my group chats, so I finally poked around out of curiosity. I wasn’t even trying to play anything, just wanted to see if the site felt sketchy or not. What stood out first is how it’s set up more like an entertainment “hub” than a random one-off page—stuff is grouped into big, readable chunks so you can skim without losing the thread. I also noticed they keep bringing up security and fairness transparent data in the way the info is written, which at least makes it feel like they’re trying to be upfront. Nothing felt cluttered on my phone, and jumping between pages didn’t lag or dump me into weird popups. The headings and…

Like

F168 mình mới ghé thử vì thấy mấy ông bạn nói nhiều, chủ yếu tò mò coi dùng có mượt không. Vào cái là thấy giao diện khá sạch, nhìn hiện đại nhưng không bị “ngợp”, kiểu các mục chia ra rõ ràng nên lướt một hồi vẫn biết mình đang ở phần nào. Mình để ý cái vụ một tài khoản dùng chung cho cả hệ thống, nghe đơn giản vậy mà tiện thật, khỏi phải đăng nhập đi đăng nhập lại. Bấm qua vài chỗ thì phản hồi nhanh, không thấy kiểu đứng hình hay load mãi như mấy trang nặng. Nói chung cảm giác họ làm trang theo hướng gọn gàng, dễ hiểu, nhất là mấy tiêu…

Like

Mình vừa có thời gian rảnh để lướt mạng và tình cờ thấy đề cập đến 79KING trong một cuộc trò chuyện. Hôm qua, mình quyết định vào xem thử để tìm hiểu thêm về nền tảng này. Mình khá ấn tượng với giao diện, nó khá bắt mắt và dễ sử dụng. Mình cũng để ý là tốc độ tải trang nhanh hơn so với một số trang khác mà mình thường hay truy cập. Tuy nhiên, có lẽ cần thêm thời gian để kiểm tra kỹ hơn về các tính năng của nó. Mình đã bookmark lại để quay lại xem kỹ hơn sau.

Like
bottom of page