Adding text field automatically through radio button in sharepoint 2010

Answered Adding text field automatically through radio button in sharepoint 2010

  • Friday, May 04, 2012 1:49 PM
     
     

    I am new to sharepoint, during development process I am stuck at adding text field when click type="other* , i have three radio buttons with choise a, b and other.. when someone select "other" i want a text field  so user can input a text value manually.

    If you know some code to achieve it that would be great , also please mention wher to copy and paste that code.

    Thanks for the help.

All Replies

  • Friday, May 04, 2012 1:47 PM
     
     

    I am new to sharepoint, during development process I am stuck at adding text field when click type="other* , i have three radio buttons with choise a, b and other.. when someone select "other" i want a text field  so user can input a text value manually.

    If you know some code to achieve it that would be great , also please mention wher to copy and paste that code.

    Thanks for the help.

  • Saturday, May 05, 2012 3:12 PM
     
     Answered

    Hi,

    You can achieve this functionality ootb (out of the box). Create a new field (column) of type "Choice (menu to choose from)" with the following settings:

    1) Type each choice on a separate line </label>: "a", "b" [write all possible options (say a,b) in the given textarea in a separate line]
    2) Display choices using : "Radio Buttons" (select 'Radio Buttons' option)
    3) Allow 'Fill-in' choices: "Yes" (select 'Yes' option)

    Once this field (column) is properly configured as described above, the user will 3 radio buttons in new/edit forms as follows:

    1) a (radio button)
    2) b (radio button)
    3) Specify your own value (radio button + text box)

    Hope this helps.

    Regards,
    Devang Bhavsar

  • Tuesday, May 08, 2012 9:10 AM
     
     

    Hi,

    You can achieve this functionality ootb (out of the box). Create a new field (column) of type "Choice (menu to choose from)" with the following settings:

    1) Type each choice on a separate line </label>: "a", "b" [write all possible options (say a,b) in the given textarea in a separate line]
    2) Display choices using : "Radio Buttons" (select 'Radio Buttons' option)
    3) Allow 'Fill-in' choices: "Yes" (select 'Yes' option)

    Once this field (column) is properly configured as described above, the user will 3 radio buttons in new/edit forms as follows:

    1) a (radio button)
    2) b (radio button)
    3) Specify your own value (radio button + text box)

    Hope this helps.

    Regards,
    Devang Bhavsar

    Many thanks, it works but it says "specify your own Value" instead i wanted to use "other" can i do that?