Hey guys, I am trying to update a user’s metadata when they click on a remove or unfollow button.
I’ve already set up an add/follow button that creates a category item in memberstack’s API.
I’ve used the code provided in Mackenzie Child’s youtube series. Mark As Complete Code
I’m trying to reverse engineer his code, and so far, this is what I have.
However, when I add this to my page, I do not see the item id updating in memberstack’s metadata.
Does anyone have any solutions?
My guess would be that either the
#unfollow-category-item is not triggering that click event or the
member.updateMetaData is not getting called due to the
You could debug this by…
- right clicking on the webpage and selecting ‘inspect’
- adding a
debugger; statement just after the
#unfollow-category-item click event.
- add another
debugger; statement just before the
See which, if any of those get triggered in the inspector when you click that link.
Thanks for the reply Chris. I was able to figure it out. I ended up scratching the route I was taking after I discovered this instead. John added a bit of code to the bottom of the original snippet that lets me remove the ID entirely from memberstack’s metadata. I modified his code based on my classes and it worked first time.
Now, just need to figure out how to remove multi ref labels in the cms and airtable through zapier. No clue where to begin with that…