neonwired Posted September 7, 2021 Posted September 7, 2021 I have an image field with the output set to 'Single-file when populated, null when empty' which outputs a PageImage object fine normally, but when I load it using ajax the same field always outputs a PageImages array with a single image. What could be causing this? Processwire 3.0.182 PHP 7.3 MariaDB 10.3 Nginx
kongondo Posted September 7, 2021 Posted September 7, 2021 (edited) Output formatting is off when in ajax mode... Edited September 7, 2021 by kongondo 2
neonwired Posted September 22, 2021 Author Posted September 22, 2021 On 9/7/2021 at 10:44 AM, kongondo said: Output formatting is off when in ajax mode... Thanks, setting output formatting to true solved the issue.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now