Answer the question
In order to leave comments, you need to log in
How to pass variables to a chunk in MODX eForm?
I call the eForm snippet:
$form_data = array(
'formid' => 'agents_form',
'report' => 'agents_form',
'tpl' => 'agents_form',
'type' => 'edit',
'id' => $row['id'],
'title' => $row['title'],
'address' => $row['address'],
'requisites' => $row['requisites']
);
echo $modx->runSnippet('eForm',$form_data);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question