TOPIC:

Upload files 1 month 13 hours ago #250106

  • Topic Author
  • DAVIDPL
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 77
  • Thanks: 0
I have two fields
1 file field
2 file name field.

I would like that if the file is not loaded, assign a name to the name field.

This is my code:

function ff_Subir_documentos_init()
{ setInterval(calc, 500);
} // ff_Subir_documentos_init

function calc() {
var D1 = ff_getElementByName('D00201');
var D2 = ff_getElementByName('D00203');
var D3 = ff_getElementByName('dni_deportista');
var D4 = ff_getElementByName('dni_tutor');

ff_getElementByName('Nombre_anexo_1').value = ff_getElementByName('Federado').value + '_' + 'D00201' + '_' + ff_getElementByName('username').value + '.pdf';
ff_getElementByName('Nombre_anexo_2').value = ff_getElementByName('Federado').value + '_' + 'D00203' + '_' + ff_getElementByName('username').value + '.pdf';
ff_getElementByName('Nombre_dni').value = ff_getElementByName('Federado').value + '_' + 'DNI' + '_' + ff_getElementByName('username').value + ff_getElementByName('Tipo_archivo_DNI').value;
ff_getElementByName('Nombre_dni_tutor').value = ff_getElementByName('Federado').value + '_' + 'DNI-TUTOR' + '_' + ff_getElementByName('username').value + ff_getElementByName('Tipo_archivo_DNI_tutor').value;

var a1 = ff_getElementByName('username').value;
var a2 = ff_getElementByName('cb_dirclub').value;

} // ff_Subir_documentos_init

Please Log in or Create an account to join the conversation.

Upload files 1 month 11 hours ago #250115

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2267
  • Karma: 3
  • Thanks: 210
Hi,

I am a little confused with your request, if you can explain it better it would be great

Regards,
Tihana

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.040 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!