Expand my Community achievements bar.

Validating a text field on exit

Avatar

Level 1

Hi,

I am new to LiveCycle Designer and I am not sure If what I am doing is the best way of doing it. I need to validate a text field using a web service. So I put the web service call in the on exit if I get an error back I display and xfa.host.messagebox( Error Message'). This works, the problem is that value of the field at this point ( when messagebox appears ) is always the previous value not the value i just typed which is actualy confussing for the user. How do I force the typed value to show when the messagbox appears?? or do i net to put the validation some where else?

Thanks

2 Replies

Avatar

Level 10

Just a guess, but maybe you can wrap the field in a subform and do your webservice call in the exit event of the subform. Regards Bruce

Avatar

Level 8

This is odd to me, I put a messagebox on the exit event of a field to display the content of the field and it shows the last typed entry,