Untitled

 avatar
unknown
html
2 years ago
2.1 kB
7
Indexable
<html>
<head>
    <script>
        function getRefIdFromUrl() {
            const urlParams = new URLSearchParams(window.location.search);
            return urlParams.get('ref_id');
        }

        function fillReferralId() {
            const refId = getRefIdFromUrl();
            if (refId) {
                document.getElementById('00N0C00000LSBO4').value = refId;
            }
        }

        window.onload = fillReferralId;
    </script>
</head>
<body>
    <form action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&orgId=00D0Y000000a7Ox" method="POST">
        <input type=hidden name="oid" value="00D0Y000000a7Ox">
        <input type=hidden name="retURL" value="https://www.guidion.com/">
        
        <label for="first_name">First Name</label>
        <input id="first_name" maxlength="40" name="first_name" size="20" type="text" /><br>

        <label for="last_name">Last Name</label>
        <input id="last_name" maxlength="80" name="last_name" size="20" type="text" /><br>

        <label for="email">Email</label>
        <input id="email" maxlength="80" name="email" size="20" type="text" /><br>

        <label for="phone">Phone</label>
        <input id="phone" maxlength="40" name="phone" size="20" type="text" /><br>

        <label for="city">City</label>
        <input id="city" maxlength="40" name="city" size="20" type="text" /><br>

        <label for="company">Company</label>
        <input id="company" maxlength="40" name="company" size="20" type="text" /><br>

        <label for="description">Description</label>
        <textarea name="description"></textarea><br>

        <label for="referral_id" style="display:none;">Referral ID:</label>
        <input id="00N0C00000LSBO4" maxlength="18" name="00N0C00000LSBO4" size="20" type="text" style="display: none;" /><br>

        <input type=hidden name="recordType" id="recordType" value="0121v000000Fs65AAC"><br>
        <input id="lead_source" name="lead_source" type="hidden" value="Website" /><br>

        <input type="submit" name="submit">
    </form>
</body>
</html>
Editor is loading...
Leave a Comment