Reset popup scroll + inputs when opening it

I have a popup that opens from an item in a repeating group and which has these two things:

  1. A group inside it that vertically scrolls
  2. Various input fields that are not autobound

Let’s say I have the popup open, I scroll down in the group, and I change the value of the input fields. I close the popup, then re-open the popup from a different item in the repeating group. What I see is:

  1. The group is still vertically scrolled down to where it previously was; I would like it to reset to the top of the scroll when the popup is reopened
  2. The input fields have the last value that I inputted; I would like them to reset to their default values when the popup is reopened

I’ve tried inserting different combinations of “Reset data” and “Reset inputs” in both the workflow to open and to close the popup, but it’s still not accomplishing #1 or 2. Any tips?

use the when popup is closed workflow trigger and run an action to reset data and reset the popup — this will reset the values of the input

use the when popup is opened workflow trigger and run an action to scroll to and select and element at the top of the popup to scroll to — this would scroll to that element when popup is opened, however, I’m not 100% sure this will work as I think the scroll to action only actually works on elements that are on the page, so you may need to use some custom javascript which can be found via a laborious search of the forum to uncover…

UPDATE:

You can check a page in my free tutorials app that does the scroll to in a repeating group and use the same approach if the scroll to action does not work for the popup

This topic was automatically closed after 70 days. New replies are no longer allowed.