Myriam Fica

Forum Replies Created

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • in reply to: Display a calculated column display value in edit form? #18758
    Myriam Fica
    Participant

    Alexander,

    This is what I have:

    <h2>Grand Total: <span class=”grandtotal” /></h2>

    var qRes = spjs.utility.getItemByID(
    {
    “listname”:_spPageContextInfo.pageListId,
    “id”:spjs.dffs.data.thisItemID,
    “viewFields”:[“Grand_x0020_Total”]
    }
    );
    $(“span.grandtotal”).html(qRes[“Grand_x0020_Total”].split(“;#”)[1]);

    It does not accept “_” in the “Grand_x0020_Total” in the last line. It suggests that the “Grand_x0020_Total” be written in dot notation. I insert the dot notation and I get the same error (“Grand_x0020_Total” is the internal name). See error below:

    DFFS there is an error in the custom JS textarea

    Type error: Cannot read property “Grand_x0020_Total” of null

    It needs to be shown on new, edit and display form!

    Your help is very much appreciated!

    in reply to: Display a calculated column display value in edit form? #18716
    Myriam Fica
    Participant

    Alexander,

    I am using the following version Dynamic Forms for SharePoint DFFS Backend v4.4.1.2|CSS version: 4.16 / |spjs-utility version: 1.267
    – by Alexander Bautz / SPJSBlog.com

    I have used all the options given here to display the value of a calculated column as a label in the Edit Form. However, I haven’t had any luck! I keep on getting an error! Does this have anything to do with the dffs version I am using? If so, do you have any examples of how to obtain this result using this version or do I need to install a new version? Thank you very much!

Viewing 2 posts - 16 through 17 (of 17 total)