I created a Layout Based Form that uses the Image Canvas. The functionality allows me to place an image in the Image Canvas and draw on the image, which is great.
I can bring the form up and draw on it in the Encounter, which is expected.
When I click Save, a warning pops up (This page is asking you to confirm that you want to leave - data you have entered may not be saved).
If I choose to continue (Leave Page), the next page shows the form text, but does not capture the image.
And the print out does not capture the image either.
Can you tell me if I am implementing the Image Capture functionality correctly on the LBF? I would like to capture the image after I draw on it, but don’t see it after I attempt to save it.
Suggestion: Try it with a layout that just has your image canvas on it and nothing else, and see if you still get the stay-or-leave message. If not, add the other fields one at a time until the message occurs. That will help to narrow it down.
Perhaps the image is too big for your php.ini settings. Check post_max_size and upload_max_filesize in whatever php.ini file your web server is using. After fixing these be sure to restart the web server.
So I went through the Apache error.log I saw the error ModSecurity: Request body no files data length is larger than the configured limit. When I increased the size of SecRequestBodyLimit and SecRequestBodyNoFilesLimit in the modsecurity.conf, the layout that has just the Image Canvas, now works!
Thanks for the help with this.
When I go back and use the layout I first created, I get the same error as before.
As you suggested, I am now going to add the fields one at a time. Let me know if you have any additional suggestions on where I might look. Thanks for your help.