Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

  1. Click on the on Setup tab

  2. Click Page Extensions

  3. Click the Add button

  4. Enter the following information:
    Name - Ticket Add Default Comments
    Page - Ticket/Add
    Script - (see below)

    Code Block
    languagejs
    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

  1. Click on the on Setup tab

  2. Click Page Extensions

  3. Click the Add button

  4. Enter the following information:
    Name - Insert Date Into Date Field
    Page - user/add
    Script - (see below)

    Code Block
    languagejs
    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;
            }
        }
    }
  5. Click the Save button

...

  1. Click on the Setup tab

  2. Click Page Extensions

  3. Click the Add button

  4. Enter the following information:
    Name - Set 'Make Payment' Zero By Default
    Page - onlinepayment/index
    Script - see below, same for both the add and edit screens

    Code Block
    languagejs
    var theAmount = document.getElementById('Amount');
    theAmount.setAttribute('value', '');
  5. Click Save