How to add a form for each Tutor who are part the Tutor member group - dynamically ?

I have a standard application form which I want the general users to fill when they visit a dynamic page of Tutors in a way that form is linked to each Tutor.

My tutor page is similar to the below page, ie, I’ve linked a repeater and a view profile to see each item on clicking the card. Now I want to basically have a standard application form which on clicking in the “Apply” button on each iteam page, opens to a user input form but - stores the item id from where the user came, ie, the individual tutor page.

Hi Bishal,

Is the form going to be on a different page or on the dynamic tutor page?

If the form is on the same page you can use the dataset onReady() function and the getCurrentItem() function to determine the current item (tutor) and set one of the fields in the form to be automatically filled with the tutors name.

If the form is on a different page you can use the wix-storage API to set the tutors name to the local storage and then retrieve it to add to the form automatically on the next page.

Hope this helps!

Dara | Corvid Team

Hi Dara,

So I have used Wix-storage to pass the data (Teacher ID and Name) from the page to form. Now when a student fills the form, I have used a reference field to pass the Teacher ID to the form along with the current User ID so we know which User has applied to which Teacher.

Is insertReference() the right way to go while submitting the form to insert the Teacher ID in the Reference Field which points to the Teacher for whom the student has filled the form ? I’m slightly confused.