You are viewing limited content. For full access, please sign in.

Question

Question

upload file field change 'Or drag files here'

asked on November 15, 2015 Show version history

Hello,

 

How can I change Forms upload file field's legend 'Or  drag files here' (French interfare requirement)?

 

Thanks in advance

0 0

Answer

SELECTED ANSWER
replied on November 16, 2015

Hello Sheila,

I have placed the code in the JavaScript (rather than CSS) tab and everything works fine.

Many thanks !

0 0

Replies

replied on November 15, 2015

Try this:

 $('span.drag-file-notice').replaceWith('<span class="drag-file-notice hidden-xs ">your text here</span>');

 

0 0
replied on November 15, 2015

Hi Sheila,

 

How to I bind this CSS code within the Forms field definition?

0 0
replied on November 16, 2015

Open the CSS tab on the form and paste it into your CSS script. Something like this...

$(document).ready( function() {

      $('span.drag-file-notice').replaceWith('<span class="drag-file-notice hidden-xs ">your text here</span>');

});

Then when your form loads and is in the ready state, all attachment fields will show the text you entered above instead of the original text. The ".drag-file-notice" class is an attribute on all  attachment fields, and the statement in your script (above) will tell Forms to change the text to whatever you entered in that statement.

0 0
SELECTED ANSWER
replied on November 16, 2015

Hello Sheila,

I have placed the code in the JavaScript (rather than CSS) tab and everything works fine.

Many thanks !

0 0
replied on November 17, 2015

You're welcome. Glad it worked for you!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.