Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-347

Rerender of multiple radio numeric observations are inaccurate.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Won't Do
    • None
    • None

    Description

      When trying to use a number of separate <obs/> tags with type radio, when the encounter is rerendered incorrect/extra radio buttons are created to populate the form.

      The observations are being recorded correctly in the database from the original form submission, but on the rerender, it correctly populates the smallest number in the recorded obs, but adds a decimal to the others and creates extra widgets for them.

      For example, given the following markup and submitting a form with 1, 3, and 4 selected:

      <repeat>
      <template>
      <obs conceptId="7481" labelText="" answers="

      {num}.0" answerLabels="{num}

      " style="radio" />
      </template>
      <render num="1" /><render num="2" /><render num="3" /><render num="4" /><render num="5" /><render num="6" />
      </repeat>

      Results in the attached image where the 1 radio is refilled, but new entries are created for 3.0 and 4.0 rather than just using 3 and 4.

      Gliffy Diagrams

        Attachments

          Activity

            People

              Unassigned Unassigned
              sgithens Steven Githens
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: