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
Tecton: Reload current form

Is there a way to reload the current extension with Tecton?

Use case: User submits form via ajax -> Body of form is hidden, loading spinner starts -> Modal displays with results, loading spinner stops -> Modal Button 1: Go to landing page, Modal Button 2: Go back to form (but reload)

Currently, I'm trying to use the navigateTo function to navigate to the current form but it doesn't seem to reload. Is there another way to do this?

Thanks!

Posted 5 years ago
Votes Newest

Answers 2


I would create another route and then just call submitform('thatRoute'); and then have that route just call the default function. It is kinda a roundabout way to do it, but it is the best way to keep all the right values. Hopefully this makes sense.

Posted 5 years ago
Trey Teter
124 × 2 Administrator

Thanks for the suggestion, Trey. What I ended up doing is capturing the form HTML and setting it to a variable on page load. Then, when the 'Go Back' button is clicked in the modal, I set the form HTML to the variable. This approach seems to work well

Posted 5 years ago
0

That should work, not a bad solution either. Good job.

— Trey Teter   5 years ago
118 Views
2 Answers
5 years ago
5 years ago
Tags