Repeating group based on user type value

Hey bubblers :slight_smile: I am not quite sure, if I’m on the right track or if I’m thinking totally wrong. I have two different user types. Let’s say a user can be a student or a teacher. Now I want to show a repeating group showing only the students and not the teachers. I have tried it as shown in the screenshot below, but it’s not working.

Is it not possible to add a specific value as a constraint for a repeating group? How would I fix this?

Thanks a lot for your help! :slight_smile:

If that constraint’s field is a text make sure the spelling and caps is exact

Consider using option sets

1 Like

That should work, but as it’s not it’s probably something to do with your data and field types in your database.

What type of field is ‘Student’ on your user datatype?

Also, it’s appearing in quotations, which doesn’t seem right (unless the value in the database itself is also in quotations).

And as @cmarchan mentioned above, using an option set for user types is probably the best way to do it.

1 Like

Thanks for your help! I am using now an option set as well and it’s easier. @adamhholmes the user type was text, but it doesn’t matter anymore. Thanks to both of you! :slight_smile:

2 Likes