JavaScript CookBook/Modal Forms/Adding a Cancel Button

From GeoMedia Smart Client
Jump to: navigation, search
GMSC 2013/2014 Javascript API Overview Form Events Types Utility Functions client-side Validation Conditions Interaction with SmartClient Cookbook Cheatsheet


Adding a Cancel Button to a Modal Form

Problem: You want to add a Cancel Button to a modal form that closes the form without performing any actions.

Solution: Use the IG.abortModalForm function in order to close the modal form.

<FormAction name="CLOSE_BUTTON" label="Cancel" action="SCRIPT[IG.abortModalForm()]" />



Other Recipes in this category: