Last year we set up a Field Maps form with some optional calculated fields that fail to calculate if the user is offline. For example: this expression to capture the email associated with the user's account doesn't work if someone is working offline:
return GetUser(Portal('https://arcgis.com')).email
The required box was unchecked for those fields, and offline users could submit the form without a problem. Now the form fails to submit even though the fields are ostensibly not required. Did something change? Is there any workaround for this kind of field? Since Arcade doesn't have try/except, I don't know of a way to test whether online-only functions will work without returning an error. Maybe we just need 'online' and 'offline' versions of the same map with different forms?
Hi @GLCAdmin ,
There will be some improvements with the GetUser() function in an upcoming release of Field Maps, but in the meantime if you use GetUser($layer).email, that should work both online and offline.
I hope that helps!
Chris
Hi @ChrisDunn1 -
Good to hear about the upcoming improvements. It looks like the field still fails to calculate using GetUser($layer).email as the expression when using Field Maps offline.
I believe getting User Email is used as one example of the Form failing to Submit.
Solving how to get it to Submit for Email only doesn't solve the main issue.
Non Required, Calculated Fields are now Required to Submit a Form.
If the Field doesn't calculate. Even though the field is not required, the Form does not Submit.
Something changed in AGOL. Because it used to Submit. Even if a record wasn't calculated.
Can you replicate this issue, and is it being resolved?
Thank you,
Aaron
I'm experiencing a similar, if not the same, issue.
Calculated fields, that are not required, prevent users from Submitting a record.
I believe that's the same issue in this post, and we are having it as well.
Is this expected?