Input value to a reference field

Hi Simonas, thank you so much fro your answer! I have been reading through about wixdata and hooks, and I still have along way to go!
I am still confused about certain aspects:

  • I cannot just copy and past what you wrote, right? As you said that this is a rough example. However, I don’t really know what to change in there.
  • When I paste the code on my page, it says that “memberID is undefined”.
  • Also, I’m not sure where should I write the key of the item in the collection that has the membership type.