Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Scroll to the top of a template with JavaScript?

I'm trying to get the page to scroll back to the top of a form if the user selects a button to edit the form. I've tried this in JavaScript with various methods (scrollTo, scrollToTop, scrollIntoView) and none of them are working. Am I missing something?

Votes Newest

Answers


Hello, for your javascript needs I recommend checking out Tecton first. For this specific example:

tecton.actions.scrollToTop();

Should do it. See documentation here: https://cdn1.onlineaccess1.com/cdn/base/tecton/v1.14.3/Documentation/index.html#/capabilities/scrollToTop

Posted 4 years ago
Trey Teter
124 × 2 Administrator
0

Trey,

This does work if I use it as an onlick, but it does not work when I use it as an onload event. Any help?

— Tanner Yea   4 years ago
0

Actually, I found a work around

— Tanner Yea   4 years ago
97 Views
1 Answer
4 years ago
4 years ago
Tags