MemberStack.onReady.then(function(member) {
if (member) {
// Retrieve the custom field value
const step1Value = member["step1"];
// Display the value on the front end
const statusEl = document.getElementById('step1-status');
if (statusEl) {
statusEl.innerText = step1Value ? `Step 1 Completed: ${step1Value}` : "Step 1 not completed yet.";
}
}
});