Mandatory fields & empty editboxes
Posted: Fri Nov 22, 2024 11:37 am
Hi,
I have 2 questions with regards to a form;
1. I have several editboxes in my project. Some are mandatory to fill in, some are not. When the form is submitted, the non-mandatory edit boxes are empty and visible in the email. Is there a way to remove those empty fields from the email?
(if you have like 100 questions in the form, it would be great to receive an email with only the filled in boxes)
2. When clicking on the submit button, which is part of the form, it tells the user if they missed a mandatory field. Now I added an extra event: onclick > Print Element > LayourGid1.
This works, the user gets the print pop-up and can print the form. After printing it gets submitted and I receive the email with the data. However... the mandatory fields are not checked and can be left empty. How can I print the document and submit the form with one click, including checking the mandatory fields.
(I tried using an icon with 2 events; first event; onclick > Form Submit > LayourGid1. Second event: onclick > Print Element > LayourGid1. But no luck)
Thanks so much!
I have 2 questions with regards to a form;
1. I have several editboxes in my project. Some are mandatory to fill in, some are not. When the form is submitted, the non-mandatory edit boxes are empty and visible in the email. Is there a way to remove those empty fields from the email?
(if you have like 100 questions in the form, it would be great to receive an email with only the filled in boxes)
2. When clicking on the submit button, which is part of the form, it tells the user if they missed a mandatory field. Now I added an extra event: onclick > Print Element > LayourGid1.
This works, the user gets the print pop-up and can print the form. After printing it gets submitted and I receive the email with the data. However... the mandatory fields are not checked and can be left empty. How can I print the document and submit the form with one click, including checking the mandatory fields.
(I tried using an icon with 2 events; first event; onclick > Form Submit > LayourGid1. Second event: onclick > Print Element > LayourGid1. But no luck)
Thanks so much!