JavaScript ButtonJavaScript buttons are used whenever you which to run a JavaScript on a button click. The functionality you can achieve using these buttons is only limited by your knowledge of JavaScript. Some simple examples of their use:
[field_name_2] = [field_name_1];
doCalculations();
[field_name_1] = '';
[field_name_1] = '';
[field_name_1] = '';
[field_name_1] = '';
doCalculations();
getCSObject([Field_Name]).parentElement.parentElement.style.display = 'none'
getCSObject([Field_Name]).parentElement.parentElement.style.display = '';
Tick the "Show QuickCode" checkbox to have CallScripter display built-in and easy access helper functions. the following example shows the disableFields helperfunction and its syntax as displayed using the QuickCode option:
Further examples of JavaScript usage can be found here: JavaScript Knowledgebase Articles
|