First of all, what I'm trying to accomplish is for a user to be able to insert a "Post Title", "Post Content" and then upload an image. My client would like to allow the user to resize images through some means. I'm going to use the same modal box WordPress uses in the backend for users to upload the image. However, this requires me to insert my own field that can't be added using the GF backend.
There don't seem to be any hooks allowing insertion of HTML/PHP in the form for the user to see and edit. One way I thought about doing it was using the hook for the submit button, adding in the HTML above the submit button and having my own custom submit button. This should work, right?
The form would look like:
- Post Title
- Post Content
- Empty text field (to be populated with photo URL after uploaded -- will be done using GF)
- Button to launch the modal box to upload photo and popular text field
The problem with that is that the button is restricted to the div that the submit button is in, so I can't position it to be near the text box.
Is there any other solution I can do for this? The button doesn't need to be special. Just has to have an ID that I can select using jQuery.
Thanks,
Andrew Ryno