How to Pass a Field Value from a Member Database Record?

Hello,

I’ve been following the instructions in the Wix Code article “How to Build Your Own Members Area Using Code”.

I need to pass the value of a text field in the Members database from the record for the logged in member to a variable to be referenced by an embedded third-party application.

Please let me know the command I would need to use to pull the field from the members record and assign it to a variable.

Thanks!

Hi,

First, you show get the current user id ( logged in user ), then you can query the members dataset with that id and get the field you need. For more information about wix-users, please CHECK THIS

Hope this helps!
Best,

Mustafa