Generated ID used in json_encoded arrays? [RESOLVED]

Hopefully this is a quick answer for someone familiar with the GF codebase.

Looking at the json_encoded arrays in the gf_form_meta table, I see an ID used for each new array - can anyone tell me where that gets generated?

I’m writing a custom form to be used to speed up entry/update of confirmations/notifications…the wordpress ui is ok, it’s just slow and cumbersome when you’re dealing with a lot of updates every time a form changes.

I can make my own custom ID, but I’d rather use the same function that GF uses…

any help would be great!

I guess I should have had that 3rd cup of coffee this morning.

Source of the uniq id:
https://www.php.net/manual/en/function.uniqid.php