AnsweredAssumed Answered

Javascript var and FM decimal number fields

Question asked by shae1725 on Aug 26, 2014
Latest reply on Aug 28, 2014 by shae1725

Hi hope some one can help

 

I am trying to create a var in javascript using a filemaker field as example below. I cant get the field contents into the variable.

 

var sizescaled = "" & table::field & "";

 

table::field is a number field

 

the values are always with decimal points and usually less than "1" ie: .3459823478654323

 

I know my script works because if I manually paste the field value to the var ie: ( var sizescaled = .3459823478654323 ) all works just fine.

 

I have other vars in my javascript which work just fine (these are number fields BUT with whole number values)

 

I really would appreciate any help

Outcomes