This file contains 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
//------------------------------------------------------------------------------------------- | |
// getRelatedInfo | |
//------------------------------------------------------------------------------------------- | |
function getRelatedInfo(e) { | |
// Get the Form Context | |
var formContext = e.getFormContext(); | |
// Set variables for the related entity to get data from |
This file contains 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
//------------------------------------------------------------------------------------------- | |
// openSpecificForm | |
//------------------------------------------------------------------------------------------- | |
function openSpecificForm(e){ | |
// Get the Form Context | |
var formContext = e.getFormContext(); | |
//if the form is update form |
This file contains 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
//------------------------------------------------------------------------------------------- | |
// setCustomFormLayout | |
//------------------------------------------------------------------------------------------- | |
function setCustomFormLayout(e){ | |
// Consider using Business Rules before using this code | |
// Get the Form Context | |
var formContext = e.getFormContext(); |
This file contains 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
//------------------------------------------------------------------------------------------- | |
// setRequiredLevel | |
//------------------------------------------------------------------------------------------- | |
function setRequiredLevel(e){ | |
// Consider using Business Rules before using this code | |
// Get the Form Context | |
var formContext = e.getFormContext(); |
This file contains 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
//------------------------------------------------------------------------------------------- | |
// showHideFields | |
//------------------------------------------------------------------------------------------- | |
// Consider using Business Rules before using this code | |
function showHideFields(e){ | |
// Get the Form Context | |
var formContext = e.getFormContext(); |
This file contains 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
//------------------------------------------------------------------------------------------- | |
// showHideFormSections | |
//------------------------------------------------------------------------------------------- | |
// Consider using Business Rules before using this code | |
function showHideFormSections(e){ | |
// Get the Form Context | |
var formContext = e.getFormContext(); |
This file contains 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
//------------------------------------------------------------------------------------------- | |
// getDateField | |
//------------------------------------------------------------------------------------------- | |
function getDateField(e){ | |
// Get the Form Context | |
var formContext = e.getFormContext(); | |
// Get the value of the Opportunity Est. Close Date |
This file contains 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
//------------------------------------------------------------------------------------------- | |
// setOptionSetField | |
//------------------------------------------------------------------------------------------- | |
function setOptionSetField(e){ | |
// Get the Form Context | |
var formContext = e.getFormContext(); | |
// Set the value of the Opportunity Status Reason field |
This file contains 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
//------------------------------------------------------------------------------------------- | |
// getOptionSetField | |
//------------------------------------------------------------------------------------------- | |
function getOptionSetField(e){ | |
// Get the Form Context | |
var formContext = e.getFormContext(); | |
// Get the database value of the Opportunity Status Reason field |
This file contains 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
//------------------------------------------------------------------------------------------- | |
// setBitField | |
//------------------------------------------------------------------------------------------- | |
function setBitField(e){ | |
// Get the Form Context | |
var formContext = e.getFormContext(); | |
// Set the value of a custom "Is Decision Maker" checkbox to checked |
NewerOlder