Link User data type to another data type

Hi. I want to know whether there is a way to link a USER to another data type.

Like I want to have a data type e.g. ANSWERS (data type) and link it to a USER (data type).

I want to do things like.

  • If current users ANSWER 251 is “blue” then (do this or that).
  • If current users ANSWER 251 is not “blue” then (do this or that).

I built a QUIZ APP with over 200+ questions as fields under the USER type, but I feel that it is just too many fields under one 1 data type (User). I want to have a separate Data type and have it as follows …

QUIZ 1 QUESTIONS ANSWERS (data type with 100 fields)
QUIZ 2 QUESTIONS ANSWERS (data type with 100 fields)
QUIZ 3 QUESTIONS ANSWERS (data type with 100 fields)

and link the answers to belong to a specific USER.

Is it even possible and how should I go about it.

Thanks.

1 Like

Hi there, @hatagoeiseb… if you go with one or more Answers data types, a user’s answers would automatically be linked to the user via the Created By field that is part of every thing that is created in a data type. So, you could easily get a specific user’s answers by doing a search for answers with a constraint where created by = current user. Is that what you are trying to do?

Best…
Mike

2 Likes

Thank you so much @mikeloc
I did what you said and it works perfectly.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.