none
EPM Query RRS feed

  • Question

  • Hi

    I have a PDP (Project Detail Page) page in pwa and one check box and another one is text box on it.Simply i want that, when my check box is checked then text box is required field and when check box is unchecked then text box not required field.

    Monday, December 5, 2011 10:56 AM

Answers

  • Hi Brajesh

    One way to do so is as Amit already explained, other way could be to embed the code piece in workflow for the same, or you can use some java script to perform similar kind of validation for required field,as when the checkbox is enabled and if someone bypasses the text field it displays alert and text box could be a project level custom field where as checkbox could be created using javascript

    i did used a similar kind of javascript to validate dates on PDP page using onblur event, you might wanna have a look at it

    http://epmxperts.wordpress.com/2011/09/02/date-validation-on-pdp-page-using-javascript/

    However i feel from Usability perspective and overall experience a custom webpart OR workflow embedded code would be an ideal solution

    Let us know if this helps


    Thanks | Sunil Kr Singh | http://epmxperts.wordpress.com
    Monday, December 5, 2011 10:13 PM
    Moderator

All replies

  • Hi there,

    You will need to create a custome web part in PWA which can be used in a PDP page. THere is a sample on Solution strater for PDP customization:
    Solution Starter\Deployment\PDPCustomizations
    http://archive.msdn.microsoft.com/P2010SolutionStarter

    May be , you can try with JQuery:
    http://gallery.technet.microsoft.com/SharePoint-list-Lookup-0c748ae0

    Hope that helps.


    Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82
    Monday, December 5, 2011 11:38 AM
  • Hi Brajesh

    One way to do so is as Amit already explained, other way could be to embed the code piece in workflow for the same, or you can use some java script to perform similar kind of validation for required field,as when the checkbox is enabled and if someone bypasses the text field it displays alert and text box could be a project level custom field where as checkbox could be created using javascript

    i did used a similar kind of javascript to validate dates on PDP page using onblur event, you might wanna have a look at it

    http://epmxperts.wordpress.com/2011/09/02/date-validation-on-pdp-page-using-javascript/

    However i feel from Usability perspective and overall experience a custom webpart OR workflow embedded code would be an ideal solution

    Let us know if this helps


    Thanks | Sunil Kr Singh | http://epmxperts.wordpress.com
    Monday, December 5, 2011 10:13 PM
    Moderator