Page 1 of 1

hide object

PostPosted: Thu Mar 14, 2019 4:09 am
by johan
Hi

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

Johan

Re: hide object

PostPosted: Thu Mar 14, 2019 5:12 am
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

PostPosted: Thu Mar 14, 2019 7:56 am
by admin
johan,

You could try this...

Code: Select all

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



Steven

Re: hide object

PostPosted: Thu Mar 14, 2019 2:48 pm
by johan
Thanks Steven, works perfect.

Re: hide object

PostPosted: Fri Mar 15, 2019 7:38 am
by admin
.