<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Custom Browse AND Submit buttons</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons</link>
		<description>Gravity Support Forums Topic: Custom Browse AND Submit buttons</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 03:09:53 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/custom-browse-and-submit-buttons" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-45672</link>
			<pubDate>Thu, 05 Jan 2012 21:49:31 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">45672@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks once again sunil.  I'm sure your words will help someone in the future.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sunil on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-45654</link>
			<pubDate>Thu, 05 Jan 2012 20:54:38 +0000</pubDate>
			<dc:creator>sunil</dc:creator>
			<guid isPermaLink="false">45654@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No problem Chris.&#60;/p&#62;
&#60;p&#62;Reading my notes now, I can see they are indeed pretty messy. So, just to clarify a couple of things for people who want to style their upload inputs:&#60;/p&#62;
&#60;p&#62;* I use Peter's basic tecnique for hiding the input, replacing it, and emulating it's behaviour.&#60;/p&#62;
&#60;p&#62;* However, my the end goal for me was not to re-create the end result that he produces in his demo, but to give the appearance of what you would expect if you actually could style an upload input.&#60;/p&#62;
&#60;p&#62;My end result looks like this:&#60;br /&#62;
&#60;a href=&#34;http://imgur.com/ajkQ0&#34; rel=&#34;nofollow&#34;&#62;http://imgur.com/ajkQ0&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-45500</link>
			<pubDate>Wed, 04 Jan 2012 18:53:02 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">45500@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for posting that code sunil.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sunil on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-45412</link>
			<pubDate>Wed, 04 Jan 2012 02:00:14 +0000</pubDate>
			<dc:creator>sunil</dc:creator>
			<guid isPermaLink="false">45412@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, I got something to work. Here are the notes that I created as I went. They might be a little messy.&#60;br /&#62;
I'm basing my technique on Pete Boere's method, at &#60;a href=&#34;http://the-echoplex.net/log/how-to-style-a-html-file-upload-control-using-css-and-javascript&#34; rel=&#34;nofollow&#34;&#62;http://the-echoplex.net/log/how-to-style-a-html-file-upload-control-using-css-and-javascript&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Notes follow:&#60;br /&#62;
Step one:&#60;br /&#62;
 * Wrap target input in an element that we can give these styles to:&#60;br /&#62;
 display: inline-block&#60;br /&#62;
 overflow: hidden&#60;/p&#62;
