JavaScript CookBook/Custom Scripts/Adding custom scripts to your workflow

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 custom scripts to your workflow

Problem: You are about to create Javascript custom scripts and don't know how to embed them to your workflow forms.


  1. Create a new Javascript file (extension .js) in the Custom/Scripts folder of your GMSC installation.
  2. Specify the filepath of the Javascript file in the customscript attribute of the form node in your FormSettings.xml file.
 <Form name="CUSTODY" table="CUSTODY" idfield="GUID" customscript="CustomScript.js">

Now the Javascript file CustomScript.js is included in the CUSTODY form and all Javascript code of this file will be executed when the form loads. <br\><br\> (This recipe works for GMSC 2013 and newer) <br\> <br\>

Other Recipes in this category: