Add the below code block in the derivatives and aliquots section, refer to Configure derivative and aliquot page for more details
{
"name" : "specimen.incrParentFreezeThaw",
"caption" : "Increment Freeze thaw",
"type" : "toggle-checkbox",
"width" : "60px",
"defaultValue" : true
}
Parent specimen page where the freeze thaw is not yet set.
Once the JSON is configured, the create derivative will have a checkbox for 'Increment Freeze thaw'. If checked, the freeze thaw for the derivative and the parent will be updated to 1. The field can be set to checked/unchecked as default in the code using "defaultValue" : true/false
After the derivative is created, the freeze thaw cycle for parent =1
Derivative sample
The aliquot creation page can also be configured to add the 'Increment Freeze thaw' field like below.
After aliquot creation, the derivative freeze thaw cycle is updated to 2
The aliquots freeze thaw cycle is also 2.