4,401
edits
Changes
no edit summary
By default within the [[Universal Tracking Application]] the end date for a level 1 item is set to the start data. 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]].
* The function is called in the last line of the script.
* You could also use this approach to set the end date to say the start date + 60 days or set other field values.
'''For UTA level 2, use this code to blank the Start date:'''
function changeStartDate() {
var frm=document.frmevent;
if (frm.eventid.value==0)
frm.startdate.value=''
}
changeStartDate();
'''For UTA level 3, use this code to blank the end date:'''
function changeEndDate() {
var frm=document.frmevent;
if (frm.eventid.value==0)
frm.enddate.value=''
}
changeEndDate();
[[Category:Universal Tracking Application]][[Category:Applications]][[Category:Browser Scripts]]