Page 1 of 1
refresh button
Posted: Thu Jun 30, 2022 5:06 pm
by acroporax
Hi All,
I want to add a refresh button to the form. How can I do that?
Re: refresh button
Posted: Thu Jun 30, 2022 5:23 pm
by kev1n
In the form's Custom Code, add:
Code: Select all
nuAddActionButton('refreshbutton', nuTranslate('Refresh'), 'nuGetBreadcrumb()');
Re: refresh button
Posted: Thu Jun 30, 2022 5:51 pm
by acroporax
thank you
Re: refresh button
Posted: Tue Jul 05, 2022 10:58 am
by acroporax
An also, Also, how can I use this code with a timer?
Re: refresh button
Posted: Tue Jul 05, 2022 11:07 am
by kev1n
To refresh a Browse form in a certain interval, look
here.
Re: refresh button
Posted: Mon Jul 18, 2022 8:57 pm
by kev1n
Did that help?
Re: refresh button
Posted: Sun May 14, 2023 4:04 pm
by hering
In globaladmin mode exist beautiful refresh button.
Why disappear when user log in?
How to get it back?
Re: refresh button
Posted: Mon May 15, 2023 9:09 am
by kev1n
Hi,
The refresh button has been introduced to make it easier for admins to refresh a form, especially when designing forms.
What would be your use case for having this button for users?
The following code snippet can be used to add a refresh button for the user:
Code: Select all
if (!nuGlobalAccess()) {
nuAddIconToBreadcrumbHolder('nuRefreshButton', 'Refresh', 'nuGetBreadcrumb()', 'fas fa-sync-alt', '3px');
}
Re: refresh button
Posted: Mon May 29, 2023 10:16 pm
by hering
Hi,
Thank You for answer.
I found this:
Code: Select all
nuAddIconToBreadcrumbHolder('nuRefreshButton', 'Refresh', 'nuGetBreadcrumb()', 'fas fa-sync-alt', '7px');
and add in Custom Code > JS > Browse & Edit
It helps dispose of wrong entries in edit form without exit from it.
Have a nice day.