Hi,
I’m trying to hide/show fields depending on the options selected.
Referring to this thread I added the following:
window.addEventListener("load_panels_data", function() { console.log("Panels data loaded"); });
But nothing was logged.
Any thoughts?
Hi C,
Thanks for reaching out. The load_panels_data is Page Builder specific, and fires before you can really change how the form visually looks. Instead, I recommend using the sowsetupform event. This will trigger when setting up the form, and allow you to filter the fields as needed. You’ll need to use JavaScript to hide the fields.
Another option would be to set up a custom state emitter.
Kind regards,
Alex
Hi Alex,
Apologies for the delay, only just getting back to it.
Thanks very much, that looks like it’ll do the trick.
Kind regards,
C
Hi C,
It’s great to hear that helped. :)
Please feel free to open a new thread if anything else comes up.
Kind regards,
Alex