Hey
I’m looking at the response from the Create and Response API, and I see several different IDs that I understand to be automatically generated by Typeform.
My question is to, what extent are these IDs unique?
For instance, if I retrieve a form, there will be an ID for the form itself, an ID for each field, an ID for each choice for the fields that have defined choices, and so on. See (simplified) example below.
{
"id": "ybfq1MDc",
"type": "quiz",
"title": "Unique IDs?",
},
"fields": [
{
"id": "WsRgbU2OaDNd",
"title": "Are these IDs unique?",
"ref": "01FZJ6C7BT8ZXN7QSBH3V1BDD3",
"properties": {
"randomize": false,
"allow_multiple_selection": false,
"allow_other_choice": false,
"vertical_alignment": true,
"choices": [
{
"id": "uwxim7rOjZ4h",
"ref": "01FZJ6C7BTSPJWWSKG30K2RFAG",
"label": "Very unique"
},
{
"id": "XMjhFBI6Ukqb",
"ref": "01FZJ6C7BTR13K16VA3QF1N585",
"label": "Hardly unique at all"
}
]
}
},
{
"id": "p2jh47vRZi4v",
"title": "What about these?",
"ref": "d9e06a1c-0410-4873-a37f-6644ef870d73",
"properties": {
"randomize": false,
"allow_multiple_selection": false,
"allow_other_choice": false,
"vertical_alignment": true,
"choices": [
{
"id": "VN1lfjHUuc8y",
"ref": "4c991169-8cbf-4310-bbfa-6ea3a077be25",
"label": "Yes!"
},
{
"id": "9TlrQQmWlETM",
"ref": "44d671f8-3415-4e29-936d-e10af0f83df4",
"label": "Not this one"
}
]
},
"validations": {
"required": false
},
"type": "multiple_choice"
}
]
}
I’m fairly confident that the ID for the form is unique across all forms on Typeform. Likewise, the ID for a field is surely unique across all fields in that form. Is it unique across all fields in all forms in that workspace? All fields in all forms for that account? All fields for all forms across all of Typeform?
What about the ID for a choice? Is it unique across all choices for that form? Or - I’m hoping - across all choices defined in all forms, on Typeform?
I hope my question makes sense. Please let me know if that’s not the case, or if I should elaborate in some way.
Regards,
Mikkel