JavaScript CookBook/Workflow Form/Accessing form items via Javascript

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


Accessing form items via Javascript

Problem: You need to access a form item (field, group, tab, action or form) in order to manipulate it or retrieve its current value

Solution: Use the getItemById method of the form object for retrieving a single form item by its id. If you rather want to filter out all form items that match a certain criteria (e.g. all <FormTab> items), use the getItemsByAttr method.

Other Recipes in this category: