Strange issue with template - groups/elements not displayed

Hello,
I have created a new template to be used for PDF generation through a form.
I'm able to display the element I want from some groups, but for a specific one, it is not working .
as ref :
Main group in my form is "Inscriptions" ,
so I use that code for ex to display the "name "

<?php
$MyInscriptions = $this->groups['Inscriptions'];
$data_inscriptions = $MyInscriptions->elements;
echo $data_inscriptions['nom']->element; ?>


it works for several other groups & elements , no issues.
Now , I have another group, named "Personne_a_prevenir", with an element name for ex : "nom_accident",
then I use the same code :

<?php
$MyInscriptions = $this->groups['Personne_a_prevenir'];
$data_inscriptions = $MyInscriptions->elements;
echo $data_inscriptions['nom_accident']->element;
?>


I checked using the bootstrap template, fields does exist and have values
any insights on why this is not working for this group/element ?
thanks !
 
It the group name correct (maybe 'Personne_?_prevenir' or 'Personne a prevenir'...)?
You may use
var_dump($this->groups);
to see what you have.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top