neonwired Posted September 7, 2021 Share 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 Link to comment Share on other sites More sharing options...
kongondo Posted September 7, 2021 Share Posted September 7, 2021 (edited) Output formatting is off when in ajax mode... Edited September 7, 2021 by kongondo 2 Link to comment Share on other sites More sharing options...
neonwired Posted September 22, 2021 Author Share 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. Link to comment Share on other sites More sharing options...
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