NO BUG: Post id present in interaction HTML attribute but not passing into popup

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

Hey, I have created modal template and now trying to pass post id from parent loop into this modal. The correct post id is present in interaction html attribute (post_id 1450)

But after opening the modal, page id is passed into the modal instead of the correct post_id from parent loop = 1450.

I created probably hundreds of modals and never had this issue, any idea what is causing this? Thanks a lot!!!

Hi @robert_looplabs,

can you create a few screenshots of your setup and how you pass the post id to the popup? Thank you,
Matej

Hey Matej!

Thanks a lot for your answer.

  1. Query loop into professional CPT

  2. Interaction to open the modal

I can also provide credentials if needed. Thanks again!

Hi @robert_looplabs,

can you make sure that the Popup template is set to Ajax, and that you add a “Template” element, where you select your popup, inside a loop?

Will it work then?
Matej

Magic Matej! :open_mouth: Its working now, thanks!!

The bricksforge pro forms has some issues with the AJAX setting, it breaks the new file input but thats not on you. If there is any other way to fix this without need to set AJAX == true, it would help though!

Actually the template element was enough, ajax doesnt need to be set to true so this is fixed, thanks again!!

Perfect, I just wanted to suggest that you try without ajax :slight_smile: With Ajax is better, that’s why I suggested it - less DOM to load, but as you noted that there is an issue with BF, then without AJAX it is :slight_smile:

I’ll mark the topic as NO BUG :slight_smile:

Matej

1 Like