protected function conditionsToJs($intDynamicPosition = 0)
    {
        $strReturn = "";

        if ($this->hasConditions() && (count($this->getConditions()) > 0)) {
            /* @var $objCondition \ValidFormBuilder\Condition */
            foreach ($this->getConditions() as $objCondition) {
                $strReturn .= "objForm.addCondition(" . json_encode($objCondition->jsonSerialize($intDynamicPosition)) . ");\n";
            }
        }

        return $strReturn;
    }