Slim for Gravity Forms
First of all, thank you so much for purchasing Slim for Gravity Forms!
Do not hesitate to contact me if you have any questions or run into trouble. Just make sure you read the quick help section below and FAQ page on CodeCanyon first.
Thanks again for your purchase and have fun!
Installation
There's a step by step guide on installing WordPress plugins to be found in the WordPress Codex.
If you've previously installed the Slim plugin and want to update, you first have to delete the current plugin and install the new one (slim-gravity-forms.zip).
Advanced Custom Fields
Open Custom Fields.
Add a new field and give it a name, for instance "slim_image".
Set the field type to "Image".
Set the field "Return Value" to "Image Object".
Save the field group by clicking "Update".
Now go to your Gravity Form.
Add the Slim Post field (it can be found in the Post Fields group on the right).
Scroll down and change the "Custom Field Name" value to "slim_image" (the same as the ACF field name). If it's not in the existing list, click the "new" radio button.
Click update.
Please note that due to the way Gravity Forms is build, a default custom field needs to be present in the form as well for Slim to work. This can be for instance a Title or Body field, the other fields will work as well.
Now when the form is submitted Slim will link the data and the uploaded image should be come visible in our Advanced Custom Field.
Gravity View
If you're using Gravity View it's best to use a Custom Field instead of Slim in the views.
To setup a Slim field use the following shortcode:
[gv_slim_field source="{FieldName:FieldId}"]
So suppose the name of the field is "Avatar" and the id is "2" the shortcode should look like this:
[gv_slim_field source="{Avatar:2}"]
If you want to enable a lightbox on this field add the lightbox attribute:
[gv_slim_field source="{Avatar:2}" lightbox="true"]
If you want to turn the field into a link to the entry detail page:
[gv_slim_field source="{Avatar:2}" view_entry="{entry_id}"]
If you want to turn the field into a download link:
[gv_slim_field show_name="true" show_image="false" link="true" download="true"]
You can toggle the filename and image visibility with the "show_name" and "show_image" attributes. By default the filename is hidden and the image is shown.
Help
Alright, unfortunately you've run into an issue or have a question. Don't panic, we're gonna get this fixed!
Take a moment to look over the Slim FAQ page on CodeCanyon. I try to add the most common problems to the FAQ, so the answer might be in there.
If the answer to your question is not in the FAQ and you've carefully read the help section below, contact me via CodeCanyon support, I'm happy to help out!
Do try to send me as much information as possible, this makes it a lot easier for me to help you resolve the problem. The following information is always useful.
- The browser(s) name and version you tested on.
- The device you test on.
- The error message (if any) you received.
- The OS and version you test on.
- Server configuration details (PHP version).
- Screenshots that clearly show the problem (really useful).
- Step by step test scenario (what steps can I take to reproduce the problem).
- A public test URL is super helpful
The more data you provide the faster we can solve the issue.