Hi,
Creating a survey123 for to replace a legacy .mdb system.
I need to be able to create a site_id that consists of the project_code, users initials and an incrementing 4 digit integer so for example STAT + DJH + 0001 next site would be STATDJH0002. I need to be able to do this on and offline as crews are often working in remote locations.
I also need to create sample_id for sites where if multiple samples are collected the sample_id increments by 0.1 so for the above example first sample would be STATDJH0001.1 then STATDJH0001.2 etc.
As the site_id is tied to the users initials I am not worried about duplicate records, I am thinking if I create a hosted feature layer in our enterprise portal and populate it with all the possible combinations of site_id for each user (and have our SQL server update it via FME/rest if new users/projects start) then I can maybe somehow write an expression in survey 123 to mark when an id is used and grab the next lowest null valued id for the new site?
Its not pretty and not sure it will or can work, help me please!
My other issue is creating repeats for another form that is based on depth to and from. I need to be able to have a new repeat auto fill the from field using the previous to field (with the first starting at 0m) so first interval might be from 0m to 15m then from 15m to 17m from 17m to 28m etc. I have not found a way to do this either...