Mautic Community Forums

Send form results" action incomplete when using "show when value exist"

Send form results" form’s action incomplete when using with field option “show when value exist”

Originally posted on github :

Maybe between Bug and Enhancement.
When you use multiple fields in a form, it is useful to use the “show when value exist” option

Thus the form length is not so long and only new / empty fields are asked to the identified contact.

But when the form is submitted, if you use the “send form results” action, only the displayed/submited fields on the current form will be filled in .

Other fields remains empty, although we actually have data in the database and the contact is identified (else we will have displayed all fields)

We will receive an email looking this way :

Here the fiels entered by the contact :
Lastname: {formfield=nom}
Company: {formfield=societe}
Email: {formfield=email}
Effectif: 1-50

Note that the empty ones are fields that were displayed (not required) and left empty by the contact
Fields hidden by configuration in the form will remain in the email and be printed as the tag code {formfield=fieldname}

I think Mautic should rather query the DB and replace the missing value by actual DB value. (maybe it could mention by a syntax that the field was not directly input by contact but retrieved in DB

like for example : (from DB)

(in italic)