Skip Navigation

[Resolved] fusion modal passing parameters

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by paul 4 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#1778497

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.

#1779151

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.

#1782455

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.

#1782479

Hi Jamal,

I found a solution for the overlay by adding some JS.

kind regards,

Paul.