Behavior Change in Select Value Submitted Data
-
I’m curious why the behavior of select values was changed in 7.5.2, and not announced. Things that check the value of posted data to redirect things, such as the method used for redirecting mail with pipes example that has frequently caused users problems may once again start causing problems for users as a result of the documentation no longer matching the functionality.
It would seem that even a single select dropdown (does not allow for multiple selections) now arrives in the back as an array, rather than a single value, which makes things that check the value from posted_data no longer function because all that it will compare against now is ‘Array’.
This is in relation to a more complicated version of the example, which redirects based on the user’s state, which are grouped together in a hooked function, along with functionality to modify output on the Thank You page. However, when the posted data goes from [‘your-state’ => ‘value’] to [‘your-state’ => [‘0’ => ‘value’] ], it is suddenly harder to verify data, especially when such a change is not announced in the changelog.
- The topic ‘Behavior Change in Select Value Submitted Data’ is closed to new replies.