SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an InfoPath form that includes some text boxes that have character limits. Below the text box, I have a calculated value to show how many characters are used.

Empty Box With some data

However, the calculated value only gets updated when you click out of the text box. Is there any way to update this value while someone is typing?

share|improve this question
up vote 1 down vote accepted

I don't think its possible with InfoPath Designer, the reason is that afaik data is only sent back from the field to the data source when the field loses focus. Your calculated field reads from the text fields data source(e.g. my:field1)

I'm not sure if you even could do this easily from code behind for InfoPath either, since you have the same Data Sources to use as in the Designer. You can only access the nodes, and they are still updated when the text field loses focus.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.