multiple dropdown

Hi, 

i have multiple dropdown field...

i made that to reusable...

it's working in other places and only in one place it's showing error for choice vales 

error

can anyone help with this?

Thanks

  Discussion posts and replies are publicly visible

Parents Reply Children
  • a!multipleDropdownField(
                    disabled: if(
                      or(
                        not(
                          fv!item.category_txt = cons!CR_APP_SC_GENERAL_SPECIFIC_LAB_VAL[2]
                        ),
                        rule!CR_APP_FN_freezeRecords(
                          crAppSelectedItem_cdt: fv!item,
                          isDisplayed_bool: ri!isEditable_bool
                        )
                      ),
                      true(),
                      false()
                    ),
                    placeholderLabel: cons!CR_APP_TXT_PLACEHOLDER_VALUE,
                    choiceLabels: trim(
                      split(
                        local!facilityChoices.limitIdDescription_txt,
                        ";"
                      )
                    ),
                    choiceValues: trim(
                      split(
                        local!facilityChoices.limitIdDescription_txt,
                        ";"
                      )
                    ),
                    value: reject(
                      fn!isnull,
                      {
                        trim(
                          split(
                            fv!item.facility_txt,
                            ";"
                          )
                        )
                      }
                    ),
                    saveInto: a!save(
                      fv!item.facility_txt,
                      joinarray(
                        save!value,
                        ";"
                      )
                    ),
                    validations: if(
                      rule!CR_APP_FN_freezeRecords(
                        crAppSelectedItem_cdt: fv!item,
                        isDisplayed_bool: ri!isEditable_bool
                      ),
                      null,
                      rule!CR_FN_setMaximumCharactersValidation(
                        comments_txt: index(
                          fv!item,
                          "facility_txt",
                          {}
                        )
                      )
                    ),
                    required: if(
                      rule!CR_APP_FN_freezeRecords(
                        crAppSelectedItem_cdt: fv!item,
                        isDisplayed_bool: ri!isEditable_bool
                      ),
                      false(),
                      index(
                        fv!item,
                        "category_txt",
                        {}
                      ) = cons!CR_APP_SC_GENERAL_SPECIFIC_LAB_VAL[2]
                    )
                  )

  • +1
    Certified Lead Developer
    in reply to KM

    Hi there,

    According to the error, the choiceValues is null. 
    Try printing the choice values on the screen to see if it has a valid set of values, in the desired format.