Expand my Community achievements bar.

Need more info on xfa.host.response() method

Avatar

Level 2

Hi,

I have applied xfa.host.response method on a field. When I 'enter' the field I get a dialoge box. Even though I give a value or with default value , the value is encrypted. When I click OK, I can't see anything in the text box. Why is this?

Thanks,

Sandhya

3 Replies

Avatar

Level 5

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

Avatar

Level 2

Hi Malcolm,

Thanks.

But when the value the user enters transfers from the dialogue box to the textbox, the value is not masked (as ***). Why?

Thanks,

Sandhya

Avatar

Level 5

Hi,

The value is not masked because it looks like you are using a normal TextField in order to make the asterix stay you need to change this to use a Password field from the object library.

Hope this helps

Malcolm