This version of Gravity Forms allows HTML in the field description area. You could put your links in there if you wanted and have this functionality.
Form Admin Screenshot
If you preferred to have the audio links lined up with the choices like in your example, it would take some CSS tweaking to pull off, but it's pretty easy to do. I replicated your example in just a few minutes with a simple form and a little markup and CSS in the page editor.
Demo Screenshot
I created the form with all the necessary fields and added it to a new page. Once the form was added into the page editor (HTML view) I added the links and a CSS style block directly into the editor and placed it directly above the form reference.
Page Editor Screenshot
Basically, I've absolutely positioned the unordered lists next to the corresponding form fields. (note: my content container is set to position:relative so the absolute positioning is relative to the form, not the top left corner of the page)
Here's the code I added directly above the form short code. It's just to give you an idea of what I did, you'll need to customize everything to fit your particular form styles.
<style type="text/css">
ul.audiolists {position:absolute; left:225px;}
ul.audiolists li {list-style-type:none; margin:0 0 10px 0;}
ul.audiolists li a {background-image:url(http://dl.dropbox.com/u/688846/gravityhelp/play_icon.gif); background-repeat:no-repeat; background-position:left center; padding: 0 0 0 22px; display:block; line-height:22px;}
ul#audiolist1 {top:190px;}
ul#audiolist2 {top:355px;}
ul#audiolist3 {top:520px;}
</style>
<ul id="audiolist1" class="audiolists">
<li><a href="#">Play Audio 1</a></li>
<li><a href="#">Play Audio 2</a></li>
<li><a href="#">Play Audio 3</a></li>
</ul>
<ul id="audiolist2" class="audiolists">
<li><a href="#">Play Audio 1</a></li>
<li><a href="#">Play Audio 2</a></li>
<li><a href="#">Play Audio 3</a></li>
</ul>
<ul id="audiolist3" class="audiolists">
<li><a href="#">Play Audio 1</a></li>
<li><a href="#">Play Audio 2</a></li>
<li><a href="#">Play Audio 3</a></li>
</ul>
So, there are a couple of ways to accomplish this pretty easily. If you don't mind doing a little CSS work post form creation, you can style it pretty much any way you'd like to.
Posted 15 years ago on Saturday November 14, 2009 |
Permalink