Hi there!
I´m making a PDF using data input to build a contract.
But there is an 'optional field', so, if the user fills in, the result is one text on the contract. If he leave blank, the result is another.
The name of the field is RAZAOSOCIAL.
I´ve tried this code (assuming that I´m terribly bad with PHP):
All the other things I wanted are working - thanks a lot!
Regards
Lucas Selbach
Brasil
I´m making a PDF using data input to build a contract.
But there is an 'optional field', so, if the user fills in, the result is one text on the contract. If he leave blank, the result is another.
The name of the field is RAZAOSOCIAL.
I´ve tried this code (assuming that I´m terribly bad with PHP):
<?php if ('{$form->data['razaosocial']}' == '') echo 'inscrito/a no CPF sob nº {cpf}, ' else echo 'inscrito/a no CPF sob nº {cpf}, representando a empresa {razaosocial}, inscrita no CNPJ sob no. {cnpj},'; ?>
All the other things I wanted are working - thanks a lot!
Regards
Lucas Selbach
Brasil