Skip to content

Commit

Permalink
try different function
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Nov 17, 2024
1 parent 7b74791 commit 17d53e5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ public function testNextPrevSaveLoad() {

// Place fields for each contact on their own page and enable saving drafts
$webform = Webform::load($this->webform->getOriginalId());
$elements = Yaml::decode($webform->get('elements'));
// $elements = Yaml::decode($webform->get('elements'));
$elements = $webform->getElementsDecodedAndFlattened();
$this->htmlOutput('id is ' . $this->webform->getOriginalId() . ' raw elements is ' . var_export($webform->get('elements'), true) . ' elements is ' . var_export($elements, true));
$elements_new = [
'page1' => ['#type' => 'webform_wizard_page', '#title' => 'Page 1', 'civicrm_1_contact_1_fieldset_fieldset' => $elements["civicrm_1_contact_1_fieldset_fieldset"]],
Expand Down

0 comments on commit 17d53e5

Please sign in to comment.