Changes

Changing the Default End Date

494 bytes added, 19:05, 24 June 2013
no edit summary
By default within the [[Universal Tracking Application]] the end date for a level 1 item is set to the start datadate. In many circumstances you may wish to control the level 1 end date. The following technique can be used:
'''The following technique can be used for UTA level 1:'''
 
1. Add a new [[Custom Field|custom field]] to the [[UTA]] custom field list.
 2. Set the field type to [[Custom Field Type (103): Special – Browser Script|Special - Browser Script]].
This field type is not displayed on the page but the script associated with the field will be added to the webpage and the script can be called and executed.
var frm=document.form1;
if (frm.opportunityid.value==0)
frm.enddate.value='''''' '
}
changeEndDate();
'''For UTA level 2, use this code to blank the Start date:''' <pre> function changeStartDate() {  var frm=document.frmevent;  if (frm.eventid.value==0)  frm.startdate.value=''  }  changeStartDate();  </pre> '''For UTA level 3, use this code to blank the end date:''' <pre> function changeEndDate() {  var frm=document.frmevent;  if (frm.eventid.value==0)  frm.enddate.value=''  }  changeEndDate(); </pre> [[Category:Universal Tracking Application]][[Category:Applications]][[Category:Browser ScriptsJavaScript]][[Category:Date Formats]]
8,849
edits