Help with Javascript in calculation
I have a category field with three options: New LTD, DAC or No Action. If New LTD or DAC is selected I want to set the Budget for the project at 200. If No Action or not set the budget should be 0. var Budget; if ( @Option Taken == 'DAC' || 'New LTD' ) { Budget == 200; } else { Budget == 0;} I am getting 0 even if DAC or New LTD is chosen.

  • Normally there is some delay after you update the JS code. If its still not working - try to simply print @Option Taken without the conditions and see what is the data shown Is the category field a single select or multi select?
  • Please change the code to var Budget; if ( @Option Taken == 'DAC' || @Option Taken == 'New LTD' ) { Budget == 200; } else { Budget == 0; }
This question is closed.