Error with {TRIGGERINDEX}
-
Hello, I hope you’re well. It seems there is an issue with the calculation of {TRIGGERINDEX} when using interaction layers. Instead of calculating the position based on the custom selector, it calculates it based on the element where the interaction layer is configured.
When working with static elements, this is not a problem since both values can match. However, when using a repeater builder, where there are intermediate elements, the issue arises.
I was reviewing the code, and I noticed that the
gspb_trigger_inter_Actionsfunction receives both the element with the interaction layer configuration (in my case, the repeater builder) and the one selected by the custom selector (theliinside the repeater). However, when passing this togspb_execute_inter_Actions, instead of passing the element selected by the custom selector (theli), it passes the element where the interaction layer was configured (the maindivof the repeater builder). This causes the {TRIGGERINDEX} to always be 0.I look forward to your support with this. Best regards.
The topic ‘Error with {TRIGGERINDEX}’ is closed to new replies.
