Programmatically insert choices into a Dropdown | Community
Skip to main content
Answered

Programmatically insert choices into a Dropdown

  • April 4, 2024
  • 1 reply
  • 80 views

I'd like to be able to programmatically update/insert choices into a dropdown field using the Create API.

Our use case is that each client could have differing values for this dropdown field.

It looks as though each choice in the json for a dropdown needs an 'id', 'ref' and 'label'. I have the labels but not the others.

It is possible to dynamically/programmatically insert choices into a dropdown?

Best answer by Liz

Hi @bobwilliams Thanks for stopping by the community! You can update the form using the API, which would then allow you to edit the dropdown field. Would this work for you? 

View original

1 reply

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15018 replies
  • Answer
  • April 4, 2024

Hi @bobwilliams Thanks for stopping by the community! You can update the form using the API, which would then allow you to edit the dropdown field. Would this work for you? 


Reply