Solved
Populate Choice Values in Dropdown from Record - is it possible?
Hi,
How would I go about getting option 1 and option 2.

show up in my choice labels for a dropdown.

Is this even possible?
All similar topics, didnt result in very good answers.
Hi,
How would I go about getting option 1 and option 2.

show up in my choice labels for a dropdown.

Is this even possible?
All similar topics, didnt result in very good answers.
Hi [mention:5e40108269fb4d2e9dd13cc5b07cda42:e9ed411860ed4f2ba0265705b8793d05],
You can try a code similar to the below one:
a!localVariables(
local!a: a!queryRecordType(
recordType: 'recordType!BTM Cost Center',
pagingInfo: a!pagingInfo(1,500)
).data,
local!b,
{
a!dropdownField(
value: local!b,
placeholder: "Please select",
choiceLabels: index(local!a, 'recordType!BTM Cost Center.fields.CostCenterLabel',null),
choiceValues: index(local!a, 'recordType!BTM Cost Center.fields.CostCenterId',null),
)
}
)
This code it is not fully working as I tried to mock up your recordType, so you will need to adjust these bits, but if what your were looking for was to display the CostCenterLabel and store the CostCenterId, the concept is in there.
Regards,
Acacio B.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.