Happy to give you more details if you can help but here is already some info
The app allow coaches to create training sessions using a databe of exercises.
One coach (a user) create is own sessions and folders to classify the sessions.
Other coaches (other users) do not have access or can not see other coaches folders and sessions.
In that case, everything is working well except the part where in a Form field, the name of other user folders are displayed instead of just the ones from the current logged in user.
Can you share a screenshot of your folders collection? In here you need to add a filter for that property in the form that User’s ( one to many relationship between the Users and Folders. I believe you already have this) email > is equal to > Logged in user’s > email.
Ah ok! So you have a User one to many relationship that stores the creator of the group!
Now what you need to do is go to the form and then go inside the second section on the form ( fields I think ) and choose the property that displayed the drop-down ( Dosser_Ok ) and add a custom filter that User’s > email > is equal to > Logged in user’s > email.
You can use the Desktop Mode when using your phone!
Other question
Once the above is resolved. Is there a way to add a box the user can check (or uncheck) to share his personnal exercises (the ones he created) or to keep it private.
So user can choose to keep an new item private or accessible to all other users.
To do this you need a One to Many relationship between the Users collection and the Exercises collection! And then in the form you can add that property with the Logged in user value!
You can do this by creating a true/false property and then in your list add a toggle and connect that property and in your list that shows all exercises add a filter that true/false property should be false! When it’s true that means it’s private!
I am still struggling.
I believe the reason is I want to display in the same list the exercises already created by myself as well as the personal exercises created by the user.
Is it possible to do so ? (that would be great)
(=> or do I need 2 differents lists ? => not as great lol)
We need to display all exercises created by me + only exercises created by each specific user.
For exemple :
*user 1 needs to see all exercises that I created (included into the app) + the exercises he created
=> but not exercises created by user 2
*user 2 needs to see all exercises that I created (included into the app) + the exercises he created
=> but not exercises created by user 1
You can create a One to Many relationship between the Themes collection and the Users collection and you can name the one that created on the Themes collection like Creator and the one that created one the Users collection like My Themes.
And in your Create New Theme form you can add that Creator property and fill that with the Logged in user value.
And in your Dropdown you can change the filter from All Themes to Logged in user’s > Themes.
If you need to show the already created themes too you can create a true/false and mark true for that already created ones and in the Dropdown change the filter that Logged in user’s > Themes to All Themes again and add the first custom filter that Creator’s > Email > is equal to > Logged in user’s email. And add the other filter as AND that true/false property > is true.
Or you can create a text property and on the create new theme form add that as a automatically field and fill that with Logged in user email and in the Dropdown remove the true/false filter and add this new filter as AND that text property > is equal to > empty and the already created ones will show because that property should be empty for the already created ones.
(For some reason, new users “nad” and “jon” have access to 5 theme_1s …)
I need it to be automatic : when a user signs up, he must have access to all the exercises and themes currently present into the app. The ones I added myself as the admin . Also I will add new ones in the future as well.
(except those created by logged in user of course).