I discovered that the problem is in fact a generic one, not at the application level, probably introduced after a recent update.
The fact is for some fields, I did not test for all kinds of fields, On User Input is executed also at On Update for a field.
- if (input.Refresh_Location)
- {
- clear Location;
- newlist = {"London", "San Francisco", "Amsterdam"};
- Location:ui.add(newlist);
- input.Location = "London";
- input.Refresh_Location = false;
- }
Note that clear Location; and Location:ui.add(newlist); are not allowed action at on Update, if you write the same script at On Update you'll get errors.
'hide | show | enable | disable | clear
' can be used only in 'on load' and 'on user input' actions
'Location:ui.add()' is not supported.
But in our case the script above is executed without problems, even if at on Update there is no script.
If I put some script at On Update, it is not executed, but the script from on User Input is executed instead.
This seems to me a very serious problem, because in some cases can broke an existing functionality, and I want to warn developers to check the instances where On Update script for some fields is important to be executed.
Regards,
George