Sharepoint Survey: Can I add a comment box to a question?

Recently, there was an interesting question in stackoverflow

I am doing a survey in SharePoint, using the built in survey tool.

I want to add a comment box next to my “ratings” questions. e.g.

Q1. Do you like fish?

  1. Not at all
  2. They’re alright
  3. I love fish!

Comment:

How can I do this all within one question? I can obviously add a new text question, but this will become Q2, and I want it to be part of the same question.

Any idea how I can do this?

By default SharePoint does not give us this option. So how can you do this? Here is a work around.

  1. Add a Question, with Text box, below the question under which you need this comment box.
  2. Edit the Newform.aspx page and insert a content editor webpart in the below of existing survey webpart.
  3. Copy and paste the below code in the content editor webpart

[sourcecode language='javascript']

[/sourcecode]

In the above code ctl00_m_g_c7647c31_a9f9_4f27_aa53_e0728c485b2c_ctl00_ctl01_ctl00_ctl00_ctl00_ctl04_ctl00_ctl00_TextField is the ID fo the Comment Textbox control. (You can get it by Viewing the Source code of the page).

All we do is get the container of the Textbox control and hide it. Here is the screenshot of a sample survey

About Hojo Clement

Hojo Clement was working in US Technology in Trivandrum as a Senior Software Engineer. He has 6 years experience in working with Web Development Technologies inlcuding MOSS and ASP.net.

15 thoughts on “Sharepoint Survey: Can I add a comment box to a question?

  1. I need to create a survey in sharepoint 2010.for a single question i need more than one answer type.for example i have a question

    q1) who is tall?

    a)raja
    b)gopal
    c)rajkumar

    Now i need to add another text box below this with an description “Others” to enter an Answer other that of those options listed above.

    can u give me the solution.

  2. Apprecizting the commitment youu put into your site and
    detailed information you present. It’s awesome to come across a blog every once in a while that isn’t the same old rehashe
    information. Wonderful read! I’ve bookmarked your site and I’m inclluding your RSS feeds to my Google account.

  3. Its like you read my mind! You appear to know a lot about
    this, like you wrote the book in it or something.

    I think that you could do with some pics to drive the message home a little bit,
    but instead of that, this is great blog. An excellent read.
    I will definitely be back.

  4. Today, I went to the beach front with my children. I found a sea shell and gave it to my 4 year old daughter
    and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear. She
    never wants to go back! LoL I know this is completely off topic but I had to tell someone!

  5. Definitely believe that which you stated. Your favorite reason appeared
    to be on the internet the easiest thing to be aware of.

    I say to you, I definitely get annoyed while people consider worries that they plainly don’t know about.

    You managed to hit the nail upon the top and
    also defined out the whole thing without having side-effects , people can take a signal.

    Will probably be back to get more. Thanks

  6. Sac Cuir Longchamp Longchamp Sac Pas Cher Pklvm
    Scopri il tuo percorso di modernizzazione delle culture con l’anatomia asimmetrica e
    complessa per la varietà di scarpe Jimmy Choo.

    Amplia il tuo stato d’animo con un restyling rivoluzionario per
    approfittare di una pettinatura superpolished per il tuo divertimento.
    Porte Cartes Longchamp Sacoche Longchamp Pas Cher wrwix Nonostante queste glorie costo Sconosciuto un pomeriggio di Georgetown scarpe di cuoio, inevitabilmente, finiscono in esaurimento fisico e mentale.
    Il modo migliore per utilizzare una Costituzione stanco, soprattutto su una calma calda
    estate è quello di fermarsi per gelato al dolcezza Argentina (1560 Wisconsin Avenue.

    Sacoche Longchamps Besace Longchamp Homme SAIPd Volontari nella contea
    ha istituito scuole e armadi opachi zaini pieni in modo che i bambini non soffrano la fame durante il fine settimana o periodi di vacanza distribuiti.
    E mobilitare record di governo di destra gradi Genitori programma di alloggi che vi aiuterà a uscire dalla motel e appartamento..
    Magasin Sac Longchamp Longchamp.Fr FLDZp Allora, che cosa fashionistas me e te piace?
    Sappiamo che gli accessori possono creare o distruggere un abito, e borse e scarpe
    sono cose molto importanti per la finitura di
    un look. Immaginate di indossare un abito di Balenciaga maxi,
    con un paio di scarpe Jimmy Choo, ma non la frizione
    giusto per andare con esso. Sac Longchamp Pour Homme Portefeuille
    Homme Longchamp ybtgg Ann Klein sarebbe crescere per essere un marchio ben voluto noto per una varietà di articoli migliori designer di abbigliamento di moda, scarpe e persino da
    ricercare in linea con i nomi e gli stili di scarpe vestiti.
    Allora troverete molto su linea di scarpe Anne Klein Moda e molto di più in questo articolo..

    Longchamp Sac Pas Cher Sacs Longchamps En Solde dAhUH I Richie figlia erano tutti affamati, vestiario,
    alloggio, e anche le scarpe se si vuole amare.
    Lo consiglierei a chiunque possa fare la differenza.
    Nouvelle Collection Longchamps Sac Longchamp Pas Cher
    Prix WUTiL Ha i colori universitari grigio, nero e rosso di opzioni di intrattenimento
    in base alle vostre preferenze fornisce. Tutto dovrebbe essere clienti rave su quanto queste scarpe,
    e così via. Sac Longchamps Occasion Sac Cabas Longchamp
    bXXML E si desidera avere una sola nuvola innescato da
    Hkan funzionato perfettamente gestire tutti mangiare digitali XML XML gadgets codice ganci non devono smartphone,
    computer brbare, tablet, macchine fotografiche, ecc?
    Poi le cose wiOne Hkan dicono che per certi gadget amanti, non si sempre alla
    ricerca di nuovi gadget e la tecnologia ci attendono.
    EH sempre alla ricerca di ciò che non è così nuovo,
    sottile, elegante, Urlaub faster.fake borse Chanel, diversi sacchi di alta qualità Replica Borse Chanel offerti
    dentro VRE.

  7. If you have taken pictures at a wedding, ask the several to provide you
    an intense viewpoint of what photos you
    took. I think we should all send one to our city
    cousins, to see pictures of big calloused hands, farmer tans
    and sun weathered wrinkled faces that hard working farmers achieve.
    3) A cable shutter release – The action of pressing the shutter
    button can create camera shake, which will lead to blurry pictures.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>