Versions Compared

Key

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

...

  • Use api.getElement("CustomerGroup").customerFieldValue, depending on what is in the CustomerGroup element.
  • First define the CustomerGroup element, set Display Mode to Never:

    Code Block
    titleCustomerGroup
    api.customerGroupEntry()


  • Then in any other element doing the calculations, use the input generation mode.
    Also, set Display Mode of this element to Quoting at least.

    Code Block
    titleSomeOtherElement
    if (api.isInputGenerationExecution()) return //asAs the first line. isInputGenerationExecution supported from version 10.0, in older versions use isSyntaxCheck
    if (api.getElement("CustomerGroup").customerFieldName == "customerId") {
      return api.getElement("CustomerGroup").customerFieldValue
    }


...