Kennelly Celeste

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Bug in lookup if the lookup value contains a hyphen #36859
    Kennelly Celeste
    Participant

    I’m having this error too, running an earlier version. I can’t find instructions for upgrading to the most recent version for Modern DFFS – how does it work?

    in reply to: SPJS Functions for Modern #36782
    Kennelly Celeste
    Participant

    Thanks so much for the info! I’m having trouble figuring out how to apply REST functions without the wrapper. What I need to do is look up the value of the AssignedTo field in a list called XTeamVehicles, when I select the vehicle from a lookup column in a tracking list. Then I just want to display the AssignedTo value in my form. Can you help get me started? Here’s the original function in Classic DFFS:

    //DISPLAY Assigned To
    function vehicleChange(){
    var sVal = $(“#dffs_Vehicle”).find(“option:selected”).val();
    if(sVal!==”0″){
    var qRes = spjs.utility.getItemByID(
    {
    “listBaseUrl”:”/sites/fire/adminexecservices/hq”,
    “listName”:”Executive Team Vehicles”,
    “id”:sVal,
    “viewFields”:[“AssignedToLookup”]
    }
    );
    $(“span.vehicleAssigned”).html(qRes[“AssignedToLookup”]);
    }else{
    $(“span.vehicleAssigned”).html(“”);
    }
    }

    I also noticed there is no way to hide an HTML section using Rules, like there was in Classic DFFS. Is there a way to show HTML sections conditionally?

Viewing 2 posts - 1 through 2 (of 2 total)