Uploaded image for project: 'Survey'
  1. Survey
  2. SURVEY-47

There are white spaces in the "id" on each input radio generated by the survey

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 1.1.1, 1.2.0
    • None
    • None
    • None

      How to reproduce :

      • insert a single choice on a survey
      • Add the value "My single choice"
      • it generate that :
        <option id="type-organisme-1_Conseil général" name="type-organisme-1" value="Conseil général"</option>

          [SURVEY-47] There are white spaces in the "id" on each input radio generated by the survey

          Laure Lopez added a comment - - edited

          I reproduce it with ametys-plugin-survey-resources-1.1.0

          Laure Lopez added a comment - - edited I reproduce it with ametys-plugin-survey-resources-1.1.0

          Laurence Aumeunier added a comment - - edited

          I can not reproduce.
          The survey does not generated <option> field.

          With the test you describe, I have:

          <div class="field">
             <div class="input"><input type="radio" id="question_opt-conseil-general" name="question" value="opt-conseil-general"></div>
             <div class="label"><label for="question_opt-conseil-general">Conseil général</label></div>
             <div class="field-end"></div>
          </div>
          

          Did you override the service rendering ?

          Laurence Aumeunier added a comment - - edited I can not reproduce. The survey does not generated <option> field. With the test you describe, I have: <div class= "field" > <div class= "input" > <input type= "radio" id= "question_opt-conseil-general" name= "question" value= "opt-conseil-general" > </div> <div class= "label" > <label for= "question_opt-conseil-general" > Conseil général </label> </div> <div class= "field-end" > </div> </div> Did you override the service rendering ?

            laurence Laurence Aumeunier
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: