Skip to content

Fade in/out fields

Single fields

1
2
3
// file:hooks/TABLENAME-dv.js
var dv = AppGiniHelper.dv;
dv.getField("fieldname").fadeOut();
1
2
3
// file:hooks/TABLENAME-dv.js
var dv = AppGiniHelper.dv;
dv.getField("fieldname").fadeIn();
1
2
3
4
5
6
// file:hooks/TABLENAME-dv.js
var dv = AppGiniHelper.dv;
dv.getField("fieldname").fade(false); // false fade out

// or
// dv.getField("fieldname").fade(true); // true fade in

Multiple fields

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
// file:hooks/TABLENAME-dv.js

var dv = AppGiniHelper.dv;
dv.getFields(["fieldname1", "fieldname2"]).fadeOut();

// or
// dv.getFields(["fieldname1", "fieldname2"]).fadeIn();

// or
// dv.getFields(["fieldname1", "fieldname2"]).fade(false); // false = fade out

// or
// dv.getFields(["fieldname1", "fieldname2"]).fade(true); // true = fade in

See also: