0

I'm using StratusForms for a SharePoint 2016 classic application (system admin won't enable modern pages) and was able to successfully use a CEWP on NewForm.aspx to contain my code and submit to my list using Stratusforms. The issue I am having is retrieving the data for an item on either my DispForm.aspx or EditForm.aspx. It looks as though it is related to the queryStringVar = "formID", but I'm not sure if I am supposed to replace this with the form item ID (or how to extract that on load) or if it is meant to be there by default.

Here is what I have so far:

var webAbsoluteUrl = _spPageContextInfo.webAbsoluteUrl;

$(document).ready(function() {

    initializeStratusForms();

});

function initializeStratusForms() {

     $("#SFForm").StratusFormsInitialize({
         htmlForm: webAbsoluteUrl+"/SiteAssets/StratusForms_Attempt/RequestDemoInnerHTML.html",
         queryStringVar: "formID", 
         listName: "myListName",
         completefunc: function() {

         $('#DateStart').datepicker({
            changeMonth: true,
            changeYear: true
         });

         $('#DateEnd').datepicker({
            changeMonth: true,
            changeYear: true
         });
        }
    });
}

Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.