By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,041 Members | 1,858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,041 IT Pros & Developers. It's quick & easy.

[LAME] Adobe form JS

P: n/a
Well I have very very simple problem.
I have three NumericFields prepeared id Adobe Designer.
I would like to add values from thirs two fields and show sum in the third
one.

So I'm choosing NumericField3 -> From event list I'm choosing calculate.
I'm adding code.
NumericField3.value = NumericField2.value + NumericField1.value;

and... nothing happens.
but if I enter a code
NumericField3.value="2" it works showing digit "2"

What am I doing wrong here?

Thanks for any help
Jan 18 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Legi@fan said the following on 1/18/2006 9:18 AM:
Well I have very very simple problem.
I have three NumericFields prepeared id Adobe Designer.
I would like to add values from thirs two fields and show sum in the third
one.

So I'm choosing NumericField3 -> From event list I'm choosing calculate.
I'm adding code.
NumericField3.value = NumericField2.value + NumericField1.value;

and... nothing happens.
but if I enter a code
NumericField3.value="2" it works showing digit "2"

What am I doing wrong here?


You are asking for help with Adobe Designer in a Javascript Newsgroup.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 18 '06 #2

P: n/a

Uzytkownik "Randy Webb"wrote:
What am I doing wrong here?


You are asking for help with Adobe Designer in a Javascript Newsgroup.


Well you're right.
But show me better group
on adobre.scripting noone anserwers.

and big part of my problem is JavaScript.

--
pozdrawiam serdecznie
Lukasz K.
Jan 19 '06 #3

P: n/a
Legi@fan said the following on 1/19/2006 7:32 AM:
Uzytkownik "Randy Webb"wrote:
What am I doing wrong here?

You are asking for help with Adobe Designer in a Javascript Newsgroup.


Well you're right.
But show me better group
on adobre.scripting noone anserwers.

and big part of my problem is JavaScript.


I totally understand. And maybe you can get lucky and someone here have
some experience trying to script Adobe. My reply was based on memory of
a thread not long ago where Adobe was being scripted and nobody
could/would answer.

What you could try is putting some alerts (if AD Supports them) that
could serve as break points:

alert(NumericField1.value)
alert(NumericField2.value)
alert(NumericField1.value + NumericField2.value)

And see if AD will give the alerts.

NumericField3.value = NumericField2.value + NumericField1.value;

I have never used AD so its just a guess.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 19 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.