CA Service Management

Expand all | Collapse all

Horizontal survey answer

  • 1.  Horizontal survey answer

    Posted Aug 29, 2016 05:07 AM

    Hi,

     

    We've upgraded the system from 12.6 to 14.1.How to arrange horizontal survey answer at survey ?

    We want to be side by side the following answer. Is this possible?



  • 2.  Re: Horizontal survey answer

    Posted Aug 31, 2016 11:04 AM

    Hi, Melis,

     

    You may customize do_svy.htmpl your own code. Think that, your survey id is 0001 your question id is 40001 then answers come horizontal else answers come vertical

     

    Regards,

     

    Turker



  • 3.  Re: Horizontal survey answer
    Best Answer

    Posted Sep 01, 2016 04:08 AM

    Hi Melis,

     

    Our employee survey sample is here 

     

    Code is here;

     

    <!-- the answers-->
    <PDM_IF "$question.id" == "400001">
       <tr><td>
    </PDM_IF>
    <PDM_LIST FACTORY=svy_atpl where="owning_survey_question = $question.id" PREFIX=answer>
       <PDM_IF "$question.id" != "400001">
         <tr>
       </PDM_IF>
       <PDM_IF "$question.id" != "400001">
         <PDM_IF "$question.resp_required" == "1" >
           <td valign="top" class="requiredlabeltext">
         <PDM_ELSE>
           <td valign="top" class="labeltext">
         </PDM_IF>
         <PDM_IF "$question.mult_resp_flag" == "1" >
           <input type="checkbox" name="q$question.id" value=$answer.id onclick="ck_req(idx$question.sequence,this.name);">
         <PDM_ELSE>
           <input type="radio" name="q$question.id" value=$answer.id onclick="ck_req(idx$question.sequence,this.name);">
         </PDM_IF>
         <font style="font-weight: normal; font-size: 12px">$answer.text</font>
         </td>
       <PDM_ELSE>
         <PDM_IF "$question.mult_resp_flag" == "1" >
           <div style="display: inline-block"><input type="checkbox" name="q$question.id" value=$answer.id onclick="ck_req(idx$question.sequence,this.name);">
         <PDM_ELSE>
           <div style="display: inline-block"><input type="radio" name="q$question.id" value=$answer.id onclick="ck_req(idx$question.sequence,this.name);">
         </PDM_IF>
         <font style="font-weight: normal; font-size: 12px">$answer.text</font></div>
       </PDM_IF>
    </PDM_LIST>
    <PDM_IF "$question.id" == "400001">
       </td>
    </PDM_IF>

     

    Regards,

    Turker



  • 4.  Re: Horizontal survey answer

    Posted Sep 06, 2016 04:44 AM

    Hi Turker,

     

    Thank you for your suggestion, it works. I have one more question about survey. Is it possible to use "Enter" in survey question textbox? I have to use more than one lines in question text. I am able to use in Edit mode, but when I save the changes it doesn't appear on detail screen. All written looks side by side.

     

    Thanks,

    Cansu.



  • 5.  Re: Horizontal survey answer

    Posted Sep 20, 2016 08:26 AM

    Hi Cansu,

     

    You can write question text as html format like following;

     

    "Aldığınız hizmetin kalitesini değerlendirir misiniz?" -> Show as "Aldığınız hizmetin kalitesini değerlendirir misiniz?"

     

    "Aldığınız hizmetin kalitesini değerlendirir<br>misiniz?"

    -> Show as

    "Aldığınız hizmetin kalitesini değerlendirir

    misiniz?"

     

    Best Regards,

     

    Türker



  • 6.  Re: Horizontal survey answer

    Posted Feb 01, 2017 09:48 AM

    Hi to all

    i have testing this solution to us, because is the same need we have, to make horizontally 5 answers for each question.

    I have copied your code and pasted in my do_svy.htmpl, and i have changed the number of question, but it doesn't works.

    I have testing it with my user, is possible than it could be the problem because i'm analyst??

    Here is the code i put on, that is your code with the question number modified and anything more.

     

    <!-- the answers-->
    <PDM_IF "$question.id" == 400157>
    <tr><td>
    </PDM_IF>
    <PDM_LIST FACTORY=svy_atpl where="owning_survey_question = $question.id" PREFIX=answer>
    <PDM_IF "$question.id" != 400157>
    <tr>
    </PDM_IF>
    <PDM_IF "$question.id" != 400157>
    <PDM_IF "$question.resp_required" == "1" >
    <td valign="top" class="requiredlabeltext">
    <PDM_ELSE>
    <td valign="top" class="labeltext">
    </PDM_IF>
    <PDM_IF "$question.mult_resp_flag" == "1" >
    <input type="checkbox" name="q$question.id" value=$answer.id onclick="ck_req(idx$question.sequence,this.name);">
    <PDM_ELSE>
    <input type="radio" name="q$question.id" value=$answer.id onclick="ck_req(idx$question.sequence,this.name);">
    </PDM_IF>
    <font style="font-weight: normal; font-size: 12px">$answer.text</font>
    </td>
    <PDM_ELSE>
    <PDM_IF "$question.mult_resp_flag" == "1" >
    <div style="display: inline-block"><input type="checkbox" name="q$question.id" value=$answer.id onclick="ck_req(idx$question.sequence,this.name);">
    <PDM_ELSE>
    <div style="display: inline-block"><input type="radio" name="q$question.id" value=$answer.id onclick="ck_req(idx$question.sequence,this.name);">
    </PDM_IF>
    <font style="font-weight: normal; font-size: 12px">$answer.text</font></div>
    </PDM_IF>
    </PDM_LIST>
    <PDM_IF "$question.id" == 400157>
    </td>
    </PDM_IF>



  • 7.  Re: Horizontal survey answer

    Posted Feb 01, 2017 09:53 AM

    Hi again!!

     

    i've discovered that it works with Chrome but doesn't works with I.Explorer 11...

    any idea??Chrome works but Explorer doesn't



  • 8.  Re: Horizontal survey answer

    Posted Feb 02, 2017 04:29 AM

    Hi AdminMC,

    you can try to put following code in <HEAD> tag of html on do_svy.htmpl file

    if you use 12.9 version of SDM

    <head>
          <meta http-equiv="X-UA-Compatible" content="IE=10;IE=EDGE">


  • 9.  Re: Horizontal survey answer

    Posted Feb 02, 2017 05:44 AM

    Thank you so much!!!!!

    It works!!!



  • 10.  Re: Horizontal survey answer

    Posted Feb 02, 2017 07:32 AM

    Now, we are testing different ways to automatize this. In other words, instead of make a comparison with the question.id, which make necessary to modify form for every question that should be horizontal, put an special char in question text, as follows:

    h/Are you satisfied with the resolution method?

     

    Then, we want to:

    1.- shows the question.text except the first 2 characters if there are "h/"

    2.- make the PDM_IF with this 2 characters to apply the horizontal aligment.

     

    We have little problems making the comparison of text value first 2 characters, but we are working on it.

     

    How can we suggest to CA that it would be so useful for many users to have a field that will do that, at the question form and table, only with value "horizontal" or "vertical"??



  • 11.  Re: Horizontal survey answer

    Posted Feb 02, 2017 09:05 AM

    I agree with you, this is useful need.

     

    For suggest to CA by create an idea on community.

     

    For your solution may not be healthy, but saved the day (provide workaround) 

     

    Best Regards,



  • 12.  Re: Horizontal survey answer

    Posted May 11, 2018 08:28 AM

    hi,

    how check its submitted answer by the enduser in sdm.

    regards