Select to view content in your preferred language

Survey123: copied Inbox Survey does not update a pulldata() function that uses a script

102
0
11-05-2024 11:35 AM
MattWolf
Emerging Contributor

I have a Survey that uses pulldata(@javascript) for both weather (NOAA API) and Air Quality (AQI using AirNow API). When creating a new record, the pulldata() for both function as expected. I have calculationMode=always for all calculated fields that depend on the javascripts.   However, if I copy a submitted Survey to a new Survey using the Inbox, only the AQI updates (text is blue).  The weather field, however, remains empty.  Clicking the 'x' and then refresh results in an empty field. I have also made the field that holds the results of the API call visible in my Survey and again, it doesn't refresh when using a copied Survey.

Again, when creating a new record, all pulldata() fields function properly for both AQI and Weather.

 

Any ideas?

 

0 Kudos
0 Replies