I need to be able to refresh a page from a change event

I have a page with several panel cards, with various controls in each one, hidden by default. There is a combo box at the top of the page and based upon what is selected certain cards are shown. I have one of the options in the combo box to be reset. In the change event I have a switch statement to show what cards need to be displayed. I can add an option for when “RESET” is selected but can’t find something in the toolbox to refresh the page. I am wanting to to this instead of having functionality to re-hide the panel cards not to mention retuning the controls inside the cards to a good state. Does this sound reasonable or is there a better way of doing this?

Try this it is kind of cheating.
image

In the condition expression field put

location.reload();

Refresh

1 Like

Thanks!! That worked. I may have to figure something else out later. The more stuff I add, I assume, the longer the reload will be? By the way where does the console-write write to? The browser console?

I only added the console part because it needs “something” otherwise it yells. And yes it writes to the browser console. I recommend putting in there something amusing and wait for someone to call you out on it!

May i recommend Ferdaaaa or … some ascii art

¯¯̿̿¯̿̿’̿̿̿̿̿̿̿’̿̿’̿̿̿̿̿’̿̿̿)͇̿̿)̿̿̿̿ '̿̿̿̿̿̿\̵͇̿̿=(•̪̀●́)=o/̵͇̿̿/'̿̿ ̿ ̿̿

2 Likes

Thanks. Yeah I tried without anything too and it gave me an “There should be only 1 or 2 connections from a condition action” error.

Jose, you saved my bacon on this one. We are using a selector column and for some reason, the refresh doesn’t work after selecting and updating rows. Forcing the page to reload per your example is the only thing that has worked.

Thank you so much! :clap:

1 Like