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
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