# Use a question to fill body::accuracyThreshold

**URL:** <https://forum.getodk.org/t/use-a-question-to-fill-body-accuracythreshold/36779>\
**Category:** Support\
**Tags:** odk-xlsform\
**Created:** [February 18, 2022, 4:43pm UTC](https://forum.getodk.org/t/use-a-question-to-fill-body-accuracythreshold/36779 "2022-02-18T16:43:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [February 18, 2022, 4:43pm UTC](https://forum.getodk.org/t/use-a-question-to-fill-body-accuracythreshold/36779/1 "2022-02-18T16:43:04Z")

</div>

I would like users to define the threshold they want to use on the field.  
When submitting the form definition to Central I don't get any error.  
But the form closes a soon as I start geopoint.  
[gps\_accuracy\_threshold.xlsx](https://forum.getodk.org/uploads/short-url/wEDEa4wcn81rUeFXh30Ow7nayX3.xlsx) (6.3 KB)

Is it a bug or is is simple not possible ?  
If it is not, I will add another geopoint question with another accuracyThreshold 😉

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [February 23, 2022, 10:02pm UTC](https://forum.getodk.org/t/use-a-question-to-fill-body-accuracythreshold/36779/2 "2022-02-23T22:02:33Z")

</div>

Hi @mathieubossaert  
`accuracyThreshold` was implemented to work with static values only. In your case it's a dynamic value that comes from another question.  
@LN have you ever considered making it work with dynamic values? Even if dynamic values are not supported there should be no crash.

---

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [February 24, 2022, 4:48am UTC](https://forum.getodk.org/t/use-a-question-to-fill-body-accuracythreshold/36779/3 "2022-02-24T04:48:55Z")

</div>

thanks @Grzesiek2010 for your answer.  
For the moment I added 3 geopoint questions with 5,10 and 15 m threshold.  
Following the value that is set in user's prefs I hide the two other.

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [March 1, 2022, 12:50pm UTC](https://forum.getodk.org/t/use-a-question-to-fill-body-accuracythreshold/36779/4 "2022-03-01T12:50:10Z")

</div>

We've just released v2022.1.2 and now the crash should not take places in cases like that, just default values which is 5 meters for `accuracyThreshold` and 100 meters for `unacceptableAccuracyThreshold` should be used.
