On button click, I have jquery function which has following line
$("html,body").animate({ scrollTop: 0 }, "slow");
This works in preview mode of form but not when published. Any reasons?
I found out reason & solution for this. The reason in Nintex adds css when form is published & because of it code does not take any effect. Instead of jQuery's animate or scrollTop functions, I used javascript's scrollIntoView method.