JavaScript CookBook/Modal Forms/Adding a Cancel Button

From GeoMedia Smart Client
< JavaScript CookBook‎ | Modal Forms
Revision as of 12:13, 3 February 2014 by Fbuching (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: