none
How to write this JavaScript code to manipulate NewForm.aspx using sputility.js or splistformutility.js? RRS feed

  • Question

  • My List NewForm.aspx fields are like:

    "1-Name"
    "1-Phone"
    "2-City"
    "2-Country"

    What JavaScript code will collapse all fields starting with 1 in a group - then will collapse all fields starting with 2 in second group and so on?
    So, in above example there will be two groups that users will see collapsed on PageLoad, but will be able to expand by clicking on that group.

    Thanks.

    Friday, February 10, 2017 11:38 PM

Answers

  • Please refer here

    http://sympmarc.com/2011/08/18/taming-long-sharepoint-list-forms-using-jquery-to-break-them-into-sections/

    and you can go for Form tab also

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

    Thanks

    Kislay

    Mark as answer if it helps you

    • Marked as answer by ran009 Saturday, February 11, 2017 6:54 PM
    Saturday, February 11, 2017 12:28 PM

All replies

  • Please refer here

    http://sympmarc.com/2011/08/18/taming-long-sharepoint-list-forms-using-jquery-to-break-them-into-sections/

    and you can go for Form tab also

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

    Thanks

    Kislay

    Mark as answer if it helps you

    • Marked as answer by ran009 Saturday, February 11, 2017 6:54 PM
    Saturday, February 11, 2017 12:28 PM
  • Hi Kislay

    You are a star :-)

    Thanks.

    Saturday, February 11, 2017 6:54 PM