none
Project type custom text field is required RRS feed

  • Question

  • Hi everyone,

    I have the requirement in project server 2010.My requirement is that,i have four project type custom text field named as T1,T2,T3,T4. Now when i associate these fields with a PDP (Project Detail Page) i want ,when i entered any value in text box T1 ,then all remaining text box T2,T3,T4 should be Required else text box T1 is empty then all remaining text box T2,T3,T4 should not be required.

    Thanks..


    Neeraj

    Monday, January 28, 2013 7:14 AM

All replies

  • Hi Neeraj,

    use a Content Editor Webpart like described in this post http://social.msdn.microsoft.com/Forums/de-LI/project2010custprog/thread/638a2cc6-7202-4034-9a2b-d010414d3290 and place your validation code in it.

    You can use the following JavaScript code to disable the save button on the project detail page before validation and also to enable it after your validation.

    // disable save button
    PDPInfrastructure.SetSaveButtonState(false, true)
    
    // enable save button
    PDPInfrastructure.SetSaveButtonState(true, true)

    The second parameter of SetSaveButtonState is for refreshing the Ribbon UI.

    I hope this helps.

    Tom

    Tuesday, January 29, 2013 4:11 PM
  • Here is one of the sample that might be useful.

    http://gallery.technet.microsoft.com/projectserver/SharePoint-list-Lookup-0c748ae0

    Thanks,


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Monday, February 4, 2013 6:59 AM