original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Render the string s Javascript