How can I catch an internal event in FAQ Widget

Hello all,

I am trying to add an FAQ section to my site and would like to have some analytics on it. I managed to add the FAQ widget through the editor, but when I tryed to add event onto to it I could only find hover events and couldn’t even click a specific question (to add the event on this internal element).

I am pretty new to Corvid, but I was a full stack developer so I am familiar with coding in general.

Thanks in advance for the help,
Moshe

The Wix FAQ app is not integrated with Corvid. This forum is dedicated to Corvid. Contact the Wix support team for assistance.

Thanks for the reply.

Wix supprt sent me to this forum to find out whether and how it is possible.
I have checked some examples and I believe using transparent blocks can solve it. A followup question is whether it will work with the Wix FAQ (I will add the blocks above the elements using z axis if needed).

I all that won’t work, I believe creating an FAQ alone is the best option, but still trying to save the time.

Thanks again,
Moshe

@moshe9400 Maybe ditch the FAQ app completely and recreate its functionality in code. Hiding and showing elements on mouse click and retrieving Q&As from a database is all simple stuff. You might find it a bit daunting getting to grips with Corvid fundamentals at first but we’re here to help you out along the way if you can demonstrate you’ve tried.

Thanks @lee1

I took your advice and created the FAQs alone. I took this example as the basic code.

I now have a problem I hope you can help. Currently the strip in which the FAQs lies has a constant size but when I look ay the preview, the strip shrink to the last question and is only opened when the last answer expands.
I am not sure if it is something with Corvid or Wix but maybe you can help.
Editor:


Answer Collapsed:


Answer Expanded:

Thanks,
Moshe

@moshe9400 And you don’t want the part at the bottom to ever disappear?

Maybe this article holds the answer.

https://support.wix.com/en/article/corvid-how-page-layout-is-affected-when-elements-change-size#rules-for-collapsing-and-expanding-elements-1

Maybe you need the gap to be at least 71 pixels.

If that’s not it you can cheat and stick a transparent box in there.

@lee1 , I need that gap for visual releif. The white footer sticks to the answer and it looks bad.

I tried increasing the gap to 70, but than it looks like there is a massive gap because the answers are collapsed (and, as far as I know, on the editor I can only edit the strip with expanded answers).
I also tryed to add an transparent container box and a themes box by the same colour. When I added the non-transparent one, I saw it exists but is placed where it would have been if all answers where expanded (looks like that). [A note that might be relevant: the code prevents more than one answer to be opened at the same time.]
I believe these two problems are the same, just different symptom. Do you have any idea on why?

The themed box placement and preview:

Thanks

@moshe9400 Are you sure that container box is inside (a child of) the strip? I wouldn’t expect it to fall out the bottom like that.

@lee1 That was the problem, the box was placed in the upper most layer.

Thank you very much for all the help. It works now.