Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Hiding one of the label field while collecting unplanned specimen

Currently, in a CP with no label format and JSON configuration, two label fields are being displayed while creating an unplanned specimen. See the attached image below:

Find the below options to hide one of the additional label fields.

Option 1: Hide the single label field on top of the page (CP level JSON configuration)

You can configure the dictionary section of the CP JSON with the below-mentioned code.

{ "name": "specimen.label", "caption": "Label", "type": "text", "optional": true, "showIf": { "op": "OR", "rules": [ { "field" : "specimen.label", "op" : "exists" } ] } }

This will hide the ‘Label field’ at the top. The user will now have to enter the details in the below mandatory label field.

Option 2: Hide the ‘Mandatory label field’ (System-level configuration)

To do so, you will have to change the below code at the system-level JSON under the common section from true to false. For more details, refer to the wiki page

{ "addSpecimen": { "allowMultipleSpecimens": false, "showCreateAliquots": true },

This will hide the multiple specimen section and the users will be able to see only the label field at the top.

Choose option 2 only if multiple unplanned specimens will not be collected. No need to do any CP level configuration for the label field as mentioned in option 1

 

Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com