Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

                                           

Sample Form Event:

  • This example hides the 'Number of Packs' control on load of form if  'Smoking History' value is not set. 
Code Block
languagejs
titleSample Control Event
function(form) {
	if (form.get('Smoking History').getValue() === undefined) {
		form.get('Number of Packs').setHidden(true);
	} else {
		form.get('Number of Packs').setHidden(false);
	}
}


        2. On Change of Values (Control Event)
              a. To show/hide, enable/disable or change values of controls, then click on Control Event and write the conditions in editor window and save.

...