Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A numeric field added on the nth step does not allow users you to add decimal values by default. Even if there is a pattern that allows decimals, the complete value is blanked out on entering the decimal value.

Add the below code block to the field in the ‘specimenCollection’ section to allow users to enter entering numeric values on at the nth step.

Code Block
languagejson
[ {
  "name" : "specimenCollection",
  "view" : null,
  "ctrl" : null,
  "data" : {
    "fieldGroups" : [ {
      "title" : "Anatomic Site",
      "criteria" : {
        "rules" : [ {
          "field" : "specimen.lineage",
          "op" : "==",
          "value" : "'New'"
        } ]
      },
      "fields" : [ {
        "name" : "specimen.label",
        "baseField" : "specimen.label",
        "type" : "span"
      }, {
        "name" : "specimen.anatomicSite",
        "baseField" : "specimen.anatomicSite"
      }, {
        "name" : "specimen.laterality",
        "baseField" : "specimen.laterality"
      }, {
        "name" : "specimen.extensionDetail.attrsMap.how_much_quantity_of_sample_was_used",
        "baseField" : "specimen.extensionDetail.attrsMap.how_much_quantity_of_sample_was_used",
        "modelOpts" : {
          "allowInvalid" : true
          }
      } ]     }],

   "showCollectionTree" : false
  }
}

...

Example JSON

Download