Legacy platform

Launching a modal

You can launch a modal in the application by following the information provided in this topic.

  1. Use iscModal.openModal(modalId, resolveData, modalOptions) method to launch a modal as shown in the following code snippet:
    // input to the modal screen
    	 	var resolveData = {
    			modalInput : function(){
    				return {
    					input1:"input1",
    					input2:"input2"
    				}
    			}
    		}
    		// modal options for custom modal config
    		var modalOptions = {};
    		iscModal.openModal("modelId",resolveData,modalOptions)
                  .then(function action(data){},function dismiss(data)()});
    The openModal method returns a promise object and calls the action ( ) and dismiss ( ) methods to handle scenarios such as click of OK and Cancel buttons respectively.
  2. Once you complete performing the required changes, you can test your customization.

For more information, refer the javascript documentation available with the application.