List in SharePoint - manipulate fields within a form<span class=258040716-24062009><span style="font-size:x-small;font-family:Tahoma">Hello all,<br/><br/>First of all, I have created a list in SharePoint.  Let's say we have a field called &quot;Field 1&quot; and it's a checkbox.  Is there a way, where in the form you say &quot;If Field 1 is checked, show Field 2&quot;  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.<br/><br/>Is this possible?<br/><br/>Thanks!<br/>MN</span></span>© 2009 Microsoft Corporation. All rights reserved.Sat, 04 Jul 2009 19:26:45 Zf12e21d0-0811-4d9c-8b2a-d062c0098645http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#f12e21d0-0811-4d9c-8b2a-d062c0098645http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#f12e21d0-0811-4d9c-8b2a-d062c0098645MacNuthttp://social.msdn.microsoft.com/Profile/en-US/?user=MacNutList in SharePoint - manipulate fields within a form<span class=258040716-24062009><span style="font-size:x-small;font-family:Tahoma">Hello all,<br/><br/>First of all, I have created a list in SharePoint.  Let's say we have a field called &quot;Field 1&quot; and it's a checkbox.  Is there a way, where in the form you say &quot;If Field 1 is checked, show Field 2&quot;  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.<br/><br/>Is this possible?<br/><br/>Thanks!<br/>MN</span></span>Wed, 24 Jun 2009 18:57:11 Z2009-06-24T18:57:11Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#28d1a837-297f-4409-b066-7df275ab1ac5http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#28d1a837-297f-4409-b066-7df275ab1ac5Milan Chauhanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Milan%20ChauhanList in SharePoint - manipulate fields within a formYou can creaet custom control Field to achieve this. <div><br/></div> <div>For Reference :  <a href="http://msdn.microsoft.com/en-us/library/aa981226.aspx"> http://msdn.microsoft.com/en-us/library/aa981226.aspx</a></div>Wed, 24 Jun 2009 19:29:22 Z2009-06-24T19:31:25Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#3549c77c-73fd-4284-9744-0c7b335fc2c3http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#3549c77c-73fd-4284-9744-0c7b335fc2c3sympmarchttp://social.msdn.microsoft.com/Profile/en-US/?user=sympmarcList in SharePoint - manipulate fields within a formLots of posts in this forum about this sort of thing.  Search for 'cascading'.<br/><br/>M.<hr class="sig">Marc D Anderson - <a href="http://www.sympraxisconsulting.com">Sympraxis Consulting LLC</a> - <a href="http://mdasblog.wordpress.com">Marc D Anderson's Blog</a>Wed, 24 Jun 2009 19:47:34 Z2009-06-24T19:47:34Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#a95286b0-7a36-47e1-a373-4144ef34b0bdhttp://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#a95286b0-7a36-47e1-a373-4144ef34b0bdArup Rhttp://social.msdn.microsoft.com/Profile/en-US/?user=Arup%20RList in SharePoint - manipulate fields within a formHi,<br/>I can suggest you the simpleset way to do it. Just use JavaScript for checkbox onclick or onchange and write your show hide logic.<br/><br/>for any doubt,feel free to ask.<br/><br/>Thanks<br/>Arup<hr class="sig">Success does not Matter.Thu, 25 Jun 2009 07:17:38 Z2009-06-25T07:17:38Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#5ce1e352-053e-4b93-93dc-445a9cdb3ef7http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#5ce1e352-053e-4b93-93dc-445a9cdb3ef7MacNuthttp://social.msdn.microsoft.com/Profile/en-US/?user=MacNutList in SharePoint - manipulate fields within a form<p>Thanks for all your responses.<br/><br/>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.<br/><br/>Thank you for your help in advance.<br/><br/>MN</p>Thu, 02 Jul 2009 13:10:53 Z2009-07-02T13:10:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#5d2d1d8a-88c6-411d-9a8f-2613e505f774http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/f12e21d0-0811-4d9c-8b2a-d062c0098645#5d2d1d8a-88c6-411d-9a8f-2613e505f774Arup Rhttp://social.msdn.microsoft.com/Profile/en-US/?user=Arup%20RList in SharePoint - manipulate fields within a formHi, <div>It depend on which form(New or Edit) you are trying to apply this logic. For every list there are tfour form associated</div> <div>a. Newform.aspx</div> <div>b. editform.aspx</div> <div>c. dispform.aspx</div> <div>d. allites.aspx</div> <div><br/></div> <div>so as per your requirement just open that page in sharepoint designer and write your logic by javascript inside that page itself.</div> <div><br/></div> <div><br/></div><hr class="sig">--- Arup R(MCTS) Success does not Matter.Fri, 03 Jul 2009 19:01:27 Z2009-07-03T19:01:27Z