public function toJS($intDynamicPosition = 0)
    {
        $strOutput = "";

        if ($this->getMeta("id")) {
            $strId = $this->getMeta("id");

            $strOutput = "objForm.addElement('{$strId}', '{$strId}');\n";

            // *** Condition logic.
            $strOutput .= $this->conditionsToJs($intDynamicPosition);
        }

        return $strOutput;
    }
public function toJS($intDynamicPosition = 0)
    {
        $strOutput = "";

        if ($this->getMeta("id")) {
            $strId = $this->getMeta("id");

            $strOutput = "objForm.addElement('{$strId}', '{$strId}');\n";

            // *** Condition logic.
            $strOutput .= $this->conditionsToJs($intDynamicPosition);
        }

        return $strOutput;
    }
public function toJS ( $ intDynamicPosition = 0 ) { $ strOutput = "" ; if ( $ this -> getMeta ( "id" ) ) { $ strId = $ this -> getMeta ( "id" ) ; $ strOutput = "objForm.addElement('{$strId}', '{$strId}');\n" ; // *** Condition logic. $ strOutput .= $ this -> conditionsToJs ( $ intDynamicPosition ) ; } return $ strOutput ; }
Render the string's Javascript
@see \ValidFormBuilder\Base::toJS()
@param boolean $submitted Force 'submitted' behavior
@param boolean $blnSimpleLayout Force simple layout
@return string The generated HTML output
Render the string s Javascript