I’ve just looked more closely at the spec — it appears a link to a contact form will do… so I guess I just need to sort out the process by which we get the right link into the directory entry (we were hoping to do this in a way that doesn’t require admin intervention).
I’ve been exploring Gravity Forms and the Gravity Forms Directory trying to figure out how to achieve this… so far I’m not getting quite what I need.
I think I need to have a form that will include a field that is filled in by an admin when the entry is approved. That field needs to be html (i.e., not strip away the html code).
<button class="uk-button" data-uk-modal="{target:'#form'}">Email Me</button>
<div id="form" class="uk-modal">
<div class="uk-modal-dialog">
[gravityform id="1" title="true" description="true" ajax="true"]
</div>
</div>
When I tried using an html field, that’s not editable by the admin.
When I tried using a text area (paragraph) field, the only thing that comes through is:
Email Me [gravityform id="1" title="true" description="true" ajax="true"]
Any ideas on how I might achieve this?
Thanks,
Scott
The folks at Gravity Forms gave me some code to add to my functions.php
add_filter( 'gform_allowable_tags', 'allow_basic_tags' );
function allow_basic_tags( $allowable_tags ) {
return '<div><button><p><a><strong><em>';
}
With this in place I’m able to add a contact form to the directory entry by using a “paragraph text” field.
I was wrong… the modal window works, but the shortcode does not get processed. 🙁