value from two dropboxes in one text field


hi,

 

i've been searching solution 2 days....

 

basically, have dropbox01, dropbox02, , textfield01. need choices both of dropboxes 1 textfield.

 

at moment have in textfield01 custom calculation:

 

var v = this.getfield("dropbox01").value;

if (v=="choice01") event.value = "some text" + getfield("textfield02").valueasstring + "some text"; 

if (v=="choice02") event.value = "some text" + getfield("textfield02").valueasstring + "some text";             

if (v=="choice03") event.value = "some text" + getfield("textfield02").valueasstring + "some text"; 

 

var z = this.getfield("dropbox02").value;

if (z=="choice01") event.value = "some text" + getfield("textfield03").valueasstring + "some text"; 

if (z=="choice02") event.value = "some text" + getfield("textfield03").valueasstring + "some text";             

if (z=="choice03") event.value = "some text" + getfield("textfield03").valueasstring + "some text"; 

 

here textfield02 , textfield03 field info in them.

 

i can 1 of choices in textfield. i've tried &&, or, ||, none of them work way want. want "dropbox01" + "dropbox02".

 

thank in advance help.

var v1 = this.getfield("dropbox01").valueasstring;

var v2 = this.getfield("dropbox02").valueasstring;

event.value = v1 + " " + v2;



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working