Hi.
I was searching for a way to change the notifications format without needing to change field by field.
Right now, the name of the field is on a line, and the content of that field is on another line above it.
Is there a way to make both the name and data of the field on the same line?
The notification data right now is too long, we’d want it to be more compact.
chrishajer
(Chris (Gravity Forms))
January 13, 2020, 7:06pm
2
If you don’t want to do this manually, field by field, in your notification, I recommend this plugin which gives you complete control over the output of the {all_fields} merge tag:
1 Like
Does this plugin allow to show the fields in two columns, add background color to some fields, etc.?
I’m styling my notification manually, but I have a problem. Hopefully anyone know how to solve it.
I have a 800px table, i want the cells to be fixed with this width: 1st and 4th, 150px; 2nd and 5th, 240px; 3rd, 20px.
But when a client completes the form and I receive the notif, the style is not as I set it.
<table style="table-layout: fixed; word-wrap: break-word;" width="800">
<tbody>
<tr>
<td style="text-align: center; color: #0063be;" colspan="5">
<h2>{form_title}</h2>
</td>
</tr>
<tr>
<td style="text-align: center; height: 20px;" colspan="5"></td>
</tr>
<tr>
<td style="text-align: center; color: #0063be;" colspan="5">
<h3>Datos del Vehículo</h3>
</td>
</tr>
<tr>
<td style="text-align: center; height: 20px;" colspan="5"></td>
</tr>
<tr style="background-color: #bee0ff;">
<td width="150px"><strong> Marca</strong></td>
<td width="240px">{Marca:1}</td>
<td width="20px"></td>
<td width="150px"><strong> Modelo</strong></td>
<td width="240px">{Modelo:2}</td>
</tr>
<tr>
<td><strong> Nª plazas</strong></td>
<td>{Número de plazas:58}</td>
<td></td>
<td><strong> Cilindrada</strong></td>
<td>{Cilindrada:4}</td>
</tr>
<tr style="background-color: #bee0ff;">
<td><strong> Potencia (cv)</strong></td>
<td>{Potencia (cv):5}</td>
<td></td>
<td><strong>Matrícula</strong></td>
<td>{Matrícula:6}</td>
</tr>
<tr>
<td><strong> Uso del vehículo</strong></td>
<td>{Uso del vehículo:7}</td>
<td></td>
<td><strong> Transporte Internacional</strong></td>
<td>{¿Transporte Internacional?:8}</td>
</tr>
<tr style="background-color: #bee0ff;">
<td><strong> Mercancías Peligrosas</strong></td>
<td>{¿Mercancías Peligrosas?:9}</td>
<td></td>
<td><strong> Fecha 1ª Matriculación</strong></td>
<td>{Fecha 1ª matriculación:10}</td>
</tr>
<tr>
<td><strong> Fecha adquisición</strong></td>
<td>{Fecha adquisición:11}</td>
<td></td>
<td><strong> Tipo de Seguro</strong></td>
<td>{Tipo de Seguro:13}</td>
</tr>
<tr style="background-color: #bee0ff;">
<td><strong>Compañía anterior</strong></td>
<td>{Compañía anterior:14}</td>
<td></td>
<td><strong>Nª Póliza</strong></td>
<td>{Número de Póliza (sólo los 5 últimos dígitos):15}</td>
</tr>
<tr>
<td style="text-align: center; height: 20px;" colspan="5"></td>
</tr>
<tr>
<td style="text-align: center; color: #0063be;" colspan="5">
<h3>Conductor</h3>
</td>
</tr>
<tr>
<td style="text-align: center; height: 20px;" colspan="5"></td>
</tr>
<tr>
<td><strong> Nombre</strong></td>
<td>{Nombre:55}</td>
<td></td>
<td><strong> Apellidos</strong></td>
<td>{Apellidos:54}</td>
</tr>
<tr style="background-color: #bee0ff;">
<td><strong>NIF/CIF</strong></td>
<td>{NIF/CIF:21}</td>
<td></td>
<td><strong>Fecha Nacimiento</strong></td>
<td>{Fecha de Nacimiento:22}</td>
</tr>
<tr>
<td><strong> Fecha carnet</strong></td>
<td>{Fecha carnet:23}</td>
<td></td>
<td><strong> Código Postal</strong></td>
<td>{Código Postal:26}</td>
</tr>
<tr style="background-color: #bee0ff;">
<td><strong>Localidad</strong></td>
<td>{Localidad:27}</td>
<td></td>
<td><strong> Provincia</strong></td>
<td>{Provincia:28}</td>
</tr>
<tr>
<td><strong> Email</strong></td>
<td>{Email:45}</td>
<td></td>
<td><strong> Teléfono</strong></td>
<td>{Teléfono de contacto:60}</td>
</tr>
<tr style="background-color: #bee0ff;">
<td><strong>¿Propietario distinto a primer conductor?</strong></td>
<td>{¿Es el propietario distinto al primer conductor?:53}</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="text-align: center; height: 20px;" colspan="5"></td>
</tr>
<tr>
<td style="text-align: center; color: #0063be;" colspan="5">
<h3>Propietario</h3>
</td>
</tr>
<tr>
<td style="text-align: center; height: 20px;" colspan="5"></td>
</tr>
<tr>
<td><strong>Nombre</strong></td>
<td>{Nombre:56}</td>
<td></td>
<td><strong>Apellidos</strong></td>
<td>{Apellidos:57}</td>
</tr>
<tr style="background-color: #bee0ff;">
<td><strong>NIF/CIF</strong></td>
<td>{NIF/CIF:34}</td>
<td></td>
<td><strong>Fecha Nacimiento</strong></td>
<td>{Fecha de nacimiento:35}</td>
</tr>
<tr>
<td><strong> Fecha carnet</strong></td>
<td>{Fecha de carnet:36}</td>
<td></td>
<td><strong> Código Postal</strong></td>
<td>{Código Postal:39}</td>
</tr>
<tr style="background-color: #bee0ff;">
<td><strong>Localidad</strong></td>
<td>{Localidad:40}</td>
<td></td>
<td><strong> Provincia</strong></td>
<td>{Provincia:41}</td>
</tr>
<tr>
<td><strong> Consentimiento</strong></td>
<td>{ (Consentimiento):43.1}</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
This is how the notif looks like: