-
AuthorPosts
-
May 25, 2020 at 10:04 pm #1216296
Hi,
I needed to add dynamic elements to av_contact_field’s (options in dropdowns and the subject for the generated eMail). Shortcodes within parameters don’t work so I took another route: I first designed a contact form with the advanced layout editor and then added it per copy and paste to my code and made the respective elements dynamic. So far so good. The contact form shows up. But when I push the send button the form rolls up as intended but no send message appears and no message appears in my Inbox. I tested my “static” contact form on my website and it works perfectly by delivering the on screen message and the eMail. So it is no a general eMail delivery problem.
So my question is whether I need to take care of anything else? I am not sure how the whole mechanism with ajax and the POST message after pressing the send button works – so there might be something I overlooked.
Thanks, AndreasMay 25, 2020 at 10:39 pm #1216308OK, I am a step further: The parameter which controls the dynamic part is being transferred to the page with the contact form via GET parameter (i.e. https://domain/form/?id=x), but the code avia generates for the form post does not include the get parameter anymore: <form action=”https://domain/form/” method=”post” …> Thus in the second call via POST I am losing the parameter.
Any idea whether I can make avia hand over also a get parameter with the form POST call?May 26, 2020 at 2:46 pm #1216503I have a somehow quirky solution now. I add a AV_CONTACT_FIELD of type text and change the type to hidden (not possible in the Advanced Editor). The value I set to the GET-Parameter id’s content. The field is the first in the contact form and thus gets a name of AVIA_1_1. If I don’t find the GET parameter, I check for the content of AVIA_1_1 in the POST parameters. And here we have the ID handed through to the form handler. It is totally clear that this solution is subject to changes of Enfold concerning the naming of contact fields.
Any official comments?May 30, 2020 at 5:04 pm #1218043Hi aprott,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Or you might want to use a plugin that allows you to use these options out of the box.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.