&#60;p&#62;Peter uses 'label'. Can we do that?&#60;br /&#62;
Maybe....&#60;/p&#62;
&#60;p&#62;We get our input wrapped inside an oddball &#38;lt;span&#38;gt;, which is nested&#60;br /&#62;
inside a div. This span seems weirdly resistant to styling.&#60;/p&#62;
&#60;p&#62;Let's try and treat the div that way that he treats the label&#60;/p&#62;
&#60;p&#62;The innermost wrapping element, .ginput_full seems to be utterly&#60;br /&#62;
resistant to resizing.&#60;br /&#62;
So, I'm targeting '#field_1_12&#34;, which is the list item.&#60;br /&#62;
Ok... we can do that. Kewl. So far, so good.&#60;/p&#62;
&#60;p&#62;Next, we hide the actual input.&#60;br /&#62;
Yup, we can do that. That was easy. But now we want to add our visual&#60;br /&#62;
&#34;browse&#34; button.&#60;/p&#62;
&#60;p&#62;In order to do this, I target this element.&#60;br /&#62;
#field_1_12 .gfield_label&#60;br /&#62;
I give it these rules:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#field_1_12 .gfield_label
  position: absolute
  background-color: #7a7a7a
  right: -290px
  top: 2px
  width: 70px
  height: 30px
  -webkit-border-radius: 8px
  -moz-border-radius: 8px
  border-radius: 8px
  background-image: url(&#38;quot;/img/browse.png&#38;quot;)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Ok, the user can still click on it, and get the file selection&#60;br /&#62;
dialogue. Cool. &#60;/p&#62;
&#60;p&#62;So, now we need to give the user feedback. User wants to have their&#60;br /&#62;
expectation of feedback met - we have to let them know that we know&#60;br /&#62;
which file they have selected.&#60;/p&#62;
&#60;p&#62;At this point, we need to throw away our sense of integrity when it&#60;br /&#62;
comes to such aloof concerns as &#34;seperation of content&#34;. *sigh&#60;/p&#62;
&#60;p&#62;We use jquery to keep a div within the form to display the name of the&#60;br /&#62;
file. I inject with js:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// insert a div and exploit it&#38;#39;s presence
	var displayDiv = &#38;quot;&#38;lt;div id=\&#38;quot;file-display\&#38;quot;&#38;gt;&#38;lt;p&#38;gt;&#38;lt;/p&#38;gt;&#38;lt;/div&#38;gt; &#38;quot; ;
	$(&#38;quot;#field_1_12&#38;quot;).append(displayDiv) ;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now we need to make sure that the display div show shows the selected file.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;var target = $(&#38;quot;#field_1_12 input&#38;quot;) ;

	target.change(function(){
	   var fileDisplay =  $(&#38;quot;#file-display p&#38;quot;) ;
	    fileDisplay.empty() ;
	    fileDisplay.append( $(&#38;quot;#field_1_12 input&#38;quot;).val()) ;
	}) ;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And, we are done.&#60;br /&#62;
This works for me.&#60;/p&#62;
&#60;p&#62;I have, however, not thoroughly tested it yet across browsers. I&#60;br /&#62;
expect that the behaviours will work just fine.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sunil on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-45385</link>
			<pubDate>Tue, 03 Jan 2012 19:50:45 +0000</pubDate>
			<dc:creator>sunil</dc:creator>
			<guid isPermaLink="false">45385@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just another quick note that might save people some time:&#60;/p&#62;
&#60;p&#62;There is a cool js tool that can be really useful for styling upload forms:&#60;br /&#62;
&#60;a href=&#34;http://uniformjs.com/&#34; rel=&#34;nofollow&#34;&#62;http://uniformjs.com/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;However, my attempts to get this to work with gravity forms  a couple of weeks ago failed.&#60;br /&#62;
I'm afraid I don't remember why. All I have in my notes is that uniform.js doesn't work with GF. This might have something to assumptions that uniform makes about the markup that it will be applied to: it requires the markup to be structered in a particular way, and GF doesn't follow the expected structure.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sunil on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-45383</link>
			<pubDate>Tue, 03 Jan 2012 19:29:36 +0000</pubDate>
			<dc:creator>sunil</dc:creator>
			<guid isPermaLink="false">45383@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris.&#60;br /&#62;
Sorry for the delay in my reply.&#60;/p&#62;
&#60;p&#62;I'm afraid I don't have this code on a live server. If displaying this would be valuable, I could set something up later today. &#60;/p&#62;
&#60;p&#62;(Thing is, I only have a single site license for gravity forms. The site for which I have purchased a license for is not live yet.&#60;br /&#62;
If I showcase the technique using a GF instance on a demo site, how would this effect licensing?)&#60;/p&#62;
&#60;p&#62;There is a problem in my current implimentation of this technique:&#60;/p&#62;
&#60;p&#62;Using just styling rules that I have above, I replace the input with my own image. The image is a blank input form, styled the way I want it to look:&#60;br /&#62;
&#60;a href=&#34;http://imgur.com/3aZNN&#34; rel=&#34;nofollow&#34;&#62;http://imgur.com/3aZNN&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The problem is, that once the file for upload is selected, the user sees no text. In an unstyled version, the user would see text, showing the path of the file. So, my implimentation violates the users expectations.&#60;/p&#62;
&#60;p&#62;I'll be experimenting further over the next few hours. I'll keep you posted on my progress.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-44473</link>
			<pubDate>Tue, 20 Dec 2011 00:25:29 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">44473@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;sunil, do you have a page where we can see this in use?  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sunil on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-44426</link>
			<pubDate>Mon, 19 Dec 2011 18:30:11 +0000</pubDate>
			<dc:creator>sunil</dc:creator>
			<guid isPermaLink="false">44426@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm testing this a simplified variation of this technique with the file upload input from gravity forms. Its working.&#60;/p&#62;
&#60;p&#62;I'm not bothering with the lazy-loading the css. Just having the image I want in place is fine.&#60;/p&#62;
&#60;p&#62;Here is my sass:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[css]
.ginput_full
  position: relative
  display: inline-block
  overflow: hidden
  width: 356px  // set to whatever the width of the form is
  opacity: 0

.gform_fields li#field_1_12.gfield label.gfield_label
  background-color: #DDD //setting background colour for testing
  position: absolute
  width: 356px // set to width of form
  height: 50px
  background-image: url(&#38;quot;/img/upload.png&#38;quot;)  // image to replace the input&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-43680</link>
			<pubDate>Sun, 11 Dec 2011 00:51:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">43680@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The file upload control is built-in browser functionality and is different in every browser and OS.  It's not something you can accomplish within Gravity Forms.&#60;/p&#62;
&#60;p&#62;If you Google a bit for &#34;&#60;a href=&#34;http://www.google.com/search?gcx=w&#38;amp;ix=c1&#38;amp;sourceid=chrome&#38;amp;ie=UTF-8&#38;amp;q=styling+the+file+upload+button&#34; rel=&#34;nofollow&#34;&#62;styling the file upload button&#60;/a&#62;&#34; you will get a lot of explanations and a lot of work arounds.  This one seemed interesting:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://the-echoplex.net/log/how-to-style-a-html-file-upload-control-using-css-and-javascript&#34; rel=&#34;nofollow&#34;&#62;http://the-echoplex.net/log/how-to-style-a-html-file-upload-control-using-css-and-javascript&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cshaffstall on "Custom Browse AND Submit buttons"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-browse-and-submit-buttons#post-43661</link>
			<pubDate>Sat, 10 Dec 2011 17:50:41 +0000</pubDate>
			<dc:creator>cshaffstall</dc:creator>
			<guid isPermaLink="false">43661@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have modified the default settings for the submit button to use a custom image, but the submit button appears on a form where I also have file upload (with a browse button). I would like to use a custom image for the browse button as well and I suspect that I can set this through the style sheets, but cannot figure out how.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
