K
K
KlassT2016-08-24 13:18:53
MODX
KlassT, 2016-08-24 13:18:53

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);

The form must have the values ​​of the fields that I pass in. How to send these values ​​to agents_form chunk?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question