Incorrect Record Picker Values

Certified Lead Developer

Good day everyone,

I am making use of a coulpe a!pickerFieldRecords(), but in one instance it displays the corrcet values and in the other it doesn't.

Please see the screenshots I've uplaoded illustrating what's being returned for both instances.

Also see the code for both instances.


# Values are displaying incorrectly -

a!pickerFieldRecords(
    label: "Property Type",
    labelPosition: local!labelPosition,
    placeholder: "Search for the property type",
    maxSelections: 1,
    recordType: 'recordType!{7068b0aa-dd81-434e-a6a2-049c4ebc1894}AH Property Type',
    value: ri!record['recordType!{b4e98f0d-2927-4efc-87fb-bc265c91339e}AH Risk Location.fields.{7b7cc88a-959d-4ca2-b6df-dd684e8df4cf}property_type_id'],
    saveInto: ri!record['recordType!{b4e98f0d-2927-4efc-87fb-bc265c91339e}AH Risk Location.fields.{7b7cc88a-959d-4ca2-b6df-dd684e8df4cf}property_type_id'],
    required: true,
    marginAbove: "LESS",
    showRecordLinks: false
),


# Values are displaying correctly -

a!pickerFieldRecords(
    label: "External Walls Construction",
    labelPosition: local!labelPosition,
    placeholder: "Search for the external walls construction",
    maxSelections: 1,
    recordType: 'recordType!{9439a66e-f003-4d83-97b9-9f4da1e6e13b}AH External Walls Construction',
    value: ri!record['recordType!{b4e98f0d-2927-4efc-87fb-bc265c91339e}AH Risk Location.fields.{ccc556f1-5c48-4004-b8cf-d17077def1dc}external_walls_construction_id'],
    saveInto: ri!record['recordType!{b4e98f0d-2927-4efc-87fb-bc265c91339e}AH Risk Location.fields.{ccc556f1-5c48-4004-b8cf-d17077def1dc}external_walls_construction_id'],
    required: true,
    showRecordLinks: false,
    marginAbove: "LESS"
),


Using the a!dropdownField() function works as expected. I also tested the a!pickerFieldCustom() function, but that still isn’t working.

  Discussion posts and replies are publicly visible

Parents Reply Children