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.
Discussion posts and replies are publicly visible
Hi sebastians0002,
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.
Do remember to add a saveInto else you will lose what you just selected