Louise, you can handle this in your theme, but not in the content template. If/Then/Else statements are not supported in the content template in Gravity Forms. However, you can create a page template to use for your Gravity Forms testimonial submissions which has logic which says, in effect:
[php]
if (there was an image uploaded) {
use that image in the post;
}
else {
use this default image;
}
That is how you can do it in the page template.
If you did not want to do that, you can use the gform_pre_submission_filter to insert the value for a default image, into the field where the upload would go, if the upload field is empty when the form is submitted. The documentation for the gform_pre_submission_filter can be found here: http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter
Posted 11 years ago on Tuesday June 11, 2013 |
Permalink