Hello,
- Field Country
- Field Region
When I activate AjaxProcessing with Field 1 to refresh Field 2, this works fine on the fly. The form changes what is presented to the user. But the internal values cause problems.
The {Field Country} value with Field 1 changes to new value, but {Field Region} value with Field 2 stays the same. Same when I try to save Field 2 as a [variable]. Both values do not get updated before an OnChange event with Field 1 even though the form displays a new region name with Field 2 based on what I picked with my Field 1.
Not sure if this is the correct behaviour, but it would make it impossible to write a code OnChange with Field 1 based on new values with Country and Region.
Note: Did some more testing…it looks like the value with Field 2 is always one step behind…and some Ajax Processings are done before OnChange code runs and some are run after…
1.Field Country (AjaxProcessing Refresh Field Region and Timezone)-Type Select
2.Field Region (AjaxProcessing Refresh Field Timezone)-Type Select
3.Field Timezone-Type Select
This is what happens when I change Country:
a)Region refreshes what is being displayed, but internal value with region stays the same (also when I save a variable with field)
b)OnChange Code with Country runs, but can only use the old values of field Region
c)Timezone field SQL Select Statement runs
d)Now the value with field Region changes to new value