Versions Compared

Key

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

...

The following variable may need to be updated based on specific study design naming conventions -

  • SampleWeight

🔸Reagent Multiplier🔸 🔸Additive Amount🔸 should be updated to the desired amount to be calculated based on volume/weight (eg. 0.02)

Code Block
languagejs
var repeatKey = itemJson.item.itemGroupRepeatKey;
var SampleWeight = findFirstItemByName(formJson, 'Sample Volume', null, repeatKey);
var SampleWeightValue = SampleWeight.value;
var Additive = SampleWeightValue * 🔸Reagent🔸Additive Multiplier🔸Amount🔸;
return Additive.toFixed(4);

...