How to scroll to particular section based on the condition

Chaiatnya
Tera Contributor

Hello All,

When opening the form based on the conditions I need to scroll to Particular section on the form. Can some one help how to achieve this.

1 REPLY 1

Tom23
Tera Expert

Hi Kri,

The support article here might help you achieve what you want, if you wrapped either the focus or the scrollIntoView() method in a relevant IF statement for your conditions. This is assuming you're doing this within the platform as opposed to the service portal.

If you're trying to achieve this on the service portal, I'd suggest using ui policies to show/hide fields based on selections. You could also use these in the platform of course, it depends on the exact problem you're trying to solve.