Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

refresh button Topic is solved

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
acroporax
Posts: 42
Joined: Thu Apr 21, 2022 3:04 pm
Has thanked: 5 times
Been thanked: 1 time

refresh button

Unread post by acroporax »

Hi All,
I want to add a refresh button to the form. How can I do that?
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: refresh button

Unread post by kev1n »

In the form's Custom Code, add:

Code: Select all

nuAddActionButton('refreshbutton', nuTranslate('Refresh'), 'nuGetBreadcrumb()');
acroporax
Posts: 42
Joined: Thu Apr 21, 2022 3:04 pm
Has thanked: 5 times
Been thanked: 1 time

Re: refresh button

Unread post by acroporax »

thank you
acroporax
Posts: 42
Joined: Thu Apr 21, 2022 3:04 pm
Has thanked: 5 times
Been thanked: 1 time

Re: refresh button

Unread post by acroporax »

An also, Also, how can I use this code with a timer?
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: refresh button

Unread post by kev1n »

To refresh a Browse form in a certain interval, look here.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: refresh button

Unread post by kev1n »

Did that help?
hering
Posts: 10
Joined: Sun Apr 09, 2023 12:54 pm
Has thanked: 8 times
Been thanked: 1 time

Re: refresh button

Unread post by hering »

In globaladmin mode exist beautiful refresh button.
Why disappear when user log in?
How to get it back?
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: refresh button

Unread post 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');
}
hering
Posts: 10
Joined: Sun Apr 09, 2023 12:54 pm
Has thanked: 8 times
Been thanked: 1 time

Re: refresh button

Unread post 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.
Post Reply