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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support