Bienvenido, Invitado
Recordarme

TEMA:

Breeze Form form HTML Form 4 meses 2 semanas antes #276084

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 3262
  • Karma: 2
  • Gracias recibidas: 160
Hi,

did you try this solution

To do this, go to your form's properties > Advanced Tab > More Options. Then click on the SUBMIT PIECES tab and scroll down to the END SUBMIT section.

Click on the CUSTOM radio button, and in the textarea that opens, add the following code:

$this->execPieceByName('ff_InitLib');
echo '
<form name="myresubmit" action="YOUR-TARGET-URL">
     <input type="hidden" name="somefield" value="'.htmlentities( ff_getSubmit('somefield') ).'"/>
     <input type="hidden" name="somefield2" value="'.htmlentities( ff_getSubmit ('somefield2') ).'"/>
     <input type="hidden" name="somefield3" value="'.htmlentities( ff_getSubmit ('somefield3') ).'"/>
     <!-- and so on ... -->
</form>
<script>
     document.myresubmit.submit();
</script>
';
 
exit;

(Remember to replace the 'somefield' variables with your field names!)



Let me know!

Regards,
Mirko

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

Breeze Form form HTML Form 4 meses 2 semanas antes #276085

  • Autor del tema
  • tayling
  • Fuera de línea
  • Expert Breezer
  • Expert Breezer
  • Mensajes: 214
  • Gracias recibidas: 0
Hi thanks
should the formname also be the name of my form or is that part of the code?
Regards

Tony

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

Breeze Form form HTML Form 4 meses 2 semanas antes #276086

  • Autor del tema
  • tayling
  • Fuera de línea
  • Expert Breezer
  • Expert Breezer
  • Mensajes: 214
  • Gracias recibidas: 0
by the way url for the form is
collectionconsultancy.com.au/index.php/contact/joomlacrm-form

Nothing happens on submit

Regards

Tony

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

Breeze Form form HTML Form 4 meses 2 semanas antes #276087

  • Autor del tema
  • tayling
  • Fuera de línea
  • Expert Breezer
  • Expert Breezer
  • Mensajes: 214
  • Gracias recibidas: 0
joomlacrm-form:1435 Uncaught ReferenceError: ff_validate_submit is not defined
at HTMLButtonElement.onclick (joomlacrm-form:1435:571)

$this->execPieceByName('ff_InitLib');
echo '
<form name="myresubmit" action=" collectionconsultancy.com.au/index.php?o...=ajax.saveWizardForm ">

</form>
<script>
document.myresubmit.submit();
</script>
';

exit;

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

Breeze Form form HTML Form 4 meses 2 semanas antes #276088

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 3262
  • Karma: 2
  • Gracias recibidas: 160
Hi,

could you please send me the backend link and access data to I can see the FORM, by email ma@evolutio.hr

regards,
Mirko

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

Breeze Form form HTML Form 4 meses 1 semana antes #276229

  • Autor del tema
  • tayling
  • Fuera de línea
  • Expert Breezer
  • Expert Breezer
  • Mensajes: 214
  • Gracias recibidas: 0
Hi Mirko
I am back on this project again - I did have errors in my script but now have corrected them all - the ccaregistration form submits with no errors now - and adds data to breezeform data but does not add it to JoomlaCRM

my script is
$this->execPieceByName('ff_InitLib');
echo '
<form name="joomlacrm_ccaregistration" id ="joomlacrm_ccaregistration" action=" collectionconsultancy.com.au/index.php?o...=ajax.saveWizardForm " >
<input name="first_name" type="text" value="'.htmlentities( ff_getSubmit('firstname') ).'">
<input name="last_name" type="text" value="'.htmlentities( ff_getSubmit('lastname') ).'">
<input name="company_name" type="text" value="'.htmlentities( ff_getSubmit('companylegalname') ).'">
<input name="position" type="text" value="'.htmlentities( ff_getSubmit('position') ).'">
<input name="phone" type="text" value="'.htmlentities( ff_getSubmit('officephone') ).'">
<input name="email" type="text" value="'.htmlentities( ff_getSubmit('eMail') ).'">
<input name="home_address_1" type="text" value="'.htmlentities( ff_getSubmit('address1') ).'">
<input name="home_address_2" type="text" value="'.htmlentities( ff_getSubmit('address2') ).'">
<input name="home_city" type="text" value="'.htmlentities( ff_getSubmit('suburb') ).'">
<input name="home_state" type="text" value="'.htmlentities( ff_getSubmit('state') ).'">
<input name="home_zip" type="text" value="'.htmlentities( ff_getSubmit('postcode') ).'">
<input name="work_address_1" type="text" value="'.htmlentities( ff_getSubmit('postaladdress1') ).'">
<input name="work_address_2" type="text" value="'.htmlentities( ff_getSubmit('postaladdress2') ).'">
<input name="work_city" type="text" value="'.htmlentities( ff_getSubmit('postalsuburb') ).'">
<input name="work_state" type="text" value="'.htmlentities( ff_getSubmit('postalstate') ).'">
<input name="work_zip" type="text" value="'.htmlentities( ff_getSubmit('postalpostcode') ).'">
<input name="mobile_phone" type="text" value="'.htmlentities( ff_getSubmit('mobile') ).'">
<input name="custom_3" type="text" value="'.htmlentities( ff_getSubmit('companytradingname') ).'">
<input name="custom_4" type="number" value="'.htmlentities( ff_getSubmit('abnnumber') ).'">
<input name="custom_5" value="'.htmlentities( ff_getSubmit('acnnumber') ).'">
<input name="custom_12" value="'.htmlentities( ff_getSubmit('exstingterms') ).'">
<input class="form-check-input" name="custom_1[0]" type="checkbox" value="1" >
<input class="form-check-input" name="custom_2[0]" type="checkbox" value="1" >
<input type="hidden" name="owner_id" value="3" />
<input type="hidden" name="status_id" value="2" />
<input type="hidden" name="source_id" value="6" />
<input type="hidden" name="save_type" value="lead" />
<input type="hidden" name="type" value="lead" />
<input type="hidden" name="return" value="" />
<input type="hidden" name="form_id" value="3" />

</form>
<script>
document.joomlacrm_ccaregistration.submit();
</script>
';
exit;

If you have any suggestion I would be please to hear

Regards

Tony

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

Tiempo de carga de la página: 0.060 segundos