For some reason, the JSON data output is not in the same order. I currently have 30 entries, and 2 of them are not in the same order, so the data is off. Any Ideas, is there a better way to display this data?
Of the two that are out of order, each has a different sequence of data.
One is First Name, Year, Last Name, School
The other is Phone, Last Name, Email, Confirm.
As you can see, there are other fields than what we are displaying.
Hi @Rhatch
Unfortunately, we can’t rely on the ordering of data in Cases. I’m not sure of the reason.
Typically, what I do is conditionally look for each field I need to work with and store the values as variables on each loop.
So in your case, something like this:
Note: at the start of the first loop I clear all the variables in case a field is not present for that item, otherwise, the previous item’s value for that field will carry forward.
@Adam.Wilson Thanks Adam, That’s what I was trying to do but just didn’t have it right. This worked great!
It would be nice to have another component option with a simple JSON that only contains the Name: value pairs for displaying the data, similar to a custom module. I would also think it would save some resources.