public function getFormInitializationJavaScriptCode()
    {
        $formName = GeneralUtility::quoteJSvalue($this->getFormObject()->getName());
        $formConfigurationJson = $this->handleFormConfiguration($this->getFormConfiguration());

        $javaScriptCode = <<<JS
(function() {
    Fz.Form.register($formName, $formConfigurationJson);
})();
JS;

        return $javaScriptCode;
    }
public function getFormInitializationJavaScriptCode()
    {
        $formName = GeneralUtility::quoteJSvalue($this->getFormObject()->getName());
        $formConfigurationJson = $this->handleFormConfiguration($this->getFormConfiguration());

        $javaScriptCode = <<<JS
(function() {
    Fz.Form.register($formName, $formConfigurationJson);
})();
JS;

        return $javaScriptCode;
    }
public function getFormInitializationJavaScriptCode ( ) { $ formName = GeneralUtility :: quoteJSvalue ( $ this -> getFormObject ( ) -> getName ( ) ) ; $ formConfigurationJson = $ this -> handleFormConfiguration ( $ this -> getFormConfiguration ( ) ) ; $ javaScriptCode =  <<<JS
(function() {
    Fz.Form.register($formName, $formConfigurationJson);
})();
JS ; return $ javaScriptCode ; }
Generates and returns JavaScript code to instantiate a new form.

@return string
Generates and returns JavaScript code to instantiate a new form .