thankssforhelp
Forum Replies Created
-
Hi Dmytro @wpmudevsupport16,
thank you for your response.
You can find the export of the form here: https://drive.google.com/file/d/1JBHEMeb3i6_4nq6mtcBBa6EK7sLr4X7H/view?usp=share_link
Thanks in advance and kind regards
Hi Kasia @wpmudev-support2,
thank you, this worked – somehow it didn’t work earlier, when I tested it.
Kind regards
Hi Adam @wpmudev-support8,
thank you so much for your support, it just works great and super smooth! (:
Kind regards
Hi Kasia @wpmudev-support2,
thanks for your response.
But would it be possible to use this code via mu-plugin?:
<script> $('#PLZ').bind('keyup change', function (e) { if ($(this).val().length > 4) { var ort = $('#Ort'); $.getJSON('https://secure.geonames.org/postalCodeLookupJSON?&country=DE&callback=?', { postalcode: this.value }, function (response) { if (response && response.postalcodes.length && response.postalcodes[0].placeName) { ort.val(response.postalcodes[0].placeName); } }) } else { $('#Ort').val(''); } }); </script>
I think I can handle the rest then.
Thanks a lot and kind regards
Hi Nebu John @wpmudevsupport14,
thank you for your response!
.iti__flag-container { display: none; }
This one works, thanks a lot!
?Can you please provide the data with which the fields should be validated so that we could check this with our developers?
Is it possible to implement this with Forminator as described here: https://da-software.net/2018/03/stadt-und-ort-in-formular-mit-plz-autovervollstaendigen/
As soon as the 5-digit German postal code is entered, the city is autocompleted via the geonames database. Then I would only have to validate that a 5-digit postal code is entered.
Thank you very much and kind regards
Hi Adam @wpmudev-support8,
thank you very much for the quick reply.
With the phone number I got it now, thanks! But is there any way to use css to edit/delete the flag in the field?
Regarding the address fields I have the following scheme:
- First there is the street and the house number in an address field, e.g. “Musterstra?e 8”.
- In the next address field is the postal code, e.g. “12345”.
- In the third and last address field is the city, e.g. “Berlin”.
The postal codes in Germany always have 5 digits. There is no specific rule for the street and the house number. Does it make sense here to include all street names (and postal codes) available in Germany in the php snippet or would this be way too much and would overload the system or cause delays?
Thanks a lot an kind regards
Hi Adam @wpmudev-support8,
thanks a lot – it works great!
Is it also possible to validate:
- Germany adress fields (street name + house number in one field, postal code in another field)?
- (mobile) phone number?
Thank you very much for great support and kind regards
Hi Adam @wpmudev-support8,
I have one more question:
Everything works fine, however, the PDF files in the attachment contain an addition that was not actually included, eg.
xceH1GVnFETG-pdf-file-name
or
uReCVL4IcX8u-pdf-file-name,
where pdf-file-name is the original name of the uploaded file.Is there a specific reason for this or can this be changed so that the original file name is always retained?
Thanks a lot and kind regards
Hi Adam @wpmudev-support8,
thank you very much for your quick reply.
I have tested this code, it works fine.
However, the value in the hidden-field is automatically added, as already described by you:
If this path is added automatically to hidden field and it is a bit different, then let us know exactly what the path is (you can just share example one) and we should be able to modify the code accordingly.
The value I have in the hidden field is a query parameter, so it changes every time.
The uploads are located in the following path:
wp-content/uploads/forminator/form-id_longnumber/uploads/{hidden-3}Whereby:
- it always stays the same: wp-content/uploads/forminator/form-id_longnumber/uploads/
- it changes every time: the name of the PDF in {hidden-3}
Maybe brief background on how it comes to this value in {hidden-3}:
- customer fills out form 1 and uploads a PDF file.
- with the submission a notification email goes to several lecturers
- lecturers can open the link in the email and accept the customer’s order by filling out a form. With the submission, the PDF file name from step 1 is included in this form as {hidden-3}.
- once the instructor submits this acceptance form, he will get a notification mail with this link: wp-content/uploads/forminator/form-id_longnumber/uploads/{hidden-3}
Now the lecturer can click on this link and access the PDF. But the aim is that the PDF is directly available as an attachment already in step 3.
Thanks a lot and kind regards
Hi Adam @wpmudev-support8,
thank you very much for the very detailed answer. It all sounds very understandable and comprehensible. I will possibly test it out.
Kind regards
- This reply was modified 1 year, 6 months ago by thankssforhelp.