I am desperately trying filter the results in a list that was generated through a ForeingKey.
I configured the Foreing to show a list of results by Name. Until then that's OK because this is standard in Online generator.
My real problem is that I need condition the results obtained by foreIngKey to show only the results that have the USER ID equal to the user who created it.
How can I add more condition to the results of this foreingKey List?
PS: The requirement applies on the "form" of the create new Item and Item. Everything is being done to FrontEnd
IMAGE 1
In the picture below (Image 1), is possible to see the system working.
[Escola Bom Jesus] is a chosen value when I created this entry. This value is obtained starting from a Foreign Key.
In this second image, it is possible observe the LIST I spoke at my question.
I received 2 Values by Foreign Key.
1 -> Emiliano Perneta
2 -> Escola Bom Jesus
My question is as follows:
Emiliano Perneta, is an entry that not created by the current user.
The Only it was actually created by current User is the (School Bom Jesus), so I need Hide the value of choice (Emiliano Perneta).
Only "Escola Bom Jesus" should be shown in the list because this is the one created by the current User...
Please. Could someone give me a hint.
Which file do I modify to meet my need? I already looked all that I know and I can not find any file that contains snippets of familiar script for me to modify.