You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify the Enketo settings. You really only need 2 settings: enketo_api_url and enketo_api_token.
This means removing the hardcoded webform urls from settings.py and use the Enketo API to always request the webform url. This will make OnaData compatible with enketo-express (the future of enketo) The new app will use the exact same API but a very different (muuuuuch nicer) URL structure.
If performance is a concern, maybe consider using the /survey/all endpoint upon page load which would then allow you to redirect to the appropriate webform URL immediately when a user clicks a button. It may even be worth caching the response for the next page load.
The text was updated successfully, but these errors were encountered:
Simplify the Enketo settings. You really only need 2 settings: enketo_api_url and enketo_api_token.
This means removing the hardcoded webform urls from settings.py and use the Enketo API to always request the webform url. This will make OnaData compatible with enketo-express (the future of enketo) The new app will use the exact same API but a very different (muuuuuch nicer) URL structure.
If performance is a concern, maybe consider using the /survey/all endpoint upon page load which would then allow you to redirect to the appropriate webform URL immediately when a user clicks a button. It may even be worth caching the response for the next page load.
The text was updated successfully, but these errors were encountered: