Versions Compared

Key

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

...

Expand
Code Block
{
      "name": "cpr.participant.birthDate",
      "caption": "Birth Date",
      "type": "date",
      "dateOnly": true,
      "optional": true,
      "showIf": {
        "rules": [
          {
            "field": "['(UAHS) [BW] Brain Health', 'AmolT1'].indexOf(cp.shortTitle)",
            "op": "!=",
            "value": "-1"
          }
        ]
      },
      "showInOverviewIf": "useShowIf"
    },

image-20240417-074449.pngImage RemovedScreenshot 1: When CP name ((UAHS) [BW] Brain Health) is matched to the rule, then the field “Birth Date” is shown.

image-20240417-074449.pngImage Added

Screenshot 2: When CP name (Accreta Current) is not matched to the rule, then the field “Birth Date” is not shown or hide.

image-20240417-075833.pngImage Added

Example JSON

Download