Versions Compared

Key

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

...

Code Block
(function () {
    if(/form/obs/weight2/value==6101 || (/form/obs/weight3/value==6101 && /form/obs/weight4/value==6101) ) {
         value =return 4;
    }
    else if (/form/obs/weight2/value==6102 || /form/obs/weight3/value==6102) {
        value =return 2;
    }
} ) ()

If the field you are comparing with is a single or multiple select (for example if the question is a coded concept), then change 6101 to '6101^NAME^99DCT'

...