This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//custom/modules/Accounts/clients/base/layouts/my-layout/my-layout.php | |
$viewdefs['Accounts']['base']['layout']['my-layout'] = array( | |
'components' => array( | |
array( | |
'view' => 'my-view', | |
) | |
) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dependencies['Cases']['required_resolution'] = array( | |
'hooks' => array("edit"), | |
'trigger' => 'equal($status, "Closed")', | |
'triggerFields' => array('status'), | |
'onload' => true, | |
//Actions is a list of actions to fire when the trigger is true | |
'actions' => array( | |
array( | |
'name' => 'SetRequired', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js" /> <script type="text/javascript"> | |
var checkJQLoaded = function(){ return (typeof $ != 'undefined')}; | |
var myScope = {target:"#myDiv"}; | |
SUGAR.util.doWhen(checkJQLoaded, function(toAppend){ | |
$(this.target).append(toAppend); | |
}, "Hello World", myScope); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js" /> <script type="text/javascript"> | |
SUGAR.util.doWhen(function(){ return (typeof $ != 'undefined')}, function(){ | |
$("#myDiv").append("Hello World"); | |
}); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js" /> <script type="text/javascript"> | |
SUGAR.util.doWhen("typeof $ != 'undefined'", function(){ | |
$("#myDiv").append("Hello World"); | |
}); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js" /> | |
<script type="text/javascript"> | |
$("#myDiv").append("Hello World"); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dependencies['Cases']['required_resolution'] = array( | |
'hooks' => array("edit"), | |
'trigger' => 'true', //Optional, the trigger for the dependency. Defaults to 'true'. | |
'triggerFields' => array('status'), | |
'onload' => true, | |
//Actions is a list of actions to fire when the trigger is true | |
'actions' => array( | |
array( | |
'name' => 'SetRequired', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dictionary['Account']['fields']['sub_industry_c']['visibility_grid'] = array( | |
'trigger' => 'industry', | |
'values' => array( | |
'Education' => array('edu_college', 'edu_high', 'edu_k12'), | |
'Banking' => array('bank_comm', 'bank_invest', 'bank_retail', 'bank_cred'), | |
), | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
?> | |
<iframe id="scGoogleSearch" src="http://www.google.com" width="750" height="400"></iframe> | |
<script> | |
//Encapsulate the call to protect the global scope. | |
(function(){ | |
var name = document.getElementById("name") || document.getElementById("full_name"); | |
var frame = document.getElementById("scGoogleSearch"); | |
var url = "http://www.google.com/#"; |