conglinh02
Forum Replies Created
-
@wpmudevsupport12 What do you think
@wpmudevsupport12 FInally got it to work but look at this, this is the console
https://ibb.co/N2bVdvYk
when I dojQuery(document).on('forminator:field:condition:toggled', function(e) {
console.log("toggled")@wpmudevsupport12 I’ve message you the frontend link in Slack via @patrick Freitas
Thanks for the quick reply!
But I’ve already done that and finish that part, the part is working. I’ve mentioned that in the questionI already read a lot of threads on putting iframe in and successfully did it,
So i’ve already done this prior to the question “add_filter( ‘forminator_replace_variables’, ‘do_shortcode’ );”
I put a shortcode in a HTML field in forminator (https://ibb.co/4nN9Dbxj) to render a post content(https://ibb.co/h1RdC390), and that has been done(https://ibb.co/n81zNtxp) successfully prior to the question.
Problems is, that shortcode is being render every single time when I do this (mentioned in my initial question):whenever I:
1. check a checkbox
2. choose a radio option
3. click next pageHere is the proof of the divs being rerendered. Chrome inspection highlight the elements that is being dynamically changed. And these divs “flashing” for like 10-20 times in 0.5 seconds whenever I do the actions above. https://ibb.co/k6xJdpNj
And because it’s being rerender, Chrome is thinking I’m having like 200+ audio player on my page. This console error is shown https://ibb.co/whDLrqjr and also crash the site.
I know a way to bypass chrome limit is to set attribute of the audio preload=”none” but that won’t fix the problem that content of Forminator HTML field is being rerender (this might cause problems if I have js in that page being ran 200 times every time I interact with the form).