Dependent drop-down question

Hi all -

I am building an eLearning platform and for my sign up, I need to make certain options dependent on answers to others. For example:

Everyone signs up with name & email, then selects if they are a student or teacher.

Students will then be asked to input a class code (which is another can of worms I have yet to open, willing to get advice on that as well) which will bring them to their specific class page once logged in, kinda like Google Classroom.

Teachers will then be prompted to give their country, state, school district and school.

  • I would also need confirmation that they indeed have a subscription to the platform.
2 Likes

Just use conditionals to redirect the users to the correct page, depending if they are students or teachers.

About the code is simple, create a field on the user data base:

ā€œUser Typeā€ (teacher or student) - use Options Sets
*ā€œClass Codeā€ (type text) **
ā€œCode Verifiedā€ (yes/no)

*usually I put NO as default

When the user register on your app, they will have to select which kind of user they are, with a workflow you save that on the DB and then generate a code (usually I use generate a random string) and send it by email or sms, as you prefer.

On the email put a link that redirects the user to code verification page, if the code introduced is the same, ā€œCode Verifiedā€ becomes yes.

Then use conditionals, if the user is teacher goes to page ā€œteachers areā€, if the user is studant goes to page ā€œstudents areaā€.

Hope I could help you !

1 Like

Thank you for the info! By ā€œclass codeā€, I meant that when a teacher creates an account, then creates classes (for example, I taught 5 classes so Iā€™d have a class page for A Period, one for B Period, etc.). What Iā€™m looking to do is have a ā€œjoin codeā€ generated for the teacher for each class, so when a student signs up and inputs (XXXXX), it puts them into the correct class (i.e. join code A6F23 might place a student in A Period)

1 Like

Thats quite simple too.

Add a field for ā€˜class codeā€™ on the Class Datatype.
When the user inputs the code and presses ā€˜joinā€™ then you can run a workflow that finds the codeā€™s class using
Do a search for: class (Constraint: Class Code = Inputted Code

The workflow will then add the user to the class.
The specific way that ā€˜add a user to a classā€™ is done depends on how you structured your database. There are many ways to do this and the best way to do it gets asked many times in the forum..

A lot of people use lists, but I would recommend creating a new dataType for Student-Class. There would be one entry for every student-class relationship. In here you can have as many fields as you want to save stuff like grade, assignment, comments, feedback, etcā€¦

Another consideration is that if you want Class Codes to be private (cant be seen by anybody who goes looking for them and knows where to look) there is an extra step to be done. This would involve setting tight privacy rules and putting the workflow that adds students to classes in the backend. If you are interested in this we can go more in depth.

1 Like

Thank you! Yes Iā€™d love to chat about that further. Would you suggest incorporating AI to generate unique codes for each class?

No need to use AI for that, i guess you would be able to put on your landing page that you use AI tho :joy:
Use the :calculate formula operator, and select the ā€œgenerate random stringā€. This way you would be able to programmatically generate class codes. You could let the teachers change it if they wished, using an input with autobinding activated.

Let me know if you have any issues