Select to view content in your preferred language

Be able to hide/disable the recalculate button

936
3
10-25-2023 12:34 AM
ColinCampbell1
Regular Contributor

Be able to hide (or disable) the recalculate button that appears next to calculated fields.

There are certain instances/workflows where the presence of the recalculate button is undesirable and risks data entry or usability issues (e.g. here).

3 Comments
JamesTedrick
Status changed to: Needs Clarification

Hi @ColinCampbell1 ,

Ca you provide more details on the scenario where you are seeing the recalculate button with read only fields (as mentioned in the community discussion), potentially with an XLSX form example? 

Additionally, have you used the once() function to prevent further calculation and are still seeing this issue? 

SimoneVinkel

Hi @JamesTedrick,

We have a scenario, where we would like to hide the recalculate button, and where the once() function would not be an optimal solution. Maybe you have a suggestion to a work-around for this specific case:

We are using ArcGIS Workflow with a survey123 step.
The survey has an autocomplete search to find older records, which is used to populate fields. We use pulldata() to retrieve values from the searched record. Then pulldata() calculations are used on all the specific fields we want to be populated.
If using once(), it is not possible to use search and populate again, e.g. if one has chosen a wrong record to populate from, as the calculation has already happened once.

When editing the survey, the recalculate button appear on all the questions/fields where it uses pulldata(). We only want the calculation to happen when using the autocomplete search input field, but we need to take into account that the user might choose a wrong record and wants to redo the population with another record.

Best regards
Simone

PanGIS
by

HI @JamesTedrick,

since the idea still needs clarification here my scenario:

I have a survey that creates reports and it generates a ref number

I was asked to change the ref.No schema since the incremental number at the end is not reliable and it creates duplicates.

 

The report can be updated until is ready for review so, it is still available for editing in the Inbox until then.

below you see the old one and above the new schema 

PanGIS_0-1748615784319.png

 

the code is fine when I open it

PanGIS_1-1748615876564.png

if I hit the refresh button.

the dateTime is the same as it is set as once() but the schema is different and it will update.

the calculation mode is calculationMode=whenEmpty, but still it updates

PanGIS_2-1748615938611.png

 

my options are:

1. I create a new survey where I allow the edits but I am going to receive complains for the number of survey that need to used (already 5)

2. I beg the inspectors not to touch that button until all the old reports are reviewed (they are more than 800, it will not happen overnight)

 

Always thanks for your help.