Changes

Custom Field Type: Special – Browser Script

7 bytes added, 20:26, 18 October 2007
m
no edit summary
* '''Tool Tip''': N/A
<u>'''ExampleExamples'''</u>
'''1. Setting End Date to current date as long as the status is not equal to CloseClosed'''
<pre>
if ([status] != 'Closed')
}
</pre>
 
'''****The following instructions are for those who have Global System Administrator only. Please contact your system administrator before proceeding. ****'''
You will need to create in total three custom fields. Two custom fields that will be display before or had (having a smaller display order than ) the Dynamic Custom Field (i.e if the dynamic custom field have display order of 2050 then the two custom fields display order have to be smaller than 2050 like 2045 and 2047). One custom fields will be located within the dynamic custom field. '''Step 1:''' Create the 1st custom field using type "Text box - Single Line" that will be store the value of the sum or total. You need to remember the Field ID of this custom field before proceed to step 2. The Field ID is located at the last column in the "Field List" view.
'''Step 1:''' Create the 1st custom field using type "Text box - Single Line" that will be store the value of the sum or total. You need to remember the Field ID of this custom field before proceeding to step 2. The Field ID is located in the last column of the "Field List" view.
'''Step 2:''' Create the 2nd custom field using type "Special - Browser Script" and paste the following script into the Javascript text box. Replace the "xxxxxx" with the Field ID of the 1st Custom Field that you just created.
<pre>
'''Step 3:''' You will need to go to the Edit view of the Dynamic Data - Dynamic Custom Field and create a new sub field. Create this 3rd custom field using type "Special - Browser Script" and paste the following script into the Javascript text box. Replace "xxxxx1" with the field id of the Dynamic Data - Dynamic Custom Field. Replace "xxxxx2" and "xxxxx3" with field id of all the field fields that you need to sum up.
<pre>
214
edits