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

Support for calling arbitrary javascript depending on the selected value of an obs

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: HTML Form Entry 2.4
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      In HTML-494 we added support for something like this:

      <obs id="disposition" conceptId="PIH:HUM Disposition categories" answerConceptIds="PIH:Transfer out of hospital,...">
          <controls>
              <when value="PIH:Transfer out of hospital" thenDisplay="#transfer-out-location"/>
          </controls>
      </obs>
      

      We should broaden this mechanism to also support:

      <obs id="disposition" conceptId="PIH:HUM Disposition categories" answerConceptIds="PIH:Transfer out of hospital,...">
          <controls>
              <when value="PIH:Transfer out of hospital" thenJavaScript="window.alert('Transferring out')" elseJavaScript="window.alert('Doing something else')"/>
          </controls>
      </obs>
      

        Attachments

          Activity

            People

            • Assignee:
              darius Darius Jazayeri [X] (Inactive)
              Reporter:
              darius Darius Jazayeri [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: