Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Modify ProForma Question (Data Connection) returned value

Peter Ries September 13, 2023

Hi,

 

we have set up a dropdown field in ProForma referring to a DataConnection getting data from an API. 

 

we have data like this

{

   { id: 123, label: "abc"},

   { id 345, label: "def"}

}

where the label attributes are being displayed to the user.

 

How can we make proforma store/return the id as well in the answer. In processing backend we would need the id, not the user readable string.

 

Or as a workaround: can we somehow concatenate values from the API returned JSON to be displayed in the Label for the user.

1 answer

0 votes
Giedrius Daugmaudis September 15, 2023

The way I see it, 2 options:

  • Creating REST endpoint, that concentrates values and displays them in your desired format.
    Endpoint takes the data base link, then use endpoint link in the data connection. Screenshot 2023-09-15 104423.png
  • After submit, run answers endpoint and replace found values with automation/workflow script.

Option 2 likely more finicky.

Suggest an answer

Log in or Sign up to answer