Hi Paul
Do the following:
1. Unzip the attached archive into include/SugarFields/Fields/ folder;
2. Change permission for this folder: chown -R <the_user>.<the_group> include/SugarFields/Fields/Booljavascript, where <the_user>.<the_group> are the user and group used by apache when getting started;
3. Edit the custom/modules/Accounts/metadata/editviewdefs.php and look for the field you are going to link with the popup;
4. Add the following code in the field definition:
PHP Code:
'displayParams' => array(
'javascript' => 'onchange="showPopup(this);"',
),
5. Have a look in the array('file'=>'modules/Accounts/Account.js'), inside the same file, add a new line just like: array('file'=>'custom/modules/Accounts/Account.js'),
6. Create such file and add into it the function showPopup(field) containing a code like that:
Code:
if(field.checked) {
alert("remember to choose what software packages under the software module");
} Cheers
Bookmarks