Simple If-Then Statement
hello,
i'm working on form , have question pertaining 3 fields: v1, v3, , v4. want v4 able product of v1 , v3, if values filled. if not, want able manually put number v4.
i've researched , tried various different if,then statements, none seem working. please help!
thank much,
amanda
how using 2 fields, 1 calculated, , 1 user entered value:
var v1 = this.getfield('v1').valueasstring
var v2 = this.getfield('v3').valueasstring
if (v1 == '' && v2 =='') {
this.getfield('v4_userentry').display = display.visible
this.getfield('v4_calculated').display = display.hidden
} else {
this.getfield('v4_userentry').display = display.hidden
this.getfield('v4_calculated').display = display.visible
}
More discussions in JavaScript
adobe
Comments
Post a Comment