Reply To: CommentBox Basics

Home Forums Comment box for SharePoint CommentBox Basics Reply To: CommentBox Basics

#37162
Alexander Bautz
Keymaster

    1: There is a bug in the code that strips away the ID from the URL. To fix it you can add this to your custom js:

    spjs.cBox.doneUnsubscribe =  function (iID, id) {
        delete spjs.cBox.data.mySubscriptions[iID][id];
        if (id !== "0") {
            jQuery("#subscriptionLink_" + iID + "_" + id).removeClass("cBox-Icon-RingerRemove").addClass("cBox-Icon-Ringer");
        } else {
            jQuery("#subscriptionLink_" + iID).removeClass("cBox-Icon-RingerRemoveLarge").addClass("cBox-Icon-RingerLarge");
        }
        spjs.cBox.msgBox({
            "title": spjs.cBox.data.dlgHeader,
            "msg": spjs.cBox.i18n("unsubscribeText"),
            "ok": function () {
                if (location.search.match(/\?Unsubscribe|\&Unsubscribe/) !== null) {
                    location.href = location.href.split(/\?Unsubscribe|\&Unsubscribe/)[0];
                } else {
                    spjs.cBox.closeDlg();
                }
            }
        });
    }
    

    2: The header and footer row are the ones shown in the attachment (1 is headerRowTemplateOverride and 2 is footerRowTemplateOverride) – do you want to add data from the form here?

    Adding the Title to the subject is done like this – use same format for other fields:

    "subject": "New comment by {author} on item with Title: " + getFieldValue("Title")
    

    3: You must show me with an image what you want to change. All style applied to the solution can be found in the css file spjs-cBox.css that you link to in the custom css tab – you can edit it to change the styles.

    Alexander