Ask a questionAsk a question
 

AnswerList in SharePoint - manipulate fields within a form

  • Wednesday, June 24, 2009 6:57 PMMacNut Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello all,

    First of all, I have created a list in SharePoint.  Let's say we have a field called "Field 1" and it's a checkbox.  Is there a way, where in the form you say "If Field 1 is checked, show Field 2"  type of thing and then Field 2 appears and it's a text box that we want them to fill out? Otherwise, if they DO NOT check that checkbox for field 1....we don't want Field 2 to show up.

    Is this possible?

    Thanks!
    MN

Answers

All Replies

  • Wednesday, June 24, 2009 7:29 PMMilan Chauhan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You can creaet custom control Field to achieve this.

  • Wednesday, June 24, 2009 7:47 PMsympmarc Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Lots of posts in this forum about this sort of thing.  Search for 'cascading'.

    M.
    Marc D Anderson - Sympraxis Consulting LLC - Marc D Anderson's Blog
  • Thursday, June 25, 2009 7:17 AMArup R Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,
    I can suggest you the simpleset way to do it. Just use JavaScript for checkbox onclick or onchange and write your show hide logic.

    for any doubt,feel free to ask.

    Thanks
    Arup
    Success does not Matter.
  • Thursday, July 02, 2009 1:10 PMMacNut Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Thanks for all your responses.

    Anup...how would I go about coding that in the list?  Where do I even put the code for a field in a list.....as you can see, I'm a novice with coding in Sharepoint.

    Thank you for your help in advance.

    MN

  • Friday, July 03, 2009 7:01 PMArup R Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    Hi,
    It depend on which form(New or Edit) you are trying to apply this logic. For every list there are tfour form associated
    a. Newform.aspx
    b. editform.aspx
    c. dispform.aspx
    d. allites.aspx

    so as per your requirement just open that page in sharepoint designer and write your logic by javascript inside that page itself.



    --- Arup R(MCTS) Success does not Matter.
    • Proposed As Answer byArup R Saturday, July 04, 2009 7:26 PM
    •