Larson Texts notes. Lots of Pipedrive Template changes. Started my GS Script for Timeline events.
This commit is contained in:
@ -91,23 +91,24 @@
|
||||
}
|
||||
{% endif %}
|
||||
})
|
||||
|
||||
form.addEventListener('submit', (event) => {
|
||||
event.preventDefault();
|
||||
const firstName = document.getElementById('first-name').value;
|
||||
const lastName = document.getElementById('last-name').value;
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', 'https://www.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/pipedrive-sso-setup-first-and-last-name');
|
||||
xhr.setRequestHeader('Content-Type', 'application/json');
|
||||
xhr.send(JSON.stringify({
|
||||
"first-name": firstName,
|
||||
"last-name": lastName,
|
||||
"user-uuid": "{{ current_person.id }}"
|
||||
}));
|
||||
xhr.addEventListener('load', () => {
|
||||
window.sessionStorage.setItem('nameSetup', firstName);
|
||||
window.location.replace('/app');
|
||||
{% if current_school.properties.sandbox == false %}
|
||||
form.addEventListener('submit', (event) => {
|
||||
event.preventDefault();
|
||||
const firstName = document.getElementById('first-name').value;
|
||||
const lastName = document.getElementById('last-name').value;
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', 'https://www.workato.com/webhooks/rest/bd1a1eb7-7e79-4208-a1db-8e9c7440bcc9/pipedrive-sso-setup-first-and-last-name');
|
||||
xhr.setRequestHeader('Content-Type', 'application/json');
|
||||
xhr.send(JSON.stringify({
|
||||
"first-name": firstName,
|
||||
"last-name": lastName,
|
||||
"user-uuid": "{{ current_person.id }}"
|
||||
}));
|
||||
xhr.addEventListener('load', () => {
|
||||
window.sessionStorage.setItem('nameSetup', firstName);
|
||||
window.location.replace('/app');
|
||||
});
|
||||
});
|
||||
});
|
||||
{% endif %}
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user