Topic
  • 2 replies
  • Latest Post - ‏2012-02-27T15:29:02Z by AnthonyBpm
rajeevsahu
rajeevsahu
11 Posts

Pinned topic passing fields value to the local variable

‏2012-02-25T12:29:39Z |
I am calculating an age(Disabled field) from my date of birth field on change event.that's populating that is fine.but the variable which is bind to it has no value in it so the field is blank in next activity.so my query is how to pass the java script value to the local variable.

tw.local.age = document.getElementById('age').value ---------------> not passing any value to the age variable

suggest any other way to assign to local variable
Updated on 2012-02-27T15:29:02Z at 2012-02-27T15:29:02Z by AnthonyBpm
  • SystemAdmin
    SystemAdmin
    7615 Posts

    Re: passing fields value to the local variable

    ‏2012-02-25T14:40:47Z  
    The easiest way would be to just bind a variable to this disabled field. Barring that I would make a hidden field that you update when you update this disabled field. tw.local.xyz variables are only available server side, so they can't be manipulated in client side JS.
  • AnthonyBpm
    AnthonyBpm
    390 Posts

    Re: passing fields value to the local variable

    ‏2012-02-27T15:29:02Z  
    check out this wiki article, Binding Variables within Custom HTML Blocks