I'm trying to add custom behavior in one of my portal advanced Form and I added my javascript but I can't make it work. I'm now trying to do something even more basic such as an alert but I still can't make it work, does anyone have a clue about it?

I'm trying to add custom behavior in one of my portal advanced Form and I added my javascript but I can't make it work. I'm now trying to do something even more basic such as an alert but I still can't make it work, does anyone have a clue about it?
Hi @UBDev
For your advanced form, you are in the right section. All you need to do is fire some event like a button click or change event.
below is an example for you
$(document).ready(function() {
$('#NextButton').on("click", function() {
console.log(555, "Ragavan");
alert("Modal Test")
});
});
this works fine for me.
Have fun.
Hope it helps.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.