src/Renderer/AbstractFormRenderer.php
private function createNewDynamicContainerBlockIfNeeded($dynamicTriggerValue)
    {
        if (!isset($this->dynamicContainerBlock) && $dynamicTriggerValue !== null) {
            $this->dynamicContainerBlock = $this->createElement('div');
            $this->dynamicContainerBlock->setAttribute('data-dynamic-form', $this->dynamicFormParentName);
            $this->dynamicContainerBlock->setAttribute('data-dynamic-form-trigger-value', $dynamicTriggerValue);
            $this->dynamicContainerBlock->setAttribute('class', 'dynamic-form-block trigger'.$this->dynamicFormParentName);
            $this->dynamicContainerBlock->setAttribute('id', $this->dynamicFormParentName.$dynamicTriggerValue);
            $this->dynamicFormVisible === false ? $this->dynamicContainerBlock->setAttribute('style', 'display: none;') : null;
        }
    }
private function createNewDynamicContainerBlockIfNeeded($dynamicTriggerValue)
    {
        if (!isset($this->dynamicContainerBlock) && $dynamicTriggerValue !== null) {
            $this->dynamicContainerBlock = $this->createElement('div');
            $this->dynamicContainerBlock->setAttribute('data-dynamic-form', $this->dynamicFormParentName);
            $this->dynamicContainerBlock->setAttribute('data-dynamic-form-trigger-value', $dynamicTriggerValue);
            $this->dynamicContainerBlock->setAttribute('class', 'dynamic-form-block trigger'.$this->dynamicFormParentName);
            $this->dynamicContainerBlock->setAttribute('id', $this->dynamicFormParentName.$dynamicTriggerValue);
            $this->dynamicFormVisible === false ? $this->dynamicContainerBlock->setAttribute('style', 'display: none;') : null;
        }
    }
private function createNewDynamicContainerBlockIfNeeded ( $ dynamicTriggerValue ) { if ( ! isset ( $ this -> dynamicContainerBlock ) && $ dynamicTriggerValue !== null ) { $ this -> dynamicContainerBlock = $ this -> createElement ( 'div' ) ; $ this -> dynamicContainerBlock -> setAttribute ( 'data-dynamic-form' , $ this -> dynamicFormParentName ) ; $ this -> dynamicContainerBlock -> setAttribute ( 'data-dynamic-form-trigger-value' , $ dynamicTriggerValue ) ; $ this -> dynamicContainerBlock -> setAttribute ( 'class' , 'dynamic-form-block trigger' . $ this -> dynamicFormParentName ) ; $ this -> dynamicContainerBlock -> setAttribute ( 'id' , $ this -> dynamicFormParentName . $ dynamicTriggerValue ) ; $ this -> dynamicFormVisible === false ? $ this -> dynamicContainerBlock -> setAttribute ( 'style' , 'display: none;' ) : null ; } }
This creates a containing div for dynamic fields which appear only on another fields value
@param null|string $dynamicTriggerValue
This creates a containing div for dynamic fields which appear only on another fields value