locked
on dropdown select, how to make another field optional or mendatory RRS feed

  • Question

  • hi Friends

    i have 2 columns in list col1(choice type) ,col2(single line of text)

    i want from col1 if i select 1st value A then col2 shud be optional and if i choose B then col2 shud be mendatory.

    Is this possible..please if someone know then plzzzzz give me idea

    Thanks:)


    sudhanshu sharma
    • Edited by Mike Walsh FIN Monday, September 12, 2011 1:55 PM .... in title removed. Trying to push post
    Monday, September 12, 2011 11:40 AM

All replies

  • Hi,

    A small jquery / java script can help you here. I have some good links for your reference:

    http://www.sharepointkings.com/2010/05/required-field-using-jquery-in-newform.html

    http://www.endusersharepoint.com/STP/viewtopic.php?f=10&t=463

    Hope it could help


    Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
    Monday, September 12, 2011 12:31 PM
    Moderator
  • Hi sudhanshu,

    Based on my testing, Hemendra's solutions are working.

    Could you please share why you didn't think it is an answer? I marked it as an answer. If you don't agree with it, please feel free to unmake it. Appreciate your understanding.

    Thanks,
    Jinchun Chen


    Jinchun Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @)
    Saturday, October 8, 2011 5:18 AM
    Moderator
  • Solution is seeming fine.but not at all working for me:(

     


    sudhanshu sharma
    Tuesday, October 11, 2011 5:13 AM
  • Hi Sudhanshu,

    Why it is not working in your environment? have you got any error / log? i have also used same script (some modification based on my client requirement) for one of my application.


    Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
    Wednesday, October 12, 2011 9:48 AM
    Moderator
  • HI,

    Please may i know your contact ID?dont mind


    sudhanshu sharma Do good and cast it into river :)

    Wednesday, May 23, 2012 12:16 PM