TEMA:

Change name pdf email 1 año 2 meses antes #276130

  • Autor del tema
  • gateirow
  • Fuera de línea
  • Navegador Junior
  • Navegador Junior
  • Registered
  • Mensajes: 21
  • Gracias recibidas: 0
Hi, friends

I need to customize the name of the attached pdf that arrives in the mail.
example: change name ffexport-pdf-xxxxx for custom name

Thank you
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Change name pdf email 1 año 2 meses antes #276135

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 788
Hi,

please go to:
please go to:
/joomlaroot/components/com_breezingforms/facileforms.process.php
in line 5381 comment this like:
//$pdfname = $this->uploads . '/ffexport-pdf-' . $date_stamp . '-' . mt_rand(0, mt_getrandmax()) . '.pdf':

and add this code:
if($this->formrow->name=='formname'){
                   $recnr=$this->record_id ;
                     $pdfname =  $recnr ."_at". ".pdf";
                    }
                    else{
                $pdfname =   $recnr ."_at". ".pdf";
            }

please replace formname with name of your form (not title)
And customize name which you want, basically, this code show pdf name as "recordid_at.pdf".
Replace it with name which you want

If you need more help, let me know

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
Tiempo de carga de la página: 0.048 segundos

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!