Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
CWMH.registerHandler('INIT_PAYMENT', CWMC.EVENT_CLICK, function (config)
	{
		//Create Form Manager Object using the Form ID first
			var fm = new cbx.form.FormManager
					  ({
						 formId : "PAYMENT_FORM",
						 mode : 'edit', // default mode is 'view'
						 modelData : { } //Model data provides options to preset default values on the form items
					}); 
		//Using the CBXFORMCONTAINER.getWindowByFormObj method call the container 
        CBXFORMCONTAINER.getWindowByFormObj(fm, "PAYMENT_CONTAINER", null); 
	}); 

...