Sampling with replacement in kobocollect

I am working on sampling, and I have this scenario. I am doing sampling of staff from register, and if a staff is still alive, the tablet must generate additional questions(questions about insurance) and if he/she has died it must hide those questions. since it is a sampling, it must open those additional questions when nth staff reached and it must hide them again when nth+k staff reached. for example I want the tablet to open those questions when the 5th staff in register is reached and it must hide them when the 12th staff is reached. if in the interval from 5th up to 12th there is a staff who has died it must add one staff to replace those who died(replacement if in that interval there is some staff who has died) to the limit(12th) then the 13th staff must replace those who died. because I have a target(number) of staff to respond to those specific questions. in those specific interval more than one staff can be died and I want to automate them so that they can be replaced. so that wen I set a target of any staff to be asked those specific questions, I have to get it.

@DJAA, wouldn’t it be possible if you try to use 2 sets of questions and then manage them manually to collect the data? That would be far more simple for your to manage your survey.

I just want to make it automatic, since I have a huge of enumerators from different sites and I can not manager them manually.
If you have any suggestion I appreciate.

Thank you!

Keeping it open for the community to jump in and provide if they have any.