none
Document set in office 365 SharePoint site RRS feed

  • Question

  • Hi,

    I have created one document set and added that on document library.

    When i am clicking on "new->my document set" then NewDocSet.aspx is opening (please see below image).

    

    What i want to ask that is this possible to change NewDocSet.aspx page to my custom page ?

    (please see below image)

    On my custom page, i want to add my custom form (j query) where i will have many input controls , date pickers and also some j query functions which will trigger when input control change.

    So in short, i want to change NewDocSet.aspx page URL with my page/site page URL.

    Is this possible ?

    Please Help. 

      


    anuj

    Saturday, April 1, 2017 9:54 AM

Answers

  • Hi Anuj,

    You can use jsLink for this implementation, use below ink,

    Modifying NewDocSet.aspx without dirty hacks


    Hope this help.

    Vote - if you find this helpful

    Marked as Answer - if you see this reply being an answer to the question of the thread


    Regards,

    Amjad Khan

    Blog: https://amjadk.com

    Sunday, April 2, 2017 5:48 AM
  • Hi anuj,

    Since the script only needs to run one time, you don’t need to put the script into the NewDocSet.aspx page.

    Put it in a page in the current site and run it, make sure it works properly, then you can delete it from the page cause the customization already attach to the field.

    Best regards,

    Patrick

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by anuj qq Monday, April 17, 2017 2:13 PM
    Sunday, April 9, 2017 12:02 PM
    Moderator

All replies

  • Hi Anuj,

    You can use jsLink for this implementation, use below ink,

    Modifying NewDocSet.aspx without dirty hacks


    Hope this help.

    Vote - if you find this helpful

    Marked as Answer - if you see this reply being an answer to the question of the thread


    Regards,

    Amjad Khan

    Blog: https://amjadk.com

    Sunday, April 2, 2017 5:48 AM
  • Hi anuj,

    Please check that whether Amjad's reply can solve you issue.

    Best regards,

    Patrick


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Monday, April 3, 2017 6:04 AM
    Moderator
  • Hi Patrick,

    I have checked Amjad's reply.

    https://smindreau.wordpress.com/2016/09/15/modifying-newdocset-aspx-without-dirty-hacks/

    It can be useful but in that link they were not mentioned that where we need to put below script

    // Get the list
    ctx = SP.ClientContext.get_current();
    list = ctx.get_web().getList("/server relative path!!/")
    ctx.load(list);
    ctx.executeQueryAsync();
     
    // Get the field
    fields = list.get_fields();
    ctx.load(fields);
    ctx.executeQueryAsync();
    field = fields.getByTitle("field name you want to set CSR for");
    ctx.load(field);
    ctx.executeQueryAsync();
     
    // Set the JS Link
    field.set_jsLink("~siteCollection/path/to.js");
    field.update();
    ctx.executeQueryAsync();

     

    Do we need to put above link on master page or in newdocset-aspx page ?


    anuj

    Monday, April 3, 2017 6:42 AM
  • Hi Anuj,

    Please take below link for your reference for implementation,

    https://code.msdn.microsoft.com/office/Client-side-rendering-code-80cc9b05

    This is for new item creation whereas you need to customize for your New Document Set.aspx requirement.


    Hope this help.

    Vote - if you find this helpful

    Marked as Answer - if you see this reply being an answer to the question of the thread


    Regards,

    Amjad Khan

    Blog: https://amjadk.com

    Tuesday, April 4, 2017 7:03 AM
  • Hi,

    Thanks for your reply.

    I have just checked "Client-side-rendering" CSR on a custom list.

    But for NewDocSet.aspx page, we cant edit NewDocSet.aspx page also using SharePoint designer we cant edit NewDocSet.aspx.

    So how i can work on it ?

    Thanks.


    anuj

    Tuesday, April 4, 2017 11:41 AM
  • Hi anuj,

    Since the script only needs to run one time, you don’t need to put the script into the NewDocSet.aspx page.

    Put it in a page in the current site and run it, make sure it works properly, then you can delete it from the page cause the customization already attach to the field.

    Best regards,

    Patrick

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by anuj qq Monday, April 17, 2017 2:13 PM
    Sunday, April 9, 2017 12:02 PM
    Moderator
  • Hi anuj,

    Any update?

    Best regards,

    Patrick


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Thursday, April 13, 2017 3:05 AM
    Moderator
  • Hi Patrick,

    Thanks for all your reply.

    I am using

    https://gist.github.com/Oceanswave/e0cd45e2083e51c5026117dc74d65d41

    For custom document set page.

    Thanks for your great support.


    anuj

    Friday, April 14, 2017 2:07 PM