Open CarrDarch opened 6 years ago
Is it possible to retrieve both the key and value from a select type field?
I have a select field which can have multiple selections:
The field is set up to have a key and value pair used to make validation easier:
However, the API output only returns the keys:
Ideally I would like to get an object containing the selected options in a key-value pair, such as:
"development_additional_counties": { "greater-manchester" : "Greater Manchester", "lancashire" : "Lancashire", }
Is there a way of acheiving this?
Is it possible to retrieve both the key and value from a select type field?
I have a select field which can have multiple selections:
The field is set up to have a key and value pair used to make validation easier:
However, the API output only returns the keys:
Ideally I would like to get an object containing the selected options in a key-value pair, such as:
"development_additional_counties": { "greater-manchester" : "Greater Manchester", "lancashire" : "Lancashire", }
Is there a way of acheiving this?