Skip to main content

Search

Forms Question

Comments

2 comments

  • Christof

    Hi Carl Greenhalgh,

    display mode for sublists views on mainitem's form is not a supported feature of Rich Forms Add-In.

     

    If you're using SharePoint Online you may be able to switch to Solution Studio Online where we have this feature on sublist insertion:

     

    Otherwise you can request this feature by creating an idea here: Ideas SharePoint Add-Ins 

     

    I did some research for a workaround disabling the columns of the GridView and found this article How I can disable a column inside the Quick Edit Grid using a JSLINK linked to my WebPart.

    This script worked for my MyDisabledColumnName column:

    var statusField = ctx.ListSchema.Field.filter(function(f) {
         return f.Name === 'MyDisabledColumnName';
    });
              
    if (statusField) {
         statusField[0].AllowGridEditing = false;
    }
    0
  • Christof

    Carl Greenhalgh
    There is a working solution for this requirement:

    1. Insert a the related sublist (SP ootb) into Rich Forms

    2. Change webpart's "Toolbar Type" because the ootb "Add new item" does not set the reference to current item

     

     

    If you need a link/button to add a new sublist item, just add it in Rich Forms and configure it like this to transfer the current ID to the sublist's NewForm:

     

    On NewForm you can consume the ID from the URL and set it as Intial Value to reference lookup field:

    0

Please sign in to leave a comment.