Hi,
I’m trying to make a select field which options are queryed from a tags field from the parent block. It seems that there is no possibility to do block.field.split
. Is there any way to achieve this ? I tried through the parent
method but it didn’t work. Maybe I didn’t used it correctly.
Here is my blueprint. The target is the respondant field, nested in respondantAnswers, nested in answers, nested in content where are the tags I try to query :
content:
fields:
type:
type: select
width: 1/2
options:
simple: Question fermée à réponse unique
multiple: Question fermée à réponses multiples
name:
label: Nom
type: text
width: 1/2
respondants:
type: tags
help: Liste de répondants séparée par des virgules. Ex. Associations, Établissements publics…
answers:
label: Réponses
type: structure
columns:
answer:
width: 1/3
respondantAnswers:
width: 1/3
fields:
answer:
label: Réponse
type: text
respondantAnswers:
label: Réponses par répondants
type: structure
columns:
respondant:
width: 1/2
percent:
width: 1/2
fields:
respondant:
label: Répondant
type: select
options: query
query: block.respondants.split
percent:
label: Nombre pour cet
Thank you for your help.