Flags condition

Hello,

I’m trying to show a flag near names and I don’t understand how do to it well. I have a list of persons with many differents countries.

I have a data base with all flags and some slugs but I don’t find how to create a condition to do that ;

“When you create a new people on data base “Persons” and type “EN” in country field, get the “EN” flag in the data base “flags” and show it on the page”.

Can you help me to clarify that please ?

Hi there, @Julien_E… if I was doing what you described, I might have a flag field (which links to the Flag data type) on the Person data type to store the flag associated with a person’s country. If you don’t have that field, you will have to do a search for flags and get the first item where the flag’s country is the associated person’s country.

Best…
Mike

Hello Mikeloc, perfect answer, it works, thanks !!

1 Like