Survey123 3.10, InBox form editing with repeats

702
3
08-09-2020 03:02 PM
CristianGraf
New Contributor II
Hello,  What is the best approach to edit forms in the inbox? We have several repeat and indicators
are used to calculate 1 very precise state. We sum these indicators outside the repeat, 
and then use theme to calculate other fonctions,but when we modify them in the inbox,
it resets to 0 on the DB and no modification is made.
Are there specific parameters to adjust in the connect options?
Thanks for any help!
Tags (2)
0 Kudos
3 Replies
by Anonymous User
Not applicable

Hi Cristian,

Are you able to provide a copy of your xslx form so we can take a closer look at try to understand the workflow and issues you are having with the Inbox?

Regards,

Phil.

CristianGraf
New Contributor II

Hello Philip,

Thanx for your reply. Our form contains several repeats to determine compliant or non-compliant actions. For each repeat, we have an indicator that identifies the non-compliant actions (ind_NC_xx = 1 or 0). Outside the repeat, we sum them and apply them to various other calculations. Since repeats are used with minimal appearance, the starting value of the sum is empty. We must therefore ensure that the empty value is 0 if not the value of the sum (if (string-length ($ {gestion_null_nc_XX})> 0, $ {gestion_null_nc_elements_XX}, 0).

When we test the form in Connect 3.10, the sum of the variables is done correctly, as are the calculations of the scores
that we want to apply. On the other hand, when testing the forms already issued on the IOS or Android application in the InBox,
the changes made are not calculated and the data already issued are erased. All data is hosted in an AGOL service.

Should we use the Calculate in the type to trigger a score calculation? Are the options in connect that can have an impact? 
Any idea? 
Many Thanx for any help!
 
0 Kudos
by Anonymous User
Not applicable

Hi Cristian,

I don't believe the settings in Connect are related, this new settings under Options simply allow the Inbox, Sent folder etc, and related options, but do not change the behaviour of the form and calculations when it is opened.

I think the problem you are seeing is that when you open a survey from the Inbox, calculations are not automatically updated and run as you are editing as existing record, this is different to when you are creating a new record and new repeats via Collect option for the first time. In this case, the user has to manually run the calculations using the recalculation button. With Repeats and the Inbox, this mean you need to navigate back through all the existing repeat records to ensure the values are correct and updated, and then update the calculations outside of the repeats to ensure they are getting all the updated values. Does that make sense?

Regards,

Phil.

0 Kudos