JavaScript CookBook/Workflow Form/Checking if a form field contains a value

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


Checking if a form field contains a value

Problem: You want to make sure that a form field contains a value and hasn't been cleared by the user.

Solution: Use the .hasValue() method of the form field to find out if it currently contains a value.

Other Recipes in this category: