Hi Sandhya,
Without seeing your code it is difficult to tell, but I place this code
this.rawValue = xfa.host.response("Question", "Title", "Default Value");
on the enter event of a text field and it works as I would expect.
( the value the user enters into the dialogue is transferred to the text box)
Hope this helps
Malcolm