Hi
How can I hide an object until the form is saved?
Johan
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.
hide object
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: hide object
Hi,
Not sure if this is what you are looking for, but for example I have additional save button which is hidden on edit form load.
When any field is modified it is getting visible - and after saving the record it is hidden again.
It is placed in the form Custome code JavaScript.
Not sure if this is what you are looking for, but for example I have additional save button which is hidden on edit form load.
When any field is modified it is getting visible - and after saving the record it is hidden again.
It is placed in the form Custome code JavaScript.
Code: Select all
nuHide('button_save');
$('#button_save').css("background", "red");
if (nuFormType() == 'edit') {
var inputs = $("#nuRECORD").find(":input:not([type=button])");
inputs.change(function() { nuShow('button_save'); });
}
If you like nuBuilder, please leave a review on SourceForge
Re: hide object
johan,
You could try this...
Steven
You could try this...
Code: Select all
if(nuCurrentProperties().record_id == '-1'){
nuHide('bob');
}