Hello,
Some controls have cloneable set to NO. When I fill out a form, save it and then click the clone button, all controls are cloned.
The controls with cloneable set to NO should be blanked out after the cloning action. Shouldn't that be the way it works, or am I missing the point?
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.
cloneable objects
-
- Posts: 92
- Joined: Mon May 14, 2018 3:26 pm
Re: cloneable objects
marc,
You were right the Cloneable Object did nothing.
Now it does, but you'll need the latest from Github.
It works for all editable Objects, except Subforms at the moment.
Let me know if it works for you.
Steven
You were right the Cloneable Object did nothing.
Now it does, but you'll need the latest from Github.
It works for all editable Objects, except Subforms at the moment.
Let me know if it works for you.
Steven
-
- Posts: 92
- Joined: Mon May 14, 2018 3:26 pm
Re: cloneable objects
Thanks for that! Is there an easy way to "clear" all fields in a subform grid after a cloning action has taken place?
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: cloneable objects
This will clear all fields of your subgrid (the rows are still there but with the values blanked out):marc wrote:Thanks for that! Is there an easy way to "clear" all fields in a subform grid after a cloning action has taken place?
Code: Select all
if (nuFormType() == 'edit') {
if (nuIsClone()) {
$("Input[id^='subgridname']").val('').change();
}
}