Dear all, I now have built up two forms and got 2 main problems. Firstly only 1 document can be attached and secondly the input field is only working with 1 line. Can you please help me?
Regards Ferry
Hi @Multiferry,
Multiple files are supported when sending forms via email. However, Webhooks are limited to a single file.
This is really a limitation on webhook endpoints, not Elements: Most webhook endpoints expect a single file attachment, typically for straightforward processing, like saving it to cloud storage or forwarding it via email. Supporting multiple files would require a more complex multipart or array-based structure, which many webhook endpoints don’t handle out of the box.
Set this field to a textarea, and then set how many lines you’d like.
I found this when searching for a solution to the contact form. I just cannot get it to work! I waited until 0.9.8. in case the new templates with a contact form would help but no, it still won’t send an email.
I use gmail so smtp.gmail.com, port 587, TLS and I have tried both my real password and an app-specific password. None of these settings work, when I press the submit button nothing happens.
Any help please?
Hi @jwDave.
Could you check which version of PHP is installed on your server?
You can do this by appending ?apicheck
to the end of the URL — that will add an overlay to the page with a success or error message
So my php was out of date but I updated it to a compatible version 8.3.22.
I also changed the name of the index.html to index.php and the folder name to ‘contact’ but it still doesn’t work, am I missing something about the page set up?
Hi Dan, with the textarea I am now fine. But either I try “drag & drop” or attach some files with the select button, only one file will be attached and send. I am sure in later versions this was working. Regards Ferry
Hi @Multiferry, can you share the live URL so we can take a look at the page?
Oh, and are you sending via Email or Webhook?
Can you share the live URL of your page, and your project via Elements Cloud?
Hi Dan, it`s e-mail. (MULTIBETON - Qualität ist die beste Garantie.) Regards Ferry
elementsapp://downloadDocument/AhyfLVT88zKo
In this case it seems like the .htaccess
file is not on the server — I think this is the case as the requests to the Form processing API are coming back as a 404 not found.
My thought is that the .htaccess
that routes the requests correctly is not on the server, if it were then we would not be getting a 404 returned.
Could you try Re-publishing All Files, and then check if the following file is present on your server: /rw/elements/com.realmac.apipack/api/.htaccess
Apologies for the inconvenience. I am working on an improved Form at the moment, which will help us debug these kinds of issues easily. We hope to have that update out to you within the next couple of weeks.
It looks like, from your project, that you need to enable the “Multiple” option of the Form Attachment component. Give that a go and let us know if it’s working
Very easy. Now it works thanx. One small thing with the subject. I entered a german wording but it still write “new form submission”. Regards Ferry
Hi
I republished all files and the .htaccess file is there where you said it should be, still won’t send email though.
Many thanks
Dave
This is the .htaccess file content.
Thanks
Dave
RewriteEngine On
Route all requests to the ‘public’ directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ public/index.php [L]
That’s a known bug, we should have that fixed in the upcoming Form updates!
who are you hosting with?
IONOS, I have several RapidWeaver contact forms hosted with them, all work ok.
Thanks
Dave
I have stripped this down to a singe page and form for debug purposes, so the the url to the contact form that doesn’t work is now https://beta-jwdr.co.uk
Hi @jwDave,
I still can’t work this one out, for some reason the API request is returning a 404.
As I mentioned above, we do have an improved version of the Forms coming, however, with this version of the Forms I can’t debug anything more from my end.
I would be happy to take a closer look if you’d be willing to give me access to your server. If that’d be ok, perhaps you could send me a temporary username + password? You can DM me here or email ben at realmac software.
Apologies again for the inconvenience.