Pb with custom state in repeating groups

Using “custom states” in repeating group

Hello everyone, I just spent 5 or 6 hours turning the question around. A well done tutorial (and “proven” by screens) on youtube for custom states. I reproduce on a test file, the same two data types, the same two repeating groups (in yellow the “objectives” group, in blue the “Tasks” group) with the same cells inside, I program everything as indicated, and end (last image here
Bubble tells me that I have to change a type of repeating group! It tells me that my group is of type “Stain” which is true, and that I have to change it to text, which suddenly does not work at all. I don’t understand, I’m attaching the screenshots, if someone can help me that would be great… I’m a beginner, yes!!!

Utiliser des “custom states” en repeating group

Bonjour à tous, je viens de passer 5 ou 6 heures à retourner la question dans tous les sens. Un tuto bien fait (et “prouvé” par les screens) sur youtube pour les custom states. Je reproduis sur un fichier test, les deux même datas types, les deux mêmes repeating groups (en jaune le groupe “objectifs”, en bleu le groupe “Taches”) avec les mêmes cells dedans, je programme tout comme indiqué, et à la fin (dernière image ici
Bubble me dit que je dois changer un type de repeating group ! Il me dit que mon groupe est de type “Tache” ce qui est vrai, et que je dois le changer en texte, ce qui du coup ne marche pas du tout. Je ne comprends pas, je vous joins les copies d’écran, si quelqu’un peut m’aider ce serait super… Je débute, oui !!!

Capture d'écran 2023-02-15 13.07.28






)

The error is telling you exactly what’s wrong…

i.e. the RG datatype is ‘tache’ but you’re trying to set it’s data source to a ‘text’ (an ObjectifGT’s Nom) - which doesn’t make sense… hence the error.

I can’t work out exactly what you’re trying to do, but whatever you define as the data source of the RG MUST be of the same type as the RG’s conte type (tache).

So you need to set your conditional data source to match the RG content type.

2 Likes

thank you for answering to me… But what I don’t understand is that “objectifGT” is a type “Objectifs” in element inspector, and “TacheGO” is a type “Tache”
I join the screenshots
and when I ask for ObjectifGT, Bubble doesn’t propose to me anything logical else than “s’Tache”



because your RG’s content type is Tache…

so its data source MUST be a list of Taches.

1 Like

Thanks, I’ll try to change that. Best regards

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.