Hello,
I have created an action button which works only when the current form is saved. Unfortunately, I have the button clickable event when the button save is red.(not saved).
The after save could be leverage but in php. Is it possible to add a nuActionButton after save in php ?
Yves
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Hide/unHide custom action button
-
- Posts: 348
- Joined: Sun Mar 14, 2021 8:48 am
- Location: Geneva
- Has thanked: 94 times
- Been thanked: 12 times
Hide/unHide custom action button
You do not have the required permissions to view the files attached to this post.
-
- Posts: 348
- Joined: Sun Mar 14, 2021 8:48 am
- Location: Geneva
- Has thanked: 94 times
- Been thanked: 12 times
Re: Hide/unHide custom action button
with nuAfterSave() which is a javascript nubuilder function ? I have tried, in the custom code behind the form, I have not found how to have this function working.
Yves
Yves
-
- nuBuilder Team
- Posts: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 times
- Contact:
Re: Hide/unHide custom action button
In the form's Custom Code, add:
This function enables an object an id of "nuSendButtonButton" if the nuIsNewRecord() function returns false, and disables it if the function returns true.
nuIsNewRecord() returns a boolean value indicating whether the current record being displayed is a new record (not yet saved) or an existing record.
Code: Select all
nuEnable('nuSendButtonButton', !nuIsNewRecord());
nuIsNewRecord() returns a boolean value indicating whether the current record being displayed is a new record (not yet saved) or an existing record.