Error in Multiple Dropdown

Certified Associate Developer

I have used an multiple dropdown box here and whenever i try to select more than 1 option from the multiple dropdown list it is showing this error. Can anyone please guide me through this issue kindly.

Thanks and Regards.

  Discussion posts and replies are publicly visible

  • 0
    Certified Associate Developer
    in reply to Shubham Aware

    a!wizardLayout(
    titleBar: a!headerTemplateSimple(
    title: if(
    ri!isUpdate,
    "Update Post Job",
    "Add New Job"
    ),
    secondaryText: if(
    ri!isUpdate,
    "Update details for the post job",
    "Enter details of the job posting"
    ),
    titleColor: "STANDARD",
    stampIcon: ""
    ),
    isTitleBarFixed: true,
    backgroundColor: "#fbfbfb",
    steps: {
    a!wizardStep(
    label: "Details",
    contents: {
    a!cardLayout(
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!textField(
    label: "Company Name",
    labelPosition: "ABOVE",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}companyName'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}companyName'],
    characterLimit: 255,
    showCharacterCount: false,
    required: true
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!textField(
    label: "Skills Needed",
    labelPosition: "ABOVE",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}skillsNeeded'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}skillsNeeded'],
    characterLimit: 255,
    showCharacterCount: false,
    required: true,
    marginAbove: "LESS"
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
    choiceValues: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
    label: "Min. Experience (Yrs)",
    labelPosition: "ABOVE",
    placeholder: "--- Select Experience ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}minExperience'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}minExperience'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"Full-TIme", "Part-Time", "Contract", "Internship"},
    choiceValues: {"Full-TIme", "Part-Time", "Contract", "Internship"},
    label: "Job Type",
    labelPosition: "ABOVE",
    placeholder: "--- Select Job Type ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}jobType'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}jobType'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"On-Site", "Remote", "Hybrid"},
    choiceValues: {"On-Site", "Remote", "Hybrid"},
    label: "Remote",
    labelPosition: "ABOVE",
    placeholder: "--- Select Remote ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}remote'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}remote'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"IT Services and IT Consulting", "Professional Services"},
    choiceValues: {"IT Services and IT Consulting", "Professional Services"},
    label: "Industry",
    labelPosition: "ABOVE",
    placeholder: "--- Select Industry ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}industry'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}industry'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
    choiceValues: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
    label: "Job Function",
    labelPosition: "ABOVE",
    placeholder: "--- Select Job Function ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}jobFunction'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}jobFunction'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!dropdownField(
    choiceLabels: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
    choiceValues: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
    label: "Title",
    labelPosition: "ABOVE",
    placeholder: "--- Select Title ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}title'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}title'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!multipleDropdownField(
    choiceLabels: {"Medical Insurance", "Vision Insurance", "Dental Insurance", "Pension Plan", "Paid Maternity Leave", "Paid Paternity Leave", "Commuter Benifits", "Disability Insurance"},
    choiceValues: {"Medical Insurance", "Vision Insurance", "Dental Insurance", "Pension Plan", "Paid Maternity Leave", "Paid Paternity Leave", "Commuter Benifits", "Disability Insurance"},
    label: "Benifits",
    labelPosition: "ABOVE",
    placeholder: "--- Select Benefits ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{0774c72a-97f4-4ec1-a160-b5eaba2af359}benifits'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{0774c72a-97f4-4ec1-a160-b5eaba2af359}benifits'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!multipleDropdownField(
    choiceLabels: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
    choiceValues: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
    label: "Commitment",
    labelPosition: "ABOVE",
    placeholder: "--- Select Commitments ---",
    value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}commitment'],
    saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}commitment'],
    searchDisplay: "AUTO",
    required: true,
    validations: {}
    )
    }
    )
    }
    )
    },
    width: "WIDE"
    )
    }
    )
    },
    style: "NONE",
    shape: "SEMI_ROUNDED",
    padding: "MORE"
    )
    }
    ),
    a!wizardStep(
    label: "Location",
    contents: {
    a!cardLayout(
    contents: {
    a!gridLayout(
    label: "Location",
    labelPosition: "COLLAPSED",
    instructions: "Enter locations for the post job",
    headerCells: {
    a!gridLayoutHeaderCell(label: "Location"),
    a!gridLayoutHeaderCell()
    },
    columnConfigs: {
    a!gridLayoutColumnConfig(width: "NARROW_PLUS"),
    a!gridLayoutColumnConfig(width: "ICON")
    },
    rows: a!forEach(
    items: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}location'],
    expression: a!gridRowLayout(
    id: fv!index,
    contents: {
    a!textField(
    value: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}location'],
    saveInto: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}location'],
    characterLimit: 255,
    showCharacterCount: false
    ),
    a!imageField(
    images: a!documentImage(
    document: a!iconIndicator(icon: "REMOVE"),
    altText: "Remove Row" & char(32) & fv!index + 1,
    link: a!dynamicLink(
    value: fv!index,
    saveInto: {
    a!save(
    ri!deletedLocationRecords,
    if(
    a!isNotNullOrEmpty(ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}location'][save!value]['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location.fields.{1f09a335-8419-4f2d-a33a-c2043528b38d}locationId']),
    append(ri!deletedLocationRecords, ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}location'][save!value]),
    ri!deletedLocationRecords
    )
    ),
    a!save(
    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}location'],
    remove(
    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}location'],
    save!value
    )
    )
    }
    )
    ),
    size: "ICON"
    )
    }
    )
    ),
    height: "AUTO",
    addRowLink: a!dynamicLink(
    label: "Add Row",
    value: 'recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}IP Location'(),
    saveInto: a!save(
    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}location'],
    append(
    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}IP Post Job.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}location'],
    save!value
    )
    )
    ),
    shadeAlternateRows: false,
    borderStyle: "LIGHT",
    rowHeader: 1
    )
    },
    style: "NONE",
    shape: "SEMI_ROUNDED",
    padding: "MORE"
    )
    }
    )
    },
    primaryButtons: a!buttonWidget(
    label: if(
    ri!isUpdate,
    "Save",
    "Create"
    ),
    submit: true,
    style: "SOLID",
    showWhen: fv!isLastStep,
    validate: true
    ),
    secondaryButtons: a!buttonWidget(
    label: "Cancel",
    value: true,
    saveInto: ri!cancel,
    submit: true,
    style: "LINK",
    validate: false
    ),
    showButtonDivider: true
    )





    This is my full code.

  • 0
    Certified Associate Developer
    in reply to skzahed_09

    Can you try this code? this is just appending all the options into single field as text

    a!localVariables(
      local!benefits,
      {a!wizardLayout(
      titleBar: a!headerTemplateSimple(
        title: if(
          ri!isUpdate,
          "Update Post Job",
          "Add New Job"
        ),
        secondaryText: if(
          ri!isUpdate,
          "Update details for the post job",
          "Enter details of the job posting"
        ),
        titleColor: "STANDARD",
        stampIcon: ""
      ),
      isTitleBarFixed: true,
      backgroundColor: "#fbfbfb",
      steps: {
        a!wizardStep(
          label: "Details",
          contents: {
            a!cardLayout(
              contents: {
                a!columnsLayout(
                  columns: {
                    a!columnLayout(
                      contents: {
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!textField(
                                  label: "Company Name",
                                  labelPosition: "ABOVE",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}'],
                                  characterLimit: 255,
                                  showCharacterCount: false,
                                  required: true
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!textField(
                                  label: "Skills Needed",
                                  labelPosition: "ABOVE",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}'],
                                  characterLimit: 255,
                                  showCharacterCount: false,
                                  required: true,
                                  marginAbove: "LESS"
                                )
                              }
                            )
                          }
                        ),
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
                                  choiceValues: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
                                  label: "Min. Experience (Yrs)",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Experience ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"Full-TIme", "Part-Time", "Contract", "Internship"},
                                  choiceValues: {"Full-TIme", "Part-Time", "Contract", "Internship"},
                                  label: "Job Type",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Job Type ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            )
                          }
                        ),
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"On-Site", "Remote", "Hybrid"},
                                  choiceValues: {"On-Site", "Remote", "Hybrid"},
                                  label: "Remote",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Remote ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"IT Services and IT Consulting", "Professional Services"},
                                  choiceValues: {"IT Services and IT Consulting", "Professional Services"},
                                  label: "Industry",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Industry ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            )
                          }
                        ),
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
                                  choiceValues: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
                                  label: "Job Function",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Job Function ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
                                  choiceValues: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
                                  label: "Title",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Title ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            )
                          }
                        ),
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!multipleDropdownField(
                                  choiceLabels: {"Medical Insurance", "Vision Insurance", "Dental Insurance", "Pension Plan", "Paid Maternity Leave", "Paid Paternity Leave", "Commuter Benifits", "Disability Insurance"},
                                  choiceValues: {"Medical Insurance", "Vision Insurance", "Dental Insurance", "Pension Plan", "Paid Maternity Leave", "Paid Paternity Leave", "Commuter Benifits", "Disability Insurance"},
                                  label: "Benifits",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Benefits ---",
                                  value: local!benefits,
                                  saveInto: local!benefits,
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!multipleDropdownField(
                                  choiceLabels: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
                                  choiceValues: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
                                  label: "Commitment",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Commitments ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            )
                          }
                        )
                      },
                      width: "WIDE"
                    )
                  }
                )
              },
              style: "NONE",
              shape: "SEMI_ROUNDED",
              padding: "MORE"
            )
          }
        ),
        a!wizardStep(
          label: "Location",
          contents: {
            a!cardLayout(
              contents: {
                a!gridLayout(
                  label: "Location",
                  labelPosition: "COLLAPSED",
                  instructions: "Enter locations for the post job",
                  headerCells: {
                    a!gridLayoutHeaderCell(label: "Location"),
                    a!gridLayoutHeaderCell()
                  },
                  columnConfigs: {
                    a!gridLayoutColumnConfig(width: "NARROW_PLUS"),
                    a!gridLayoutColumnConfig(width: "ICON")
                  },
                  rows: a!forEach(
                    items: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                    expression: a!gridRowLayout(
                      id: fv!index,
                      contents: {
                        a!textField(
                          value: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}'],
                          saveInto: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}'],
                          characterLimit: 255,
                          showCharacterCount: false
                        ),
                        a!imageField(
                          images: a!documentImage(
                            document: a!iconIndicator(icon: "REMOVE"),
                            altText: "Remove Row" & char(32) & fv!index + 1,
                            link: a!dynamicLink(
                              value: fv!index,
                              saveInto: {
                                a!save(
                                  ri!deletedLocationRecords,
                                  if(
                                    a!isNotNullOrEmpty(ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'][save!value]['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}.fields.{1f09a335-8419-4f2d-a33a-c2043528b38d}']),
                                    append(ri!deletedLocationRecords, ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'][save!value]),
                                    ri!deletedLocationRecords
                                  )
                                ),
                                a!save(
                                  ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                                  remove(
                                    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                                    save!value
                                  )
                                )
                              }
                            )
                          ),
                          size: "ICON"
                        )
                      }
                    )
                  ),
                  height: "AUTO",
                  addRowLink: a!dynamicLink(
                    label: "Add Row",
                    value: 'recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}'(),
                    saveInto: a!save(
                      ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                      append(
                        ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                        save!value
                      )
                    )
                  ),
                  shadeAlternateRows: false,
                  borderStyle: "LIGHT",
                  rowHeader: 1
                )
              },
              style: "NONE",
              shape: "SEMI_ROUNDED",
              padding: "MORE"
            )
          }
        )
      },
      primaryButtons: a!buttonWidget(
        label: if(
          ri!isUpdate,
          "Save",
          "Create"
        ),
        submit: true,
        style: "SOLID",
        saveInto: {
          a!save(ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{0774c72a-97f4-4ec1-a160-b5eaba2af359}'],
          tostring(local!benefits))
        },
        showWhen: fv!isLastStep,
        validate: true
      ),
      secondaryButtons: a!buttonWidget(
        label: "Cancel",
        value: true,
        saveInto: ri!cancel,
        submit: true,
        style: "LINK",
        validate: false
      ),
      showButtonDivider: true
    )})

  • 0
    Certified Associate Developer
    in reply to Varun Teja Gurrapu

    "Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error [evaluation ID = 4QM6U] : An array of components cannot contain a form layout, wizard layout, or column layout. Received a wizard layout at index 1."

    This was the error that i faced after i ran the above code.

  • +1
    Certified Lead Developer
    in reply to skzahed_09

    Try this code..

    a!wizardLayout(
      titleBar: a!headerTemplateSimple(
        title: if(
          ri!isUpdate,
          "Update Post Job",
          "Add New Job"
        ),
        secondaryText: if(
          ri!isUpdate,
          "Update details for the post job",
          "Enter details of the job posting"
        ),
        titleColor: "STANDARD",
        stampIcon: ""
      ),
      isTitleBarFixed: true,
      backgroundColor: "#fbfbfb",
      steps: {
        a!wizardStep(
          label: "Details",
          contents: {
            a!cardLayout(
              contents: {
                a!columnsLayout(
                  columns: {
                    a!columnLayout(
                      contents: {
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!textField(
                                  label: "Company Name",
                                  labelPosition: "ABOVE",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{c08fdd20-8d7d-4d7b-87b9-5b77cddf1ae0}'],
                                  characterLimit: 255,
                                  showCharacterCount: false,
                                  required: true
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!textField(
                                  label: "Skills Needed",
                                  labelPosition: "ABOVE",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{2a4a6efb-1880-4885-9769-657d9a0d3d7a}'],
                                  characterLimit: 255,
                                  showCharacterCount: false,
                                  required: true,
                                  marginAbove: "LESS"
                                )
                              }
                            )
                          }
                        ),
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
                                  choiceValues: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
                                  label: "Min. Experience (Yrs)",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Experience ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{3233cbf5-b9ea-425b-89de-87ca9f43de61}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"Full-TIme", "Part-Time", "Contract", "Internship"},
                                  choiceValues: {"Full-TIme", "Part-Time", "Contract", "Internship"},
                                  label: "Job Type",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Job Type ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{25d8c2b9-a722-4827-9a7d-576007cf1ec8}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            )
                          }
                        ),
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"On-Site", "Remote", "Hybrid"},
                                  choiceValues: {"On-Site", "Remote", "Hybrid"},
                                  label: "Remote",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Remote ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{a5c53423-da0f-45a2-9bd2-2632c0d6fd2d}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"IT Services and IT Consulting", "Professional Services"},
                                  choiceValues: {"IT Services and IT Consulting", "Professional Services"},
                                  label: "Industry",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Industry ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{209d8ba4-7627-472e-84a3-92a0e38177c0}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            )
                          }
                        ),
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
                                  choiceValues: {"Information Technology", "Management", "Manufacturing", "Engineering", "Other"},
                                  label: "Job Function",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Job Function ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{deb3b8e4-e17f-4a87-b5eb-3dc96637c3fa}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!dropdownField(
                                  choiceLabels: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
                                  choiceValues: {"Software Engineer", "Development Specialist", "Technical Specialist", "Operational Specialist", "Lead Technician", "Lead Associate", "Automation Specialist", "Technical Architect"},
                                  label: "Title",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Title ---",
                                  value: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}'],
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{c9d3f040-1296-443d-9ba0-f85ab5bdf9d0}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            )
                          }
                        ),
                        a!columnsLayout(
                          columns: {
                            a!columnLayout(
                              contents: {
                                a!multipleDropdownField(
                                  choiceLabels: {
                                    "Medical Insurance",
                                    "Vision Insurance",
                                    "Dental Insurance",
                                    "Pension Plan",
                                    "Paid Maternity Leave",
                                    "Paid Paternity Leave",
                                    "Commuter Benifits",
                                    "Disability Insurance"
                                  },
                                  choiceValues: {
                                    "Medical Insurance",
                                    "Vision Insurance",
                                    "Dental Insurance",
                                    "Pension Plan",
                                    "Paid Maternity Leave",
                                    "Paid Paternity Leave",
                                    "Commuter Benifits",
                                    "Disability Insurance"
                                  },
                                  label: "Benifits",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Benefits ---",
                                  value: if(
                                    a!isNullOrEmpty(
                                      ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{0774c72a-97f4-4ec1-a160-b5eaba2af359}']
                                    ),
                                    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{0774c72a-97f4-4ec1-a160-b5eaba2af359}'],
                                    split(
                                      ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{0774c72a-97f4-4ec1-a160-b5eaba2af359}'],
                                      "; "
                                    )
                                  ),
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{0774c72a-97f4-4ec1-a160-b5eaba2af359}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            ),
                            a!columnLayout(
                              contents: {
                                a!multipleDropdownField(
                                  choiceLabels: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
                                  choiceValues: {"Career Growth and Learning", "Work-Life Balance", "Environment Sustainability"},
                                  label: "Commitment",
                                  labelPosition: "ABOVE",
                                  placeholder: "--- Select Commitments ---",
                                  value: if(
                                    a!isNullOrEmpty(
                                      ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}']
                                    ),
                                    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}'],
                                    split(
                                      ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}'],
                                      "; "
                                    )
                                  ),
                                  saveInto: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.fields.{f56371d2-87b6-4f6e-a0fe-b4eabcaeaa51}'],
                                  searchDisplay: "AUTO",
                                  required: true,
                                  validations: {}
                                )
                              }
                            )
                          }
                        )
                      },
                      width: "WIDE"
                    )
                  }
                )
              },
              style: "NONE",
              shape: "SEMI_ROUNDED",
              padding: "MORE"
            )
          }
        ),
        a!wizardStep(
          label: "Location",
          contents: {
            a!cardLayout(
              contents: {
                a!gridLayout(
                  label: "Location",
                  labelPosition: "COLLAPSED",
                  instructions: "Enter locations for the post job",
                  headerCells: {
                    a!gridLayoutHeaderCell(label: "Location"),
                    a!gridLayoutHeaderCell()
                  },
                  columnConfigs: {
                    a!gridLayoutColumnConfig(width: "NARROW_PLUS"),
                    a!gridLayoutColumnConfig(width: "ICON")
                  },
                  rows: a!forEach(
                    items: ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                    expression: a!gridRowLayout(
                      id: fv!index,
                      contents: {
                        a!textField(
                          value: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}'],
                          saveInto: fv!item['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}.fields.{f7c76f4f-6417-40e6-b6a3-47a2cf7315e4}'],
                          characterLimit: 255,
                          showCharacterCount: false
                        ),
                        a!imageField(
                          images: a!documentImage(
                            document: a!iconIndicator(icon: "REMOVE"),
                            altText: "Remove Row" & char(32) & fv!index + 1,
                            link: a!dynamicLink(
                              value: fv!index,
                              saveInto: {
                                a!save(
                                  ri!deletedLocationRecords,
                                  if(
                                    a!isNotNullOrEmpty(ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'][save!value]['recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}.fields.{1f09a335-8419-4f2d-a33a-c2043528b38d}']),
                                    append(ri!deletedLocationRecords, ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'][save!value]),
                                    ri!deletedLocationRecords
                                  )
                                ),
                                a!save(
                                  ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                                  remove(
                                    ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                                    save!value
                                  )
                                )
                              }
                            )
                          ),
                          size: "ICON"
                        )
                      }
                    )
                  ),
                  height: "AUTO",
                  addRowLink: a!dynamicLink(
                    label: "Add Row",
                    value: 'recordType!{ba213b7b-b6ea-4bb2-bafc-e0717f2a0e4e}'(),
                    saveInto: a!save(
                      ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                      append(
                        ri!record['recordType!{7d604f1b-53e2-4718-9165-019b6ea8667a}.relationships.{8a15ce41-acd6-46bc-b355-1fcc53a222db}'],
                        save!value
                      )
                    )
                  ),
                  shadeAlternateRows: false,
                  borderStyle: "LIGHT",
                  rowHeader: 1
                )
              },
              style: "NONE",
              shape: "SEMI_ROUNDED",
              padding: "MORE"
            )
          }
        )
      },
      primaryButtons: a!buttonWidget(
        label: if(
          ri!isUpdate,
          "Save",
          "Create"
        ),
        submit: true,
        style: "SOLID",
        showWhen: fv!isLastStep,
        validate: true
      ),
      secondaryButtons: a!buttonWidget(
        label: "Cancel",
        value: true,
        saveInto: ri!cancel,
        submit: true,
        style: "LINK",
        validate: false
      ),
      showButtonDivider: true
    )
    

  • 0
    Certified Associate Developer
    in reply to Shubham Aware

    Yes this code worked perfectly. Thank you for your guidance. 

    If you don't mind can you please give a brief about what i did wrong and what you did to rectify that error.

    • a!localVariables(
        local!save,
        a!multipleDropdownField(
          choiceLabels: { 1, 2, 3, 4 },
          choiceValues: { 1, 2, 3, 4 },
          labelPosition: "ABOVE",
          placeholder: "--- Select Experience ---",
          value: local!save,
          saveInto: {
            local!save,
            a!save(ri!save, joinarray(local!save, ";"))
          },
          searchDisplay: "AUTO",
          required: true,
          validations: {}
        )
      )
    • Please go through that code, hope you will fix your error.
  • 0
    Certified Associate Developer
    in reply to chaliki



    This was the error i got while running the code and chose more than a single value.

  • I hope you need to keep a ruleInput as named "save". Can you please check once?

  • 0
    Certified Lead Developer
    in reply to skzahed_09

    You need to create rule input name called “save” as string and array.

  • a!multipleDropdownField(
      label: "City",
      placeholder: "select city",
      choiceLabels: { "Mumbai", "Hyb", "Chennai", "westBengal" },
      choiceValues: { "Mumbai", "Hyb", "Chennai", "westBengal" },
      value: ri!city,
      saveInto: ri!city
    )

    Can you please go through that code?