Page 1 of 1

hide object

Posted: Wed Mar 13, 2019 7:39 pm
by johan
Hi

How can I hide an object until the form is saved?

Johan

Re: hide object

Posted: Wed Mar 13, 2019 8:42 pm
by Janusz
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.

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'); });
}

Re: hide object

Posted: Wed Mar 13, 2019 11:26 pm
by admin
johan,

You could try this...

Code: Select all


if(nuCurrentProperties().record_id == '-1'){
    nuHide('bob');
}

Steven

Re: hide object

Posted: Thu Mar 14, 2019 6:18 am
by johan
Thanks Steven, works perfect.

Re: hide object

Posted: Thu Mar 14, 2019 11:08 pm
by admin
.