JS Open Form in Modal vLookup Issue

Forums Dynamic Forms for SharePoint JS Open Form in Modal vLookup Issue

This topic contains 2 replies, has 2 voices, and was last updated by  Alexander Bautz 2 months, 1 week ago.

  • Author
  • #19259


    I have a list with DFFS with a vLookup. When I open the Disp/Edit forms normally in modal and add a child record via vLookup I have no issues. However, when I try to use javascript to open the Disp/Edit form in a modal when I create my child item I begin typing in the Title column. The first time I hit the space bar the parent record opens up in a new modal. I have tried both of the below methods to open my form. I’m assuming it has something to do with the pagetype in the URL as I’m using 4 and 6 instead of 5 and 7. Any ideas how to get around this issue?

    This issue was not present in It is happening with

    var URL = $j_site + ‘/_layouts/listform.aspx?PageType=4&ListId=’ + $j_restList + ‘&ID=’ + _finReqID;
    var _function = “EditItem2(null,'” + URL + “‘)”;

    function openModalDialog(LinkURL,LinkTitle) {
    options = SP.UI.$create_DialogOptions();
    options.url = LinkURL;
    options.title = LinkTitle;
    options.dialogReturnValueCallback = Function.createDelegate(null, CloseCallback);

    • This topic was modified 2 months, 1 week ago by  Kasey.
    • This topic was modified 2 months, 1 week ago by  Kasey.
  • #19263


    Does not occur in

    • This reply was modified 2 months, 1 week ago by  Kasey.
  • #19266

    Alexander Bautz

    This sounds strange. Try changing the function like this:

    function openModalDialog(LinkURL,LinkTitle) {
        var options = {
                if(status === 1){
                    // The dialog item was edited
                   // The dialog item was canceled

    Any difference?


You must be logged in to reply to this topic.