Hi,
After pressing Clone button on the edit form I want to hide some objects on the form (specyfically to hide subfrom)
How I could do it? (where to place nuHide(..) )
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Clone - how to add some actions after pressing Clone button
-
- nuBuilder Team
- Posts: 508
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 10 times
- Been thanked: 18 times
Clone - how to add some actions after pressing Clone button
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: Clone - how to add some actions after pressing Clone but
Does this work?
Code: Select all
if (nuFormType() == 'edit') {
if (nuIsClone()) {
nuHide(..);
}
}
-
- nuBuilder Team
- Posts: 508
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 10 times
- Been thanked: 18 times
Re: Clone - how to add some actions after pressing Clone but
Thanks for replay.
The code is not working. It looks like that after pressing Clone button the edit form is not refreshing so not reading the JS custome code - at least this is my assumption.
What Im trying now is to modify nuform.js by adding additional function inside the nuCloneAction().
The code is not working. It looks like that after pressing Clone button the edit form is not refreshing so not reading the JS custome code - at least this is my assumption.
What Im trying now is to modify nuform.js by adding additional function inside the nuCloneAction().
If you like nuBuilder, please leave a review on SourceForge
Re: Clone - how to add some actions after pressing Clone but
Janusz,
Try this...
https://wiki.nubuilder.cloud/ ... #nuOnClone
Steven
Try this...
https://wiki.nubuilder.cloud/ ... #nuOnClone
Code: Select all
function nuOnClone(){
$('#zzzzsys_event_sf').hide();
}
Steven
-
- nuBuilder Team
- Posts: 508
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 10 times
- Been thanked: 18 times
Re: Clone - how to add some actions after pressing Clone but
Yes - it's working 
Thanks a lot.

Thanks a lot.
If you like nuBuilder, please leave a review on SourceForge