So I have a survey, wherein hydrant data is being recorded. I need new asset id's to be assigned and not changed during future edits, which is why I added once(). I'd also like for the instance name to be based on the asset id + short address (just placed it in the survey and not the settings for ease of testing, I know I'll need to move it).
However, after I added the once() function to the asset id calculation, the concat would no longer pull the fire_district_abrev (ex. -20232230-1535). If I remove the once() function the concat works as intended (ex. WBD-20232230-1535), but now a new asset id is assigned when edited.
Where am I going wrong?
| Type | Name | Calculation |
| text | asset_id | once(concat(${fire_district_abrev}, format-date(now(), '-%Y%m%d-%H%M'))) |
| text | inbox_id | concat(${asset_id}, " - ", ${short_address}) |
| text | fire_district_abrev | pulldata("@layer", "getValueAt", "attributes.FireDistrictAbrev", "url", ${hydrant_location}) |