Community > Ideas
23 views
Not Accepted

Give a warning or keep reference in Javascript Action when field values change

Hello,

I came across a situation where I was building a from. I setup a checkbox list, let's say it's called List1 with options, say A, B, C. I created an action to Calculate the values of that list, similar to the example you have in the documentation. I setup the action. Then I realized, I forgot to set values for the list items so I went back to the field and modified the options to be A|1, B|2, C|3. I tried testing the form and the action didn't work. What I found out was that the Action had been changed. The token [List1] that was in the Javascript box for the action Update a field by evaluating JavaScript; optionally based on another field had been changed. The token was now a GUID value. I needed to go back in and replace it with the correct token. 

What would be nice, is to have the Action be able to keep the reference to the field and not have the token in the Javascript box changed automatically. 

If that's not possible, it would be nice to have a popup or a warning that lets the user know that they need to go back and update the action because the form field values have changed.  I ended up spending more time than I wanted to trying to figure out why my action wasn't working and it would save some time knowing up front that the action needs to be updated when the field values changed. 

Josh Slaughter Josh Slaughter
published 08/29/2019 01:51
Add Comment
Mandeep Singh
replied 09/06/2019 20:14

Actions are able to keep a reference to the field; even if you change the label name. This looks like an anomaly. 

Please open a support ticket with steps to reproduce this issue. If it's reproducible then we'll consider it as a bug and resolve it. 

I'm removing this from Community Ideas. 

Last Activity 09/06/2019 20:14