B
B
BIGO232018-09-18 21:48:17
Email
BIGO23, 2018-09-18 21:48:17

Contact form 7 pass modal title?

Hello. There is a site on WordPress with different forms, for example, products inside the modal window description and feedback form is needed in the letter template so that the title of the modal window comes, tell me how to implement it https://clck.ru/EPDst

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dymok, 2018-09-18
@UnluckySerivelha

You need to add a hidden field to the form, when you click on the card button in this hidden field using JavaScript, pass the name of the card on which the click was made.

I
id_baton4eg, 2018-09-18
@id_baton4eg

Yes, you can, if on bootstrap - here is off-doc, even if not bootstrap - you can use the same logic, but your own selectors and triggers.

$('#myModal').on('shown.bs.modal', function () {
  $('#myInput').trigger('focus')
})

https://getbootstrap.com/docs/4.0/components/modal/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question