...
This Page Extension allows you to add default text (such as a set of technical support common questions) to the comment field when adding tickets. You can also create another page extension to enter text when editing a ticket as well by setting the Page field to Ticket/Edit
Click on the on Setup tab
Click Page Extensions
Click the Add button
Enter the following information:
Name - Ticket Add Default Comments
Page - Ticket/Add
Script - (see below)Code Block language js var item = document.getElementById('Comment');if (item.value == "") { item.value = "1) What is your mother's maiden name? \n2) Describe the issue:"; };
...
Insert a Date into a Date Field
Click on the on Setup tab
Click Page Extensions
Click the Add button
Enter the following information:
Name - Insert Date Into Date Field
Page - user/add
Script - (see below)Code Block language js for(var billi=0;billi<=50;billi++) { var nextbill = "Package"+billi+"^Date"; var postdate = "Package"+billi+"^Posting Date"; if(document.getElementById(nextbill)) { var NextBillDate = document.getElementById(nextbill); var d = new Date ( NextBillDate.value ); var newdate = d.getMonth()+1 + "/" + d.getDate() + "/" + d.getFullYear() + " 12:00:00 am"; NextBillDate.value= newdate; if(document.getElementById(postdate)) { var NextPostBillDate = document.getElementById(postdate); var pd = new Date ( NextPostBillDate.value ); var newpostdate = pd.getMonth()+1 + "/" + pd.getDate() + "/" + pd.getFullYear() + " 12:00:00 am"; NextPostBillDate.value= newpostdate; } } }
Click the Save button
...
Click on the Setup tab
Click Page Extensions
Click the Add button
Enter the following information:
Name - Set 'Make Payment' Zero By Default
Page - onlinepayment/index
Script - see below, same for both the add and edit screensCode Block language js var theAmount = document.getElementById('Amount'); theAmount.setAttribute('value', '');
Click Save