Can’t seem to get he value of the “Other” selection from a TypeForm submission. Here’s what I’ve tried:
Hello @Scot_Cockroft,
Understand the process.
When data is in an array, you need to use the get()
or map()
functions to access the specific data you need.
The data shown in the mapping dialogue is just a preview of the full collection or array. The mapping dialogue always shows the first elements of the array.
When you are within an array, the dialogue shows all the keys combined of all the child array elements. For example, if the first element of the array is an object with the keys “name” and “value,” the mapping dialogue will show “name” and “value” as separate keys.
That’s how it shows you the other
key but it does not exist on all the elements.
Another thing is when you have multiple items in an array you need to give an index to access the element within it. See more here Using get() and map() functions
Specific to your empty result
When there is an array and you don’t give any index to access it, By default it always selects the first element and returns data of it.
In your case, the first element of the output
array doesn’t have the other
key so it always returns empty
.
Things to consider while handling these types of dynamic arrays.
- Make sure your
output
array structure and element index are the same for different questions. After giving a specific key using theget
function and the very next run the index changes then again things are broken. - If the index changed multiple times then you need to identify by some of the reference fields like keys.
- Carefully check and practice about how to use
get
andmap
.
P.S.: Always search first, Check Make Academy. If this is helpful, mark it as a solution and
Need expert help or have questions? Contact or comment below!
Hello @Scot_Cockroft,
This is an excellent use of Make’s functions. I’ve never thought about this new type of use case.
If your issue related to this topic is solved then please complete this topic as marked as
That helps others to identify if they have the same type of issues.