Question

Forms API - Understanding response

  • 27 December 2023
  • 1 reply
  • 53 views

We are building a system to ingest Kustomer forms and showing it to our end customer. During development we noticed that the componentsV2.id was always unique across the forms and hence we built the logic based on it. Post deployment we noticed that for some of our customers componentsV2.id is not unique for multiple attributes. 
 

Can someone please help us to finding the correct unique key for the attributes in the form. Adding the fields that are repeated

 

"A6D21Q5ics4": {
"id": "A6D21Q5ics4",
"componentAttributes": {
"hint": "",
"placeholder": "",
"type": "text",
"label": "Description",
"name": "messagePreview",
"id": "messagePreview",
"description": "",
"className": "",
"required": true,
"updateAttribute": true,
"attributeProperty": "preview",
"attributeType": "message",
"isCustomAttribute": false
},
"componentType": "kustomerText",
"attributeProperty": "preview",
"attributeType": "message",
"isCustomAttribute": false
}

"A6D21Q5ics4": {
"id": "A6D21Q5ics4",
"componentAttributes": {
"hint": "",
"placeholder": "",
"type": "text",
"label": "Some different label",
"name": "messagePreview",
"id": "messagePreview",
"description": "",
"className": "",
"required": true,
"updateAttribute": true,
"attributeProperty": "preview",
"attributeType": "message",
"isCustomAttribute": false
},
"componentType": "kustomerText",
"attributeProperty": "preview",
"attributeType": "message",
"isCustomAttribute": false
}

 


1 reply

It looks like you have two message preview attributes here, which shouldn’t be possible as there should be only one message preview attribute. Without seeing the form directly, it is difficult to say why there would be two of them, but that appears to be the source of the issue you’re running into. For more technical assistance, please reach out to support@kustomer.com anytime. Thanks!

Reply