In this example, "name" is a value from a custom field. You can change it or add more.
Remove or replace the highlighted text. "name" is the value from a custom field.
In this example, "name" under userProperties is the value from a custom field. You can change it or add more.
Remove or replace the highlighted text. "name" is the value from a custom field. "Window.location.replace" is the redirect page after a successful upload.
script>
Memberstack.onReady.then(function(member) {
var email = member["email"]
var name = member["name"]
var payload = {
email,
first_name,
last_name,
phone_number
}
var url = ""
const params = {
body: JSON.stringify(payload),
method: "POST"
}
fetch(url, params).then(function(response) {
if (response.ok) {
window.location.replace("/members/dashboard")
}
}).catch(function(err) {
console.log(err)
})
})
</script>