Versions Compared

Key

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

...

Expand
titleClick here to view details...
Code Block
languagexml
<showWhen><![CDATA[$extendedObj.cpShortTitle = "ASS12"]]></showWhen>

The form is attached at the specimen custom field level for 2 CPs.

When the showWhen condition is satisfied the field will be visible i.e for all the specimens in the ASS12 CP the field ‘Did you fast today?' will be visible

Whereas for the other CP, the additional fields section is blank.

You can also add multiple CPs in the condition if you wish to show this field for only 2 CPs.

Code Block
languagexml
<showWhen><![CDATA[$extendedObj.cpShortTitle =  "ASS12" or $extendedObj.cpShortTitle = "LSC"]]></showWhen>

Please note that both the CPs mentioned here did not have any JSON attached

...