Hello,
I use the Avada Theme.
I have a view in which i use a button to open a Modal.
The code :
<td > [fusion_button link="" link_attributes="" modal="contactmodal" ]Info [/fusion_button] </td>
In the modal i use a contact form 7.
My problem is that i do not succeed in passing some parameters (price, number of apartment, ...) from my view to the modal that need to be sent in the contact form.
Without using the modal i have code that opens a new page:
<td >€ [types field="prijseuro"][/types]</td>
This method works fine.
See:
hidden link
What do i do wrong?
Kind Regards,
Paul.
Hello Paul and thank you for contacting the Toolset support.
I think that only one modal is added to the page. So, every "Info" button will open the same modal. This means, that we can pass values to the form on the server-side. We'll need to use some Javascript code to pass the data to the form when the modal is opened.
This reply may give you an idea on how to implement it https://toolset.com/forums/topic/cred-child-post-form-in-bootstrap-modal/#post-475331
Let me know if you have any questions.
Hi Jamal,
Thx for the assistance.
When I activate the button, the modal opens with the Cred form in the background.
But there is a kind of a semi transparant layer above the modal so that i can not fill in the form.
hidden link
Do you what is wrong?
Kind regards,
Paul.
Hi Jamal,
I found a solution for the overlay by adding some JS.
kind regards,
Paul.