cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Jquery scrollTop, does not work when form is published

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?

Labels: (1)
Tags (1)
0 Kudos
Reply
1 Reply
Not applicable

Re: Jquery scrollTop, does not work when form is published

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.

0 Kudos
Reply