Hello Everyone, I can get the member . _id working except for the “customized field” to show up.
Note: this page is for login / authenticated members only.
Site Members Dataset
Customized Field Name = Chapter Name
Customized Field Key = custom_chapter
currentMember.getMember()
.then((member) => {
const thisID = member._id;
$w('#UID').value = thisID; // <-- this is working
const custom_chapter = member.contactDetails.customFields.custom_chapter;
$w('#chapterName').value = custom_chapter; <-- this is not working
return member;
})
.catch((error) => {
console.error(error);
});
Documentation:
Promise<Member>
-> contactDetails
-> customFields
Object
Set of key-value pairs. Custom fields, where each key is the field key, and each value is the field's value for the member
Thank you for your help.